RadGrid inside RadDataForm

2 posts, 0 answers
  1. Lulu
    Lulu avatar
    8 posts
    Member since:
    May 2015

    Posted 02 Nov 2015 Link to this post


    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.

  2. Kostadin
    Kostadin avatar
    1692 posts

    Posted 05 Nov 2015 Link to this post

    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?

  3. DevCraft R3 2016 release webinar banner
Back to Top