Client Side get Button ID

5 posts, 0 answers
  1. Brian
    Brian avatar
    6 posts
    Member since:
    Feb 2011

    Posted 27 Mar 2011 Link to this post

    Is there any way to get a buttons ID instead of just the Text.

    I have a button Add under a "Pages" group and an Add under a "Users" group.   Just getting the text isn't good enough.

    Is there a similar method to:  button.get_text()   such as  button.get_id() ???

    Only code I could find in the help file was:
      var button = args.get_button();          
    alert (button.get_text())

    Thanks for the help.   If there isn't then would be good to add to the future feature list.

    Thanks!
  2. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 28 Mar 2011 Link to this post

    Hello,

    RadElements don't have an Id property. The Name property will be unique on any form however.
    Hope this helps
    Richard
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 28 Mar 2011 Link to this post

    Hello Brian,

    We will be adding one or some of the following: Value, CommandName and CommandArgument and the respective properties and findBy- methods. We are targeting the Service Pack, however they will also be available incrementally through the internal builds we publish each week.

    Please let us know if you have some other feedback on RadRibbonBar - we will be glad to hear it.

    Regards,
    Simon
    the Telerik team
  5. Garry
    Garry avatar
    43 posts
    Member since:
    Sep 2012

    Posted 16 Feb 2012 Link to this post

    Tried
    • args.get_button().get_value();
    • args.get_button().get_ID();
    • args.get_button().get_name();
    • args.get_button().name();

    None returned either the ID or name of the button - please advise?

  6. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 16 Feb 2012 Link to this post

    Hello Garry,

    Please take a look at the following help articles where you can find more information on the properties that you can use with the RadRibbonBar ASP.NET AJAX control:

    http://www.telerik.com/help/aspnet-ajax/ribbonbar-item-client-object.html
    http://www.telerik.com/help/aspnet-ajax/ribbonbar-client-programming-basics.html

    Kind regards,
    Kate
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top
UI for WinForms is Visual Studio 2017 Ready