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

Renaming tabs

5 Answers 51 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Mark Mrozek
Top achievements
Rank 2
Mark Mrozek asked on 30 Sep 2008, 08:56 PM
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!

5 Answers, 1 is accepted

Sort by
0
Paul
Telerik team
answered on 01 Oct 2008, 02:33 PM
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.
0
Sean
Top achievements
Rank 2
answered on 11 Feb 2011, 12:53 AM
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
0
Yana
Telerik team
answered on 11 Feb 2011, 09:08 AM
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.
0
Sean
Top achievements
Rank 2
answered on 11 Feb 2011, 08:29 PM
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.
0
Yana
Telerik team
answered on 17 Feb 2011, 10:18 AM
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
Tags
TabStrip
Asked by
Mark Mrozek
Top achievements
Rank 2
Answers by
Paul
Telerik team
Sean
Top achievements
Rank 2
Yana
Telerik team
Share this question
or