Hi,
I've been implementing a RadGrid using LINQ.
I've been trying to update the grid using a popup WebUserControl with AutomaticUpdates.
I've found (after a lot of tribulation) that if, in the WebUserControl, the field IDs are not identical to the DataBinding field names, the grid updates will not work.
Using the attached Northwind sample (which does work!), if you change the textbox ID in the customers.ascx WebUserControl to anything other than CompanyName (which is the database bind field name), the grid update fails e.g.
This problem has taken me quiet a while to get to resolve, so i thought I would post the issue here for anyone else who's experiencing the same headache.
Thanks,
Vincent.
I've been implementing a RadGrid using LINQ.
I've been trying to update the grid using a popup WebUserControl with AutomaticUpdates.
I've found (after a lot of tribulation) that if, in the WebUserControl, the field IDs are not identical to the DataBinding field names, the grid updates will not work.
Using the attached Northwind sample (which does work!), if you change the textbox ID in the customers.ascx WebUserControl to anything other than CompanyName (which is the database bind field name), the grid update fails e.g.
<telerik:RadTextBox runat="server" ID="txtCompanyName" Text='<%#DataBinder.Eval(DataItem,"CompanyName") %>' Width="150px" TextMode="MultiLine"/>
instead of
<telerik:RadTextBox runat="server" ID="CompanyName" Text='<%#DataBinder.Eval(DataItem,"CompanyName") %>' Width="150px" TextMode="MultiLine"/>
This problem has taken me quiet a while to get to resolve, so i thought I would post the issue here for anyone else who's experiencing the same headache.
Thanks,
Vincent.