Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Shekar Krishnan on Jan 20, 2010 12:11
open dhtmlx forum
dhtmlgrid with data from HTML table

Hi,

I am using DHX grid for an application. The data comes from HTML table. I have two questions.

(a) Is it possible to freeze the header row while user can scroll the data?

(b) I have an onEditCell event attached to the grid. When I enter a value inside the editable column, I can update the other read-only columns based on the entered value - works fine. But the value entered disappears from the editable column. If I remove the onEditCell event, I can see the value entered in the editable cell remains ok. I even tried to use innerHTML construct to set the value - doesn't work. Any idea how I can resolve this?

Thanks
Shekar

Answer posted by Stanislav (support) on Jan 21, 2010 01:35
>> Is it possible to freeze the header row while user can scroll the data?
This is default behavior, but you need to specify height of grid, add gridHeight attribute to the table tag

<table gridHeight="500"...


>>But the value entered disappears from the editable column. 
Be sure that event handler has 
     return true;
at the end, in other case it will be counted as command to deny result of edit operation. 

Answer posted by Shekar Krishnan on Jan 21, 2010 07:56
You guys are the best.
It worked. Thanks a lot.