Hi All,
I upgraded the WebDataGrid from v10.1 to v11.2 and now this line of code that retrieves the selected row returns Nothing:
dynamicContentGrid.Behaviors.Selection.SelectedRows
The datasource of the webdatagrid is being set in postback.
I checked the forum posts and nothing seems to indicate there is a breaking change in version 11.2. I had to upgrade from version 10.1 to fix another issue in the WebDataTree.
Please advise ASAP!
The following is the <Behaviors> tag in the WebDataGrid
<Behaviors>
<ig:Activation></ig:Activation>
<ig:EditingCore Enabled ="False"> </ig:EditingCore>
<ig:Selection CellClickAction="Row" RowSelectType="Single"></ig:Selection>
<ig:RowSelectors Enabled="true"></ig:RowSelectors>
<ig:Sorting Enabled="false"></ig:Sorting>
</Behaviors>
And, this still returns the selected row!
dynamicContentGrid.Behaviors.Activation.ActiveCell.Row
The following javascript works as expected:
var grid = $find("<%=uxDynamicContentGrid.ClientID%>");
var rows = grid.get_behaviors().get_selection().get_selectedRows();