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.

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

    Posted 28 Mar 2011 Link to this post


    RadElements don't have an Id property. The Name property will be unique on any form however.
    Hope this helps
  3. Simon
    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.

    the Telerik team
  4. Garry
    Garry avatar
    44 posts
    Member since:
    Sep 2012

    Posted 16 Feb 2012 Link to this post

    • 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?

  5. Kate
    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:

    Kind regards,
    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