Categories | Question details Back To List | ||||||||
Grid and Userdata I use the LoadXML for Grid with the PRO component. Userdata tag works only within the tag <row id="id"> if string looks like this: <rows><userdata name='ID'>SOME</userdata></rows> it does not work. Seems that XML string must have the structure: <rows><row id='1'><userdata name='SOME'>DATA</userdata><cell>test</cell></row></rows> Please, can give a slution to this? Thanks in advance, John Answer posted on Jan 21, 2009 04:48 Actually for initial data loading userdata tag may be place as within row tag, as a child of rows tag In second case , userdata will be assigned to whole grid and can be retrieved as <rows><userdata name='ID'>SOME</userdata></rows> ... grid.getUserData("","ID") Answer posted by Support on Jan 21, 2009 04:48 If issue still occurs for you - please provide info about used version of dhtmlxgrid. Answer posted by j.lagos on Jan 21, 2009 05:09 Yes, I use it as your sample and it still occurs! My Grid version: dhtmlxGrid v.2.0 Professional edition build 81009/81107
Thanks, John Answer posted by Support on Jan 21, 2009 05:44 Please check attached sample. Beware that xml loading is async. , which means that you need to catch the moment of data loading before executing any api calls against the data. ( you can use onXLE event or second parameter of loadXML method ) Attachments (1)
Answer posted by j.lagos on Jan 21, 2009 06:13 Now it is working, but most possible to be the last you said, "catch the moment of data loading before..." Thank you anyway, John |