Renaming tabs

6 posts, 0 answers
  1. Mark Mrozek
    Mark Mrozek avatar
    6 posts
    Member since:
    Jul 2006

    Posted 30 Sep 2008 Link to this post

    Greetings! I am trying to create a tabstrip that allows users to add, remove and rename their tabs. The add and remove are fairly straightforward, but I'm wondering if anyone has come up with a more elegant way to do the rename.

    I was hoping for something along the lines of the treeview control which allows inline editing of the label, but I don't see this in regard to tabs. I can "fake it" by putting an editable field in the tab or creating a prompt, but I am hoping I'm missing something and it's easier than this.

    Any suggestions are much appreciated!
  2. Paul
    Admin
    Paul avatar
    4281 posts

    Posted 01 Oct 2008 Link to this post

    Hello Mark,

    Unfortunately, inline editing of tabs' text is not possible in the current version of the control. I have logged this suggestion in our TODO list, however at this point we cannot commit to a specific date for implementation.

    Best wishes,
    Paul
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Sean
    Sean avatar
    200 posts
    Member since:
    Nov 2010

    Posted 10 Feb 2011 Link to this post

    Hi Telerik,

    Was this ever addressed? If not, could a mock-up be provided on best practice for letting user rename their tab? I currently create tabs with name "New Tab {0}" where {0} is the current tab count.

    I believe I saw an example -somewhere- of the ability to click an item's text and have it become editable. I can't find it anywhere, though.

    Thanks,

    Sean
  5. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 11 Feb 2011 Link to this post

    Hello Sean,

    Unfortunately RadTabStrip doesn't support this functionality, you can use templates to achieve this. We're sorry for the inconvenience.

    All the best,
    Yana
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  6. Sean
    Sean avatar
    200 posts
    Member since:
    Nov 2010

    Posted 11 Feb 2011 Link to this post

    Would it be possible to explain this a bit further?

    I am looking into the item template example here but I was hoping to find an example where the user's double-click is captured, the label goes into some sort of 'edit' mode, and then when the label loses focus it moves back out of 'edit' mode. 

    The way I could think of doing this seems really complicated, though. It would be having two controls on every tab, one a text box and the other a label. The text box is initially set to visible=false, and the label set to visible=true. I would capture the label's double-click event and toggle the two control's visibility. This would then allow the user to enter a new name of the label. When the text box loses focus it toggles each controls visibility again. 

    Like I said, though, I am positive I saw an example of this functionality somewhere on the ASP.NET portion of the Telerik website. I've gone through a ton of the examples trying to find it again, but haven't been successful.
  7. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 17 Feb 2011 Link to this post

    Hi Mark,

    I guess that you've seen this in RadTreeView  - it supports node editing.

    Regarding the tabstrip - unfortunately you are right about the needed approach - you should place a label and a textbox in the template and use their events.

    Best wishes,
    Yana
    the Telerik team
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017