Page Layout+RadTabStrip

7 posts, 0 answers
  1. Duygu
    Duygu avatar
    14 posts
    Member since:
    Sep 2012

    Posted 19 Dec 2012 Link to this post

    I have this error

    The Visible property cannot be set on Web Part 'g_XXX'. It can only be set on a standalone Web Part.

    It gives error when add document to list webpart which is in radtabstrip's tab. Or when i want to edit page.
    Everybody says not use "webpart.visible", use "webpart.hidden" but i did not do anything on code. Maybe radtabstrip doing this?
    What is the problem and how can i fix this?
    I have a pagelayout like this,

    <asp:Content ContentPlaceholderID="PlaceHolderPageTitle" runat="server">
        <SharePointWebControls:FieldValue id="PageTitle" FieldName="Title" runat="server"/>
    </asp:Content>
    <asp:Content ContentPlaceholderID="PlaceHolderMain" runat="server">
        <WebPartPages:SPProxyWebPartManager runat="server" id="spproxywebpartmanager"></WebPartPages:SPProxyWebPartManager>
            <WebPartPages:WebPartZone id="g_ProjectWP" runat="server" title="Zone 1"><ZoneTemplate></ZoneTemplate></WebPartPages:WebPartZone>
         
            <telerik:RadTabStrip ID="RadTabStrip1" runat="server" SelectedIndex="0" ReorderTabsOnSelect="True"
                    MultiPageID="RadMultiPage1" ShowBaseLine="true" CausesValidation="False">
                    <Tabs>
                        <telerik:RadTab runat="server" Owner="RadTabStrip1" Selected="True" Text="Proje Sayfası">
                        </telerik:RadTab>
                        <telerik:RadTab runat="server" Owner="RadTabStrip1" Text="Title1">
                        </telerik:RadTab>
                        <telerik:RadTab runat="server" Owner="RadTabStrip1" Text="Title2">
                        </telerik:RadTab>
                        <telerik:RadTab runat="server" Owner="RadTabStrip1" Text="Title3">
                        </telerik:RadTab>
                        <telerik:RadTab runat="server" Owner="RadTabStrip1" Text="Title4">
                        </telerik:RadTab>
                    </Tabs>
                </telerik:RadTabStrip>
                <telerik:RadMultiPage ID="RadMultiPage1" runat="server">
                    <telerik:RadPageView ID="RadPageView1" runat="server" Selected="true">
                    <div class="Left">
                        <WebPartPages:WebPartZone id="g_ProjeLeft" runat="server" title="Zone 2"><ZoneTemplate></ZoneTemplate></WebPartPages:WebPartZone>
                    </div>
                    <div class="Right">
                        <WebPartPages:WebPartZone id="g_ProjeRight" runat="server" title="Zone 3"><ZoneTemplate></ZoneTemplate></WebPartPages:WebPartZone>
                    </div>
                    </telerik:RadPageView>
                    <telerik:RadPageView ID="RadPageView2" runat="server">
                    <WebPartPages:WebPartZone id="g_Title1WP" runat="server" title="Zone 4"><ZoneTemplate></ZoneTemplate></WebPartPages:WebPartZone>
                    </telerik:RadPageView>
                    <telerik:RadPageView ID="RadPageView3" runat="server">
                    <WebPartPages:WebPartZone id="g_Title2WP" runat="server" title="Zone 5"><ZoneTemplate></ZoneTemplate></WebPartPages:WebPartZone>
                    </telerik:RadPageView>
                    <telerik:RadPageView ID="RadPageView4" runat="server">
                    <WebPartPages:WebPartZone id="g_Title3" runat="server" title="Zone 6"><ZoneTemplate></ZoneTemplate></WebPartPages:WebPartZone>
                    </telerik:RadPageView>
                    <telerik:RadPageView ID="RadPageView5" runat="server">
                     
                    <WebPartPages:WebPartZone id="g_Title4" runat="server" title="Zone 7"><ZoneTemplate></ZoneTemplate></WebPartPages:WebPartZone></telerik:RadPageView>
        </telerik:RadMultiPage>
        </asp:Content>


  2. Cat Cheshire
    Cat Cheshire avatar
    128 posts
    Member since:
    Jun 2010

    Posted 24 Dec 2012 Link to this post

    Why do you want to show or hide these web parts?
    Can you explain your case in more details?
    Do you want to show or hide one web part upon some action performed in another web part?

  3. Duygu
    Duygu avatar
    14 posts
    Member since:
    Sep 2012

    Posted 24 Dec 2012 Link to this post

    We must use a tabstrip for these webparts. Our customer wants this page  wiew. Each webpart in a tab. If made some action at one tab i will stay in same tab. That is why i  want this.

    Important part is only  "list webparts"  gives that error. sharepoint or radtabstrip set visible to false, not my code.
  4. Helen
    Admin
    Helen avatar
    1052 posts

    Posted 27 Dec 2012 Link to this post

    Hello,

    Did you try to set the RenderSelectedPageOnly property of RadMultiPage to true?

    Kind regards,
    Helen
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  5. Duygu
    Duygu avatar
    14 posts
    Member since:
    Sep 2012

    Posted 27 Dec 2012 Link to this post

    Hi Helen,

    I tried but did not work. 
  6. Helen
    Admin
    Helen avatar
    1052 posts

    Posted 02 Jan 2013 Link to this post

    Hi,

    Did you try to set the PageViewID property of RadTab instead of the MultiPageID together with the RenderSelectedPageOnly of RadMultiPage?

    Kind regards,
    Helen
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  7. Duygu
    Duygu avatar
    14 posts
    Member since:
    Sep 2012

    Posted 11 Feb 2013 Link to this post

    Hi Helen,

    I tried   using PageViewID property  but it did not work. 
Back to Top