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

[Solved] OnNeedDataSource event doesn't fire

1 Answer 75 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Armen
Top achievements
Rank 1
Armen asked on 13 May 2009, 06:46 PM
Hello,

I had my RadGrid with DataSourceID - from Database. The data displays fine.
 My original goal is delete the recod on the server and I noticed the sample from Help.

<telerik:RadGrid id="RadGrid1" runat="server" OnDeleteCommand="RadGrid1_DeleteCommand"
OnNeedDataSource="RadGrid1_NeedDataSource">
<MasterTableView AutoGenerateColumns="False" DataKeyNames="CustomerID">
   
<Columns>
  ........
When I tried to use that, the application never fires OnNeedDataSource event, 
so my Grid is always empty .

Did I missed something or this code sample is not complete.

Please help

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 15 May 2009, 06:00 AM
Hi Armen,

I followed your scenario in order to replicate the issue but to no avail.
Please find attache a simple application that demonstrates the needed approach. Give it a try and let me know if it works for you.

Regards,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Armen
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or