How to get post back on webdatagrid when selected row is changed ?
Webdatagrid have that even ?
I have the same with the WebDataGrid. The postback occurs,but the event never fires.
I've tried implementing this with a WebHierarchicalDataGrid but the server side events simply don't fire.Have tried within and outwith an UpdatePanel
I tried with Enabled="true" and both EnableAjax="true" and EnableAjax="false".
With EnableAjax="false" a page postback occurs but the events don't fire. With EnableAjax="true"nothing seems to happen.
Would it be possible to provide a simple complete working example with the WebHierarchicalDataGrid?
Hi Sarah,
In the latest versions of each release for the WebDataGrid, the Selection and Activation behaviors had Autopostback flags added to them. When set to true, it will postback to the server when the client changed event fires. Whether it is ajax or not is determined by the EnableAjax property of the grid. Because you actually want information to come back, you'll need a full page postback. You'll probably want to wrap the data grid inside of an update panel.
<ig:Selection Enabled="true" CellSelectType="Multiple" RowSelectType="Multiple" ColumnSelectType="Multiple"> <AutoPostBackFlags CellSelectionChanged="true" RowSelectionChanged="true" ColumnSelectionChanged="true" /> </ig:Selection>
Hope this helps.
regards,David Young
Has this been changed yet? I am trying to update labels based on the selected row of the grid. I see in the samples browser that is needs to explicitly call the __dopostback('updatepanel clientid') for the update panel. I can get it to postback but only by using __dopostback() with no parameters so it causes a flicker as the entire page is refreshed. Is there some better way built in to handle this?Thanks
- Sarah