views:

13

answers:

0
$(function(){
 var myCP2 = dhtmlXColorPickerInput('${p}_COLOR_CODE2');
 myCP2.setImagePath( pathIMG );
 myCP2.init();
 myCP2.setOnSelectHandler(function(color){
  var sId= ${p}_Grid.getSelectedRowId();
     ${p}_Grid.cells(sId,${p}_Grid.getColIndexById("COLOR_CODE2")).setValue(color);
 });

This is code i am having in which the dhtml color picker is displaying right bottom..so i need to display either left or top without scroll bar...I tried using setPosition(100,250); but i didn't work....so can u pls help me....