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

Primary Button Style

3 Answers 332 Views
Button
This is a migrated thread and some comments may be shown as answers.
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
Albert Shenker asked on 03 Feb 2016, 07:25 PM

I have a rad button with the following declaration, however the button style doesn't appear to obey the "Primary" property. It looks like a regular button (see attached), unlike your demos for the Bootstrap skin. Any idea what's going on? Also, is there any documentation of the "Primary" property anywhere?

 <telerik:RadButton ID="btnSelect" runat="server" Text="Select" CommandName="Select" style="margin-right:7px;" Skin="Bootstrap" ValidationGroup="VG_Form" Primary="true" ></telerik:RadButton>

 

3 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 04 Feb 2016, 07:54 AM

Hi Albert,

Can you check the following:


Regards,

Marin Bratanov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
answered on 04 Feb 2016, 12:43 PM
I am using Q1 2016. Not sure about rendermode. Will check. Does the Primary Button act as the "Default" button on a form (ie hitting the Enter key is like clicking it)? If not is there any plan to make it so. It would seem to make sense.
0
Marin Bratanov
Telerik team
answered on 05 Feb 2016, 08:17 AM

Hi Albert,

There are certain threats to us attempting to implement such a feature:

  • what would be the correct element to attach the keydown handler to? The body, the form, a concrete div?
  • how would the developer define this element since there is an arbitrary number of controls on the form?
  • what happens if the built-in DefaultButton ASP property is used? Have you tried using that for a RadButton just like you would for a <asp:Button>?
  • what happens if some custom code on the form is already listening for the enter key? What if they prevent it from bubbling or if we do? This will break either feature.


Regards,

Marin Bratanov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Button
Asked by
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
Answers by
Marin Bratanov
Telerik team
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
Share this question
or