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

Missing ID Properties on RadToolbarItems

6 Answers 68 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
terrysmith
Top achievements
Rank 1
terrysmith asked on 25 Apr 2008, 04:33 PM
Would it be possible to add ID properties to RadToolBarDropDown, RadToolBarButton, and RadToolBarSplitButton?

First, if I define a RadToolBarDropDown within the RadToolBar declaration but then want to dynamically add drop down items to it in the code-behind I have to first find the dropdown within the toolbar's Items collection by index. This is very bug-prone as new toolbar items are added/removed over time. I would much rather look it up by ID or Value.

Second, I would like to set the TargetControlID of a RadToolTip to that of a RadToolBarButton. We currently have our own do-it-yourself toolbar that contains a link which, when hovered over, displays a RadTooltip with a tree control. This was a work-around because we couldn't get a tree control inside a dropdown to function correctly. Currently, I don't see anyway to do that with a RadToolBarButton and a RadToolTip without writing some Javascript to show and position the tooltip (and I just don't have time for that right now).

Following from that, other feature requests would be to be able to define templates for RadToolbarDropDown and for RadToolbarButton itself.


Thank you,
Terry

6 Answers, 1 is accepted

Sort by
0
terrysmith
Top achievements
Rank 1
answered on 25 Apr 2008, 07:05 PM
Oops, I just realized the ability to template the toolbar buttons is already there! My apologies...

I still like to see an ID property added to the toolbar buttons though. Was there a design reason for not doing so?

Thanks,
Terry
0
terrysmith
Top achievements
Rank 1
answered on 25 Apr 2008, 09:33 PM
FYI, I was able to put a hyperlink control inside the toolbar button template and then bind the RadTooltip to its ID.

Works great!


0
Christopher Blickley
Top achievements
Rank 2
answered on 26 Apr 2008, 04:06 PM
I'm pretty sure I remember that the ID is assigned internally before rendering and so the property was made private.  I ran into this with RadMenu I believe at some point.  I simply use the "Value" property in place of the ID and find everything based on that.

-Chris
0
Erjan Gavalji
Telerik team
answered on 29 Apr 2008, 02:40 PM
Hi guys,

Chris, you're right indeed!

I just wanted to add that in RadToolBar for ASP.NET Ajax you can use also the CommandName and CommandArguments properties of the RadToolBarButton and RadToolBarSplitButton to determine the exact item.

Cheers,
Erjan Gavalji
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Jason Lee
Top achievements
Rank 1
answered on 03 Jul 2008, 02:54 AM
Hello,

When ID property will be added??? I have been waiting for it for long time
0
Atanas Korchev
Telerik team
answered on 03 Jul 2008, 06:39 AM
Hi Jason Lee,

We will not add the ID property of the toolbaritems. We are using it internally so it always has predictable values. Lots of the internal implementation relies on this.

Regards,
Albert
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
ToolBar
Asked by
terrysmith
Top achievements
Rank 1
Answers by
terrysmith
Top achievements
Rank 1
Christopher Blickley
Top achievements
Rank 2
Erjan Gavalji
Telerik team
Jason Lee
Top achievements
Rank 1
Atanas Korchev
Telerik team
Share this question
or