Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Apr 14, 2009 06:46
open dhtmlx forum
dhtmlxGrid setRowTextBold

hi,

After loading data into the grid, when user select any row from the grid before perform the operation, i want to make that row to bold not in XML level, using setRowTextBold method how can i do that and what are the necessary JS files are required.

mygrid.setRowTextBold(4);

is not working for me.



Answer posted by dhxSupport on Apr 14, 2009 06:59

You should call this method after grid was fully loaded:

mygrid.loadXML("grid.xml",function(){

mygrid.setRowTextBold(row_id);//parameter of that method - row ID, not row index.

});

To get ID of a selected row you can use:

row_id=getSelectedRowId();