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

Rebind and Update in multiple nested itemtemplate

3 Answers 82 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Prasanth
Top achievements
Rank 1
Prasanth asked on 15 Apr 2014, 01:22 PM
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.

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 16 Apr 2014, 07:33 AM
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.
0
Prasanth
Top achievements
Rank 1
answered on 16 Apr 2014, 07:49 AM
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
0
Shinu
Top achievements
Rank 2
answered on 17 Apr 2014, 04:50 AM
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.
Tags
General Discussions
Asked by
Prasanth
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Prasanth
Top achievements
Rank 1
Share this question
or