Change RadDock title client-side AND server-side

8 posts, 0 answers
  1. Christoffer Rosenqvist
    Christoffer Rosenqvist avatar
    28 posts
    Member since:
    Oct 2009

    Posted 05 Nov 2009 Link to this post

    I have a script client side that changes the title of a RadDock using the dock.set_title('New title') method. Why does this not reflect on the post back when I use RadDockLayout.GetRegisteredDocksState()? Here all the titles are as they were before.
  2. Petio Petkov
    Admin
    Petio Petkov avatar
    825 posts

    Posted 11 Nov 2009 Link to this post

    Hi Christoffer,

    At the moment this functionality is not supported. We will add it for the next official RadControls for ASP.NET AJAX release.
    As a temporary workaround you can use a hidden input in the RadDock control, where you can store the info about the Title.
    Your telerik points were updated for bringing this issue to our attention.

    Sincerely yours,
    Petio Petkov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Shunmuga Priya K
    Shunmuga Priya K avatar
    12 posts
    Member since:
    Mar 2010

    Posted 03 May 2010 Link to this post

    Hello,

    I have a script client side that changes the content of a RadDock using the document.getElementById("rdcontent_C").innerHTML method. Similar to the title problem posted by Christoffer,Why does this not reflect on the post back when I use RadDockLayout.GetRegisteredDocksState()? Here all the content are as they were before.Can i proceed in this way or any other workaround for this? Please reply ASAP.Thanks in advance.

    Please note that, i am using dynamically created raddock.So, how can i add hiddenfield into raddock?
    Also,i am using Telerik DLL (Version 2009.02.0701.35)
  5. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 05 May 2010 Link to this post

    Hello Shunmuga,

    You have not used a client-side method of the RadDock's client object to set content, but a general JavaScript method to set innerHTML to a certain HTML element. This is basically the same as setting innerHTML element to a <div/> (for example) element, and expecting it to hold its content after a page postback.

    A hidden field can be added into the dock's content container that will store the content. But, since you are modifying the innerHTML of the content container element, my suggestion is to place a <div/> within the container and change the content of the <div/>. The dock should look like the following:

    <telerik:RadDock ID="RadDock1" runat="server" Title="RadDock-Title" Width="300px"
        OnClientInitialize="OnClientInitialize" EnableDrag="false" DefaultCommands="None">
        <ContentTemplate>
            <div id="divContent">
            </div>
            <asp:HiddenField ID="HiddenField1" runat="server" />
        </ContentTemplate>
    </telerik:RadDock>



    Best wishes,
    Pero
    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.
  6. LINSON THOMACHAN
    LINSON THOMACHAN avatar
    4 posts
    Member since:
    Dec 2009

    Posted 08 May 2010 Link to this post

    Hi,
    i need to know how to change skins of raddock at client side at runtime.(i.e to change the themes as the user wishes) in Telerik RadControls for ASP.NET AJAX Q3 2009 SP1. Also i need the codes that would help me to inlcude the business card demo that comes with the RadControls for Winforms Q3 2009 SP1. when i try to copy the codes from the demo, i get many errors . pls help me. i want to customize and use the business card in my project.
  7. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 12 May 2010 Link to this post

    Hello Linson,

    The Skin property of the RadDock for ASP.NET AJAX cannot be changed on the client. In fact, a full page postback (not Ajax call) is needed in order for the skin to be changed.

    Please open a new support ticket or a new forum thread in the respective (correct) section, regarding your questions about the RadControls for Winforms.

    Best wishes,
    Pero
    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.
  8. Christoffer Rosenqvist
    Christoffer Rosenqvist avatar
    28 posts
    Member since:
    Oct 2009

    Posted 03 Jun 2010 Link to this post

    Hello!

    I have now upgraded to the latest version of ASP.NET AJAX controls. This functionality is still not supported, or am I missing something?
  9. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 08 Jun 2010 Link to this post

    Hello Christoffer,

    The issue was logged for implementation, but we decided not to implement it. We did an extensive research of whether the functionality should be implemented, and it turns out that the feature will interfere (overlap) with the existing TitlebarTemplate functionality (http://demos.telerik.com/aspnet-ajax/dock/examples/edittitle/defaultcs.aspx). This of course would mean additional load on the client, and increased client-state of the control.

    Please accept our sincere apologies for this inconvenience, and do not hesitate to contact us if you have any other questions.


    Greetings,
    Pero
    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017