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 javascript works as expected:
var grid = $find("<%=uxDynamicContentGrid.ClientID%>");
var rows = grid.get_behaviors().get_selection().get_selectedRows();
And, this still returns the selected row!
dynamicContentGrid.Behaviors.Activation.ActiveCell.Row
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>
Hello Csggroup,
Here I am attaching a sample where I am using the Behaviour.Selection.SelectedRows to retrieve the selected rows. Can you review it and let me know if it works on your end.
If you need further assistance with this matter do not hesitate to contact me.
Sincerely,
Georgi Sashev
Developer Support Engineer
Infragistics, Inc.
http://es.infragistics.com/support
Hi Georgi,
Thanks a lot for your response.
The difference in my code is that a row is selected in the grid and then a button is clicked to reorder its position in the grid. I was able to get the selected row in the button click event with version 10.1. But now, the collection is empty.
Thanks.
Also, there is no need for the RowSelectionChanged to be fired in the grid as there is no action that needs to happen when the row is selected.