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

RadGrid inside RadDataForm

1 Answer 125 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
Lulu
Top achievements
Rank 1
Lulu asked on 02 Nov 2015, 05:29 PM

Hi, 

I'm implementing a RadGrid inside the RadDataForm. The purpose is to collect a list of objects that are tied to the main object that the dataform is collecting information from. I'm taking in this subgroup with textboxes and then store it in a list of objects in session and posted back onto the RadGrid. However, the problem I'm running into currently is that I'm also trying to incorporate the RadGrid InPlace edit mode, and whenever I go to try and edit the object, the grid disappears. However, it seems like if I refresh it, it does go into edit mode but will not display the values in the columns. I've configured the NeedDataSource on the RadGrid but it doesn't seem to call it on the pageload or postback functions even though I specifically tell it to call these functions in the front-end with OnNeedDataSource and so forth. I've also tried to explicitly call OnItemCreated and OnItemDataBound to see if it hits the code behind but the grid doesn't seem to be referencing those functions either. What's the best approach to implement this functionality? I know you can reference the naming container of the object but I can't seem to get the RadGrid to reference its naming container, so not sure what I'm doing wrong.

1 Answer, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 05 Nov 2015, 10:23 AM
Hi Lulu,

I would appreciate if you can provide your code declaration and the related code behind in order to investigate it further. Nevertheless, I prepared a small runnable sample where I nested a RadGrid in a RadDataForm. On my side the editing seems to work correctly, so could you please check it out and let me know how it differs from your real setup?

Regards,
Kostadin
Telerik
Tags
DataForm
Asked by
Lulu
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Share this question
or