Missing ID Properties on RadToolbarItems

7 posts, 0 answers
  1. terrysmith
    terrysmith avatar
    127 posts
    Member since:
    Nov 2006

    Posted 25 Apr 2008 Link to this post

    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
  2. terrysmith
    terrysmith avatar
    127 posts
    Member since:
    Nov 2006

    Posted 25 Apr 2008 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. terrysmith
    terrysmith avatar
    127 posts
    Member since:
    Nov 2006

    Posted 25 Apr 2008 Link to this post

    FYI, I was able to put a hyperlink control inside the toolbar button template and then bind the RadTooltip to its ID.

    Works great!


  5. Christopher Blickley
    Christopher Blickley avatar
    202 posts
    Member since:
    Jan 2004

    Posted 26 Apr 2008 Link to this post

    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
  6. Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1455 posts

    Posted 29 Apr 2008 Link to this post

    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
  7. Jason Lee
    Jason Lee avatar
    185 posts
    Member since:
    Oct 2004

    Posted 02 Jul 2008 Link to this post

    Hello,

    When ID property will be added??? I have been waiting for it for long time
  8. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 03 Jul 2008 Link to this post

    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017