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,
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.
Below is the WebDataGrid declaration:
>
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.
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.
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.
Georgi,
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?
Thanks.
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?