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!
Below is the WebDataGrid declaration:
>
Hi Georgi,
I tried the example you provided for row selection and the RowSelectionChanged event is not fired in version 11.2. It works fine in version 10.1,
I had a look at the samples on the site
http://samples.infragistics.com/aspnet/Samples/WebDataGrid/Editing-and-Selection/Selection-Server-Events/Default.aspx?cn=data-grid&sid=4c7af2f6-e6b4-4301-97ef-d0bac182d9dd
and there is a line of code: Is this needed? But I thought this is what AutoPostbackFlags was supposed to do.
function WebDataGridView_CellSelectionChanged(webDataGrid, evntArgs) { __doPostBack('<%= SampleUpdatePanel.ClientID %>', ''); }Please help.
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.
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.
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