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

Change RadDock title client-side AND server-side

7 Answers 146 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Christoffer Rosenqvist
Top achievements
Rank 1
Christoffer Rosenqvist asked on 05 Nov 2009, 04:52 PM
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.

7 Answers, 1 is accepted

Sort by
0
Petio Petkov
Telerik team
answered on 11 Nov 2009, 01:32 PM
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.
0
Shunmuga Priya K
Top achievements
Rank 1
answered on 03 May 2010, 10:35 AM
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)
0
Pero
Telerik team
answered on 05 May 2010, 12:28 PM
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.
0
LINSON THOMACHAN
Top achievements
Rank 1
answered on 08 May 2010, 06:42 PM
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.
0
Pero
Telerik team
answered on 12 May 2010, 01:08 PM
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.
0
Christoffer Rosenqvist
Top achievements
Rank 1
answered on 03 Jun 2010, 02:07 PM
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?
0
Pero
Telerik team
answered on 08 Jun 2010, 01:08 PM
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.
Tags
Dock
Asked by
Christoffer Rosenqvist
Top achievements
Rank 1
Answers by
Petio Petkov
Telerik team
Shunmuga Priya K
Top achievements
Rank 1
Pero
Telerik team
LINSON THOMACHAN
Top achievements
Rank 1
Christoffer Rosenqvist
Top achievements
Rank 1
Share this question
or