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

WebUserControl inside RadGrid not posting back

2 Answers 25 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mitchell
Top achievements
Rank 1
Mitchell asked on 24 Jun 2010, 07:03 PM
Hey guys,

I have a RadGrid setup with a WebUserControl used as the editform. On my WebUserControl i have a RadGrid containing a column of associated ID numbers, and a custom delete GridButtonColumn. The data used for this RadGrid is programmatically bound durring the RadGrid Pre-Render event. When i click the delete button and it fires the DeleteCommand event i am not able to access the RadGrid's datasource. I have tried many variations of code and still cannot access this property successfully. Any help is appreciated, Thanks in advance

2 Answers, 1 is accepted

Sort by
0
Mitchell
Top achievements
Rank 1
answered on 24 Jun 2010, 07:35 PM
EDITED OUT
0
Nikolay Rusev
Telerik team
answered on 30 Jun 2010, 09:17 AM
Hello Mitchell,

I am not sure whether I understand your question correctly, but RadGrid does not persists it's DataSource between postbacks. You can set DataKeyNames and on DeleteCommand access DataKeyValues for current GridDataItem.

Regards,
Nikolay
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Mitchell
Top achievements
Rank 1
Answers by
Mitchell
Top achievements
Rank 1
Nikolay Rusev
Telerik team
Share this question
or