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

Client Side get Button ID

4 Answers 132 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Brian
Top achievements
Rank 1
Brian asked on 28 Mar 2011, 01:35 AM
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!

4 Answers, 1 is accepted

Sort by
0
Richard Slade
Top achievements
Rank 2
answered on 28 Mar 2011, 12:06 PM
Hello,

RadElements don't have an Id property. The Name property will be unique on any form however.
Hope this helps
Richard
0
Simon
Telerik team
answered on 28 Mar 2011, 05:34 PM
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
0
Garry
Top achievements
Rank 2
Veteran
answered on 16 Feb 2012, 04:50 PM
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?

0
Kate
Telerik team
answered on 16 Feb 2012, 05:41 PM
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 >>
Tags
RibbonBar
Asked by
Brian
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Simon
Telerik team
Garry
Top achievements
Rank 2
Veteran
Kate
Telerik team
Share this question
or