grid level userdata

Hi,
I am configuring my grid using xml.
I need column level userdata for that.
For each column in the grid i need to set some userdata.

1.Can i set column level userdata for grid using xml configuration . and how to do that?
2.How can i define grid level or global level userdata for a grid using xml configuration.
I know using js method grid.setUserData("",“name”,“value”); we can set global level userdata,
but how to do this in xml configuration.

Please help me in this?

Thanks,
Naresh Adla.

Please, have a look at the following tutorial:
docs.dhtmlx.com/doku.php?id=dhtm … a#userdata

Thanks sematik,
It is useful.

Another one .

The Number of columns may vary in my grid .
It is dynamic that how many columns that a grid can have.
So can i initialize columns without width attribute?
It is working perfectly in firefox and chrome but in IE i am getting error and my grid not loading.

Unfortunately for IE the width of the column should be defined.

You may try to configure your header in the xml:
dhtmlx.com/docs/products/dht … g_xml.html

Hi sematik,
Thanks for your reply.

But when i am creating my grid by giving width = “200” in xml, if i have 9 columns in my grid only 8
columns displaying 9th one not displayed.

then if i have 10 columns each with 200 width 9 columns displayed again not 10th.

What is the problem with it?
I am giving last column width as “*” every time to take rest space as width to last column. Is there any problem with this * for last column?

In case of using the “*”, please, make sure that you have enough free space in the grids container for that last column.

for example:
9 columns with “200px”, 1 column with “*”
if you have:

the last column will have the width "0px". but if you have:
the last column will have "200px".

But,
I ddnt used div for my grid.
I have used attachGrid() method on layout’ s cell object.

So check the width of the cell in your layout.