Hi,
I have a webimagebutton in my web page, in the Click event of this button i turn visible the grid, the datasource is taken by InitializeDataSource of the ultragridview, the dataset retorned have two datatables with a relation, this show me two bands levels in my ultrawebgrid; i wanna add a level from the second level band, but the image plus isn't visible.
The ultragridview is in a WebAsynchRefreshPanel, this warp have a TriggerControlId to the webimagebutton that i mentioned before.
Help me please, i need do it at this way, the data are too many to load them once.
Thanks,
Claudio G.
No reply????? ....please i need do this.
I made a new project to test, I created a table, i passing random values in a cycle to this table, after that, i give this table to the UltraWebGrid.DataSource property, and then, i do a UltraWebGrid.DataBind..., next I put the code, all this hapen in then InitializeDataSource of the grid:
but dont work, i steel dont see the plus image.
Thank you very much for your help.
'UltraWebGrid1_InitializeDataSource' is not supposed to be used under the binding mode. it's an improved and integrated Ajax-Engine. if you really need to use it,just to find some stuff about the page lifecycle of UltraWebGrid and 'invokeXmlHttpRequest'.for example:
on client side:function remote_request(gn) { var g = igtbl_getGridById(gn); var param=[; for (int i = 0; i < 21; i++){ param[param.length]=i + 1; } g.invokeXmlHttpRequest(g.eReqType.Custom, null, param.join(','))}
on server side: ...UltraWebGrid1_XmlHTTPRequest... If(e.Type==XmlHTTPRequestType.Custom ) { //do sth to read the submited param and and add the datarow one by one }
IMO,it's easier to use some standard ajax gallery to instead of 'UltraWebGrid1_XmlHTTPRequest',such as mootool,pototype...etc.
good luck.
Hi ,
there is no need to bind the data in the initialise datasource event.
Calling the databind function here will make it bind twice...
And try Adding a new band ..and the for each statement in the initialize layout event ..