Rebind and Update in multiple nested itemtemplate

4 posts, 0 answers
  1. Prasanth
    Prasanth avatar
    5 posts
    Member since:
    Mar 2013

    Posted 15 Apr 2014 Link to this post

    Hi,

    I am trying to figure out how to rebind and update only:
    RadListView, which exists in a RadGrid nestedviewtemplate, which is again in another RadGrid's nestedviewtemplate

    Steps:

    I am calling a RadWindow when user clicks on a button, which exists in RadListView itemtemplate
    After adding a record, radwindow should close and rebind and update only that RadListView, which called the RadWindow.

    Simple example format with out columns and datasources:

    <telerik:RadGrid ID="RadGrid1" runat="server">
                <MasterTableView>
                    <NestedViewTemplate>
                        <telerik:RadGrid ID="RadGrid2" runat="server">
                            <MasterTableView>
                                <NestedViewTemplate>
                                    <telerik:RadListView ID="RadListView1" runat="server">
                                        <ItemTemplate>
                                            <asp:Button ID="Button1" runat="server" Text="Button" />
                                        </ItemTemplate>
                                    </telerik:RadListView>
                                </NestedViewTemplate>
                            </MasterTableView>
                        </telerik:RadGrid>
                    </NestedViewTemplate>
                </MasterTableView>
            </telerik:RadGrid>


    I will be really thankful if anyone can help.
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 16 Apr 2014 in reply to Prasanth Link to this post

    Hi Prasanth,

    This is not possible to Ajaxify only the control inside the NeastedViewTemplate of RadGrid. In case you need to have the whole RadGrid control perform Ajax and not only the NestedViewTemplate the whole Grid should be ajaxified which will cause the inner control to also perform Ajax. By ajaxifying the RadGrid you can achieve your scenario.

    Thanks,
    Shinu.
  3. Prasanth
    Prasanth avatar
    5 posts
    Member since:
    Mar 2013

    Posted 16 Apr 2014 Link to this post

    Thanks Shinu for your valuable answer.

    There should be some way around to perform such operations.
    For my situation its must to improve performance because many rows are loaded and nested.

    If any alternative solution is appreciated.

    Thanks
  4. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 16 Apr 2014 in reply to Prasanth Link to this post

    Hi Prasanth,

    With reference to this forum thread after adding the whole RadGrid control to update itself when and inner control initiate an Ajax request the response will include the whole RadGrid contain in the response base on the updated control which is the whole RadGrid. Thus behavior could not be avoid with the current RadAjax implementation.

    Thanks,
    Shinu.
Back to Top