This is a migrated thread and some comments may be shown as answers.

RadGrid updating with LINQ web

0 Answers 73 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Vincent Russell
Top achievements
Rank 1
Vincent Russell asked on 19 May 2011, 06:16 PM
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.

 

 

<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.

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Vincent Russell
Top achievements
Rank 1
Share this question
or