Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Olivier on Jul 10, 2007 16:37
open dhtmlx forum
How I can attach userData to an option

How I can attach userData to an option (particular attribute)?

Regards
Answer posted on Jul 12, 2007 14:55
userData can be used to attach custom attributes for grid all for specified rows, it can't be used for other purposes.


<rows>
    <userdata name="a1">b1</userdata>
    <row id="some">
         <userdata name="some1">some2</userdata>

In this sample userdata "a1" attached to grid itself and can be obtained by
     grid.getUserData("","a1");

userdata "some1" attached only to row "some"
      grid.getUserData("some","some1");

Answer posted by Alexandra (Support) on Dec 06, 2014 16:07

Having solved the problem mentioned above, you may also look through the possible related problems with javascript window api and toolbar image.