Hi,
I have a Hierarchy grid 3 levels. My data is all in the session. Grid is ViewState=false. Now in the update i have to also update all the levels for the item (parent, grand parent). The edit for is only at the deepest level (3). Update works fine with the detail table (3 level). now to update upper levels i have to set the grid data source = null so that i can call the needdatasource, also need to call rebind() for the detail tables.
If i do not Rebind(), after the update the edit form disappears ( proper behaviour) BUT when i use the datasource=null and Rebind() then data do get updated in all levels but the eidt form does not go away. I even tried calling clearedititems() but no avail. editmode makes no difference.
Note : The edit form does go away if i click update again (2nd time) , also it does not call the updatecommand event the second time.
As a quick fix, probably i can just redirect to the page so the edit form would not open initially.
whats the proper way of doing it ?
Thanks,
Regards,
Osman
plz : do not reply after 3 days asking for sample code ;)
I tried attaching ascreen shot, may be your radupload doesn't work properly...
I have a Hierarchy grid 3 levels. My data is all in the session. Grid is ViewState=false. Now in the update i have to also update all the levels for the item (parent, grand parent). The edit for is only at the deepest level (3). Update works fine with the detail table (3 level). now to update upper levels i have to set the grid data source = null so that i can call the needdatasource, also need to call rebind() for the detail tables.
If i do not Rebind(), after the update the edit form disappears ( proper behaviour) BUT when i use the datasource=null and Rebind() then data do get updated in all levels but the eidt form does not go away. I even tried calling clearedititems() but no avail. editmode makes no difference.
Note : The edit form does go away if i click update again (2nd time) , also it does not call the updatecommand event the second time.
As a quick fix, probably i can just redirect to the page so the edit form would not open initially.
whats the proper way of doing it ?
Thanks,
Regards,
Osman
plz : do not reply after 3 days asking for sample code ;)
I tried attaching ascreen shot, may be your radupload doesn't work properly...