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

Problem editing and updating the row in the nested grid

1 Answer 75 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sergej
Top achievements
Rank 1
Sergej asked on 20 Jan 2011, 08:17 PM
Hi Telerik Team

I'm new to Telerik controls  and I'm trying to edit and update the row in the nested grid using custom template. However I cannot get it to work properly, every time I click the edit buttom I'm loosing all the data from the nested grid. I'm using advanced binding for this solution because of both grids are bound to the business objects. Also OnUpdate event gets fired when the edit button is clicked but not Update, so not sure how sould I update the grid ?
I've tried to find some answers online but the the only thing that I was able to fing is how to work with the hierarchical grid which is not what I have.

Please download my demo project that describes the problem from the link below . (Readme.txt included)

https://www.adrive.com/public/339ffcb15bfd1d9b596af104366698a8332d93d70ee7c410a4b34f6ff7b15676.html 

Thanks

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 25 Jan 2011, 04:45 PM
Hello Sergej,

I review your code and suppose that the issues you are facing are caused by mixed binding types for the child RadGrid. You are setting DataSource for it in the parent Grid ItemDataBind event and also have set NeedDataSource. Note that such mixed binding (simple and advanced) is not supported for RadGrid control and may lead to a lot of different issues. You should never call DataBind() as well when using advanced data-binding through NeedDataSource.



All the best,
Maria Ilieva
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Grid
Asked by
Sergej
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or