Primary Button Style

4 posts, 0 answers
  1. Albert Shenker
    Albert Shenker avatar
    551 posts
    Member since:
    Mar 2004

    Posted 03 Feb Link to this post

    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>

     

  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 04 Feb Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Albert Shenker
    Albert Shenker avatar
    551 posts
    Member since:
    Mar 2004

    Posted 04 Feb Link to this post

    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.
  5. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 05 Feb Link to this post

    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
Back to Top