Implement a Tab edit template?

5 posts, 0 answers
  1. Jon Barron
    Jon Barron avatar
    24 posts
    Member since:
    Oct 2012

    Posted 01 Dec 2010 Link to this post


    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?
  2. George
    Admin
    George avatar
    1332 posts

    Posted 02 Dec 2010 Link to this post

    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
  3. DevCraft banner
  4. Robert Bergman
    Robert Bergman avatar
    6 posts
    Member since:
    Nov 2009

    Posted 17 Jun 2011 Link to this post

    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,
  5. vishal sharma
    vishal sharma avatar
    6 posts
    Member since:
    Jan 2010

    Posted 21 Jun 2011 Link to this post

    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,
  6. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 22 Jun 2011 Link to this post

    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
Back to Top
DevCraft banner