Problem when updatting

5 posts, 0 answers
  1. Hans Santens
    Hans Santens avatar
    13 posts
    Member since:
    Feb 2010

    Posted 29 Mar 2010 Link to this post

    Hello,

    I have created a SharePoint webpart with some Telerik controls in, mainly TabStrip and MultiPage. Since SharePoint destroyes its pages on every postback, I wanted zo Ajaxify my controls.
    Everything seems to work fine, but when I update my tabstrip and underlying multipageview, data is loaded in my controls, but I can't navigate on my tabs anymore (before the update, and the data is loaded I can click them).
    I assume there must be something I have forgotten, but I just can't find it.

    Here is my (simplified) code
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="btnSearch"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="RadTabStripResults" /> 
                    <telerik:AjaxUpdatedControl ControlID="RadMultiPageresults" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="listAttests"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="RadTabStripDetails" /> 
                    <telerik:AjaxUpdatedControl ControlID="RadMultiPageDetails" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
    ... 
        <telerik:RadTabStrip ID="RadTabStripSearch" runat="server" Skin="Outlook" MultiPageID="RadMultiPageSearch" SelectedIndex="0"
            <Tabs> 
                <telerik:RadTab Text="Zoeken"
                </telerik:RadTab> 
            </Tabs> 
        </telerik:RadTabStrip> 
        <telerik:RadMultiPage ID="RadMultiPageSearch" runat="server" SelectedIndex="0" CssClass="pageView"
            <telerik:RadPageView ID="RadPageViewSearch" runat="server"
    ... 
                <asp:Button ID="btnSearch" runat="server" Text="Zoeken" /> 
    ...                                 
            </telerik:RadPageView> 
        </telerik:RadMultiPage> 
         <telerik:RadTabStrip ID="RadTabStripResults" runat="server" Skin="Outlook" MultiPageID="RadMultiPageResults" SelectedIndex="0"
                <Tabs> 
                    <telerik:RadTab Text="Resultaten"
                    </telerik:RadTab> 
                </Tabs> 
            </telerik:RadTabStrip> 
            <telerik:RadMultiPage ID="RadMultiPageresults" runat="server" SelectedIndex="0" CssClass="pageView"
                <telerik:RadPageView ID="RadPageViewResults" runat="server"
    ...                 
                    <asp:ListBox ID="listAttests" runat="server" Width="300px" AutoPostBack="true"></asp:ListBox> 
    ...    
                </telerik:RadPageView> 
            </telerik:RadMultiPage> 
     
        <telerik:RadTabStrip ID="RadTabStripDetails" runat="server" Skin="Outlook" MultiPageID="RadMultiPageDetails" SelectedIndex="0"
            <Tabs> 
                <telerik:RadTab Text="Attest" PageViewID="RadPageViewAttestDetails"
                </telerik:RadTab> 
                <telerik:RadTab Text="Redenen" PageViewID="RadPageViewReasonDetails"
                </telerik:RadTab> 
                <telerik:RadTab Text="Artikels" PageViewID="RadPageViewArticles"
                </telerik:RadTab> 
            </Tabs> 
        </telerik:RadTabStrip> 
        <telerik:RadMultiPage ID="RadMultiPageDetails" runat="server" SelectedIndex="0" CssClass="pageView"
            <telerik:RadPageView ID="RadPageViewAttestDetails" runat="server"
    ... 
            </telerik:RadPageView> 
            <telerik:RadPageView ID="RadPageViewReasonDetails" runat="server" CssClass="pageView"
    ... 
            </telerik:RadPageView> 
            <telerik:RadPageView ID="RadPageViewArticles" runat="server" CssClass="pageView"
    ... 
            </telerik:RadPageView> 
        </telerik:RadMultiPage> 

    The first and second tabstrips might have the same problem, but as there is only one tab (I use them to obtain the same styling on the 3 blocks) I don't notice a problem there. On the 3rd block however I have 3 tabs, so it would be nice if I could change panels there.

    Just to give you an Idea of what this thing is supposed to do:
    • in the Search section, I can enter a searchstring and click the search button
    • in the Results section my search results are shown in a listbox
    • when I select a result in the listbox, the details of this result are shown in the Details section

    I hope someone comes up with an idea.
  2. Hans Santens
    Hans Santens avatar
    13 posts
    Member since:
    Feb 2010

    Posted 29 Mar 2010 Link to this post

    sorry for the typo in the title :)
  3. Hans Santens
    Hans Santens avatar
    13 posts
    Member since:
    Feb 2010

    Posted 30 Mar 2010 Link to this post

    I did some further testing...
    In my code behind I wired the TabClick event. That learned me that this event isn't triggered anymore after is has been updated. 

    Perhaps that rings a bell?
  4. Yana
    Admin
    Yana avatar
    5043 posts

    Posted 30 Mar 2010 Link to this post

    Hi Hans Santens,

    I couldn't reproduce the issue with only this code and without the events. Could you please create a simple runnable page demonstrating the issue and send it to us in a support ticket? Thanks

    Regards,
    Yana
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  5. Hans Santens
    Hans Santens avatar
    13 posts
    Member since:
    Feb 2010

    Posted 31 Mar 2010 Link to this post

    thank you for your answer.

    I think the problem hasn't really to do with Telerik. After some more tests it's most likely my SharePoint isn't correctly configured to use Ajax.
Back to Top