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

Problem when updatting

4 Answers 58 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Hans Santens
Top achievements
Rank 1
Hans Santens asked on 29 Mar 2010, 03:12 PM
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.

4 Answers, 1 is accepted

Sort by
0
Hans Santens
Top achievements
Rank 1
answered on 29 Mar 2010, 03:17 PM
sorry for the typo in the title :)
0
Hans Santens
Top achievements
Rank 1
answered on 30 Mar 2010, 09:08 AM
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?
0
Yana
Telerik team
answered on 30 Mar 2010, 03:56 PM
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.
0
Hans Santens
Top achievements
Rank 1
answered on 31 Mar 2010, 09:29 AM
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.
Tags
TabStrip
Asked by
Hans Santens
Top achievements
Rank 1
Answers by
Hans Santens
Top achievements
Rank 1
Yana
Telerik team
Share this question
or