Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Mcamire on Apr 09, 2008 22:37
open dhtmlx forum
Single Click Editing

Is there a way to do single click editing in a grid without having to enableLightMouseNavigation? When you enableLightMouseNavigation it prevents me from doing a multi-row select using setMultiselect(!dg.gN);.

Also how do you set the text-align for individual column headers. All of my headers are aligning left even though the data below it is set to right or center.

Thanks in advance for any help you can provide me.
Answer posted by Support on Apr 10, 2008 01:52
>>Is there a way to do single click editing in a grid without having to enableLightMouseNavigation?
Sure,
    grid.enableEditEvents(true,false,false);
   
>>Also how do you set the text-align for individual column headers.
You can use third parameter of setHeader command
    mygrid.setHeader("A,B,C",null,["text-align:left","text-align:right","text-align:center"]);

Third parameter is optional array of css strings, which will be attached to relative columns.