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

Hierarchy with templates doesn't work with Ajax enabled

4 Answers 18 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 14 Feb 2011, 03:48 AM
I have an example almost identical to the demo of the Hierarchy with templates (link).  Everything works fine until I enable my Ajax settings on the page.  What the problem is that I expand the grid to show the tabs.  The fist tab loads fine, but then I select the second tab it reloads my page to the root my site.

Example: If I move my mouse over the url of the tab it reads "http://www.mysite/#", but the tab resides on a page like "http://www.mysite.com/pages/somepage.aspx.

* This only happens when Ajax is enabled.

    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
DefaultLoadingPanelID="RadAjaxLoadingPanel1">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadGrid1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />
<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="true" AllowAutomaticDeletes="True"
    AllowAutomaticInserts="True" AllowAutomaticUpdates="True" AutoGenerateDeleteColumn="True"
    AutoGenerateEditColumn="True" DataSourceID="SqlDataSource1" GridLines="None" AllowSorting="true" ShowGroupPanel="true">
    <ClientSettings AllowDragToGroup="True" />
    <MasterTableView DataKeyNames="id" DataSourceID="SqlDataSource1" EditMode="InPlace">
        <ExpandCollapseColumn Visible="True">
        </ExpandCollapseColumn>
        <NestedViewSettings DataSourceID="SqlDataSource2">
            <ParentTableRelation>
                <telerik:GridRelationFields DetailKeyField="id" MasterKeyField="id" />
            </ParentTableRelation>
        </NestedViewSettings>
        <NestedViewTemplate>
                <div class="contactWrap">
                <asp:Panel runat="server" ID="InnerContainer" CssClass="viewWrap">
                    <telerik:RadTabStrip runat="server" ID="TabStip1" MultiPageID="Multipage1"  SelectedIndex="0" DataNavigateUrlField="URL">
                        <Tabs>
                            <telerik:RadTab runat="server" Text="Tab1" PageViewID="PageView1">
                            </telerik:RadTab>
                            <telerik:RadTab runat="server" Text="Tab2" PageViewID="PageView2">
                            </telerik:RadTab>
                            <telerik:RadTab runat="server" Text="Tab3" PageViewID="PageView3">
                            </telerik:RadTab>
                        </Tabs>
                    </telerik:RadTabStrip>
                    <telerik:RadMultiPage runat="server" ID="Multipage1" SelectedIndex="0" RenderSelectedPageOnly="true">
                        <telerik:RadPageView runat="server" ID="PageView1">
                              Tab 1
                        </telerik:RadPageView>
                        <telerik:RadPageView runat="server" ID="PageView2">
                          Tab 2
                        </telerik:RadPageView>
                        <telerik:RadPageView runat="server" ID="PageView3">
                              tab 3
                        </telerik:RadPageView>
                    </telerik:RadMultiPage>
                </asp:Panel>
  
            </div>
        </NestedViewTemplate>
    </MasterTableView>
     <GroupingSettings ShowUnGroupButton="true" />
</telerik:RadGrid>

4 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 16 Feb 2011, 02:16 PM
Hi Michael,

We are not able to replicate the described issue using the code from the mentioned demo. Could you please test the application by wrapping the RadGrid into RadAjaxPanel instead of using RadAjaxManager settings and let me know if the problem still persists.


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.
0
Michael
Top achievements
Rank 1
answered on 16 Feb 2011, 03:42 PM
I put in a RadAjaxPanel and the problem was the same.  I was looking through the code library that presents the tabs in a different way.  Would this be an alternative to look into, or won't it provide the same functionality?

http://www.telerik.com/community/code-library/aspnet-ajax/grid/display-additional-control-under-selected-item-which-includes-r-a-d-tabstrip.aspx
0
Maria Ilieva
Telerik team
answered on 21 Feb 2011, 11:33 AM
Hello Michael,

The pointed code library is valid only for the classic version of RadControls and not for RadControls for ASP .Net AJAX. I would suggest you to open a regular support ticket and send us runnable version of the problematic application. Thus we will be able to test it locally and provide proper solution.


Kind regards,
Maria Ilieva
the Telerik team

0
Maria Ilieva
Telerik team
answered on 21 Feb 2011, 11:33 AM
Hello Michael,

The pointed code library is valid only for the classic version of RadControls and not for RadControls for ASP .Net AJAX. I would suggest you to open a regular support ticket and send us runnable version of the problematic application. Thus we will be able to test it locally and provide proper solution.


Kind regards,
Maria Ilieva
the Telerik team

Tags
Grid
Asked by
Michael
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Michael
Top achievements
Rank 1
Share this question
or