Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Huzefa on Aug 19, 2009 01:18
open dhtmlx forum
Userdata in columns for dhtmlxGrid

Hi,

Can there be UserData in each column element of Head section in dhtmlxGrid.
if yes then how can i access it??

Thanks
Answer posted by Support on Aug 19, 2009 10:26
Unknown tags and attributes inside the head section just ignored. 
You can use global level userdata for the same task

<rows>
   <head>
           ... any config here ....
    </head>
    <userdata name="column0_data">some</userdata>
    <userdata name="column1_data">some</userdata>
...

var data0 = grid.getUserData("","column0_data");
Answer posted by Huzefa on Aug 19, 2009 10:45

But i want to give some additional data for that column. which will be applciable for all column.

Now whenever a row is added i can just take some data from that column and process my logic according do different data on different columns.

I want something which will give me additional data specific to column level

 

Thanks

Answer posted on Aug 31, 2009 03:15
Unfortunately there is no way add user data for the whole column. 
Please find more information about storing additional data here http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Storing_additional_data.html#grid_art_userdata