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

Implement a Tab edit template?

4 Answers 71 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Jon Barron
Top achievements
Rank 1
Jon Barron asked on 01 Dec 2010, 09:31 PM

I would like users to be able to rename the name of a dock panel by clicking on the title tab, and having the click change the mode of the tab to an edit template containing a text box which is databound to my view's "Name" property.

Can you please explain how I can accomplish this?

4 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 02 Dec 2010, 04:53 PM
Hi Jon,

I would suggest you to edit the RadPane title template. For more information, please refer to our online documentation - http://www.telerik.com/help/silverlight/raddocking-how-to-add-buttons-to-the-pane-headers.html and http://www.telerik.com/help/silverlight/raddocking-styles-and-templates-templates-structure.html

I hope this helps.
 

All the best,
George
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Robert Bergman
Top achievements
Rank 1
answered on 17 Jun 2011, 10:47 AM
Hello George,

I have a similar requirement as mentioned by Jon. I went through the links that you have given, but am still wondering how changing the header template would work.
My requirement is that when user selects/clicks on the tab the title turns into editable textbox. But in case I add a textbox in header template, it shows up even when user is not clicking on header i.e. user is working on the body part of RadPane.

Regards,
0
vishal sharma
Top achievements
Rank 1
answered on 21 Jun 2011, 01:37 PM
Hello George,

Could you please elaborate more on your suggestions regarding Jon's query?
I went through the links provided by you but am not clear about how can Header Template be changed to a Textboxon click of Header of a RadPane. When the RadPane Header is not selected the template should be having TextBlock.

Thanks,
0
Miroslav Nedyalkov
Telerik team
answered on 22 Jun 2011, 07:37 AM
Hello Everybody,

 What Georgi suggested was to change the HeaderTemplate and to place there some more complex control that will do this logic - will show a TextBox when clicked and hide it when unfocused. Placing just a TextBox will make the header editable all the time.

Kind regards,
Miroslav Nedyalkov
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
Docking
Asked by
Jon Barron
Top achievements
Rank 1
Answers by
George
Telerik team
Robert Bergman
Top achievements
Rank 1
vishal sharma
Top achievements
Rank 1
Miroslav Nedyalkov
Telerik team
Share this question
or