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
Hello,
Can you try this with the latest service release for 11.2. This issue should be solved there. Please let me know the results of your tests.
Looking forward to hear from you.
Sincerely,
Georgi Sashev
Developer Support Engineer
Infragistics, Inc.
http://es.infragistics.com/support
Georgi,
This is the version that I am using: Infragistics35.Web.v11.2 (version 11.2.20112.2086). I downloaded and installed the NetAdvantage for ASP.NET 2011 Vol. 2 - ASP.NET Service Release. I still have the same issue. Is there a newer version?
Thanks.
I had code in the method that loads the data grid to clear data source and clear all rows. I removed these two lines of code and now I am able to retrieve the row from SelectedRowCollection.
WebDataGrid1.ClearDataSource()
WebDataGrid1.Rows.Clear()
WebDataGrid1.DataSource = _____
WebDAtaGrid1.DataBind()
Do you know why this has changed in version 11.2? Is there a way for me to find what has changed between versions the next time I do an upgrade to avoid issues like this?
I did some further testing and only the line to ClearDatasource needs to be removed. Otherwise, the grid does not refresh when the data source changes.
Hello Csggroup,
There is no such document. Thank you for the updates on this case.
I am glad that you were able to handle this.
If you need further assistance with this matter, do not hesitate to contact me.