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

Setting RadPane.Title at runtime

2 Answers 103 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Jamest
Top achievements
Rank 2
Jamest asked on 05 May 2009, 10:47 PM
I am setting my RadPane's title at runtime and it doesn't get refreshed/rendered. I save/load the layout and see the title reflecting my value being set. So I know the property is being set, just not rendered. Any pointers? Note if I set the header it changes but unfortuneatly it also changes it for its tab. So all I want is the title to reflect my dynamic value.

My pane's name is paneContent and displayName is set by the selection of a treeNode:

paneContent.Header=

"Contents";

 

paneContent.Title =

"Displaying: " + displayName;

Thank you in advance.

Jordan

 

2 Answers, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 06 May 2009, 10:51 AM
Hello Ender,

Thanks for your report.

I am afraid it appears that you have discovered a bug in our RadDocking control. The PaneHeader and the header of the ToolWindow do not get updated when the Title property has been changed. I will log it in our To-Do list right away and we will surely be looking into fixing it with the forthcoming Q2 release due by the end of June. By then, I suggest that you use the following workaround:

RadPaneGroup group = pane.Parent as RadPaneGroup; 
if (group.SelectedPane == pane) 
    pane.Title = "Title " + (i++).ToString(); //put your code here... 
    group.SelectedIndex = -1; 
    group.SelectedItem = pane; 
where, pane is the RadPane control that will be updated.

Your Telerik points have been updated for your report.

Regards,
Miroslav Nedyalkov
the Telerik team

Instantly find answers to your questions on the newTelerik Support Portal.
Check out the tipsfor optimizing your support resource searches.
0
Jamest
Top achievements
Rank 2
answered on 06 May 2009, 03:58 PM
Thank you for your reply. your work around works. Unfortuneatly it has  uncovered another issue for me. I will submit ticket.
   Jordan
Tags
Docking
Asked by
Jamest
Top achievements
Rank 2
Answers by
Miroslav Nedyalkov
Telerik team
Jamest
Top achievements
Rank 2
Share this question
or