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

Hierarchical Grid details table editing

1 Answer 18 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Imthiyas
Top achievements
Rank 1
Imthiyas asked on 17 Dec 2008, 04:09 PM
hai All,

    I have a hierarchical grid in my page. after editing  a record in the detailstable(Inner Grid) iam calling the NeedDataSource method of the master table to get the updated values. Now the Master data table is binded with the updated values, but the values of the details table which i have edited is empty. Once clicking Refresh it is showing correctly.

Code:

after editing
Grid1.NeedDataSource(null,null)
Grid1.databind();

I want the values to be refreshed in the grid when i update some records.

Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 17 Dec 2008, 04:42 PM
Hello Imthiyas ,

RadGrid automatically fires the NeedDataSource event each time it needs to be bound to a data source.

Please examine the following help article:
Advanced data-binding
Advanced data-binding demo

Note that you should never use DataBind when using advanced data-binding through NeedDataSource.

Let us know if you need more information.

Best regards,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Imthiyas
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or