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

[Solved] Problem Editing RadGrid Created Programmatically

1 Answer 145 Views
Grid
This is a migrated thread and some comments may be shown as answers.
revital
Top achievements
Rank 1
revital asked on 04 Jun 2008, 07:20 AM
Hello,
I am creating several RadGrid's (latest version) in a page  programmatically (in Page_Init). - which means the grid's are recreated on every postback. (and rebinded on each postback).
My problem is when I try to extract values ( I am using InPlace edit mode ) after the update button is clicked  - I am posting back the page - so the grid's are recreated again and when I finally reach my UpdateCommand listener function all I see in any extracted filed is " ".
I think I am loosing my new values because of the recreation and/or rebind.
But if I don't do that, my page does't know the grid's.

Please help me - I have tried everything ...
thanx,
Revital

p.s.
I have to create all grid object and datasource programmatically.

1 Answer, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 05 Jun 2008, 04:37 PM
Hello Revital,

Are you binding your RadGrid through the NeedDataSource event handler? When you are implementing insert/update/delete data source operations, you need to use advanced data binding, as described in this help article.

Regards,
Veli
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
revital
Top achievements
Rank 1
Answers by
Veli
Telerik team
Share this question
or