Command Buttons Appereance

9 posts, 1 answers
  1. Mesut
    Mesut avatar
    10 posts
    Member since:
    Jul 2011

    Posted 22 Jul 2011 Link to this post

    Hi everyone,
    I want to change appereance of Add, Edit, New, Move Next, Move First etc. buttons in Command Buttons Group. I search and read approximately every article in web.

    There is no property for change them in properties. Cancel and Ok has it, but they have just visibility property.

    Can anyone help me for changing style of these command buttons.

    Thanks.
    Best regards.
  2. Answer
    Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1127 posts

    Posted 22 Jul 2011 Link to this post

    Hi Mesut,

    There are no exposed properties that deal with these buttons' appearance. You have to retemplate RadDataForm, in order to customize them.

    Regards,
    Ivan Ivanov
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  3. DevCraft banner
  4. Mesut
    Mesut avatar
    10 posts
    Member since:
    Jul 2011

    Posted 22 Jul 2011 Link to this post

    Thanks for quick response.

    Can you attach some code for retemplating?
  5. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1127 posts

    Posted 22 Jul 2011 Link to this post

    Hi Mesut,

    Here is a help article that illustrates RadDataForm's template structure and provides guidance on how to style it.

    All the best,
    Ivan Ivanov
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  6. Mesut
    Mesut avatar
    10 posts
    Member since:
    Jul 2011

    Posted 22 Jul 2011 Link to this post

    I tried to retemplated it but I could not find which elements. In ControlTemplate tags I have to define some styles for buttons.
    But I don't know what the names are.

    <
    telerik:RadDataForm.Resources>
    <
    ControlTemplate x:Key="RadDataFormControlTemplate1" TargetType="telerik:RadDataForm">
    ...
    </
    ControlTemplate>
    </
    telerik:RadDataForm.Resources>           
    <
    telerik:RadDataForm.Template>
    <StaticResource ResourceKey="RadDataFormControlTemplate1"/>
    </telerik:RadDataForm.Template>


    If you have an example please share.

  7. Mesut
    Mesut avatar
    10 posts
    Member since:
    Jul 2011

    Posted 22 Jul 2011 Link to this post

    Ok thanks for help I found which element is that.

    Solution is adding Grid element in ContentTemplate and adding some buttons in it.

    Best regards.
  8. Tony
    Tony avatar
    2 posts
    Member since:
    Aug 2010

    Posted 08 Aug 2011 Link to this post

    Hi, everyone,
     
    I am looking for the solution to use RadDataForm with customized command buttons (means that adds more "Buttons" for other command, like "Search", or somthing else.)

    Or, is there any built in "Method' to change the "Template" (Readonly, Edit, or AddNew) by code, and add the another ToolBar for command buttons?

    Regards,
  9. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1127 posts

    Posted 08 Aug 2011 Link to this post

    Hi Tony,

    I have prepared an example project for you, extracting RadDataForm's template and adding one additional button. Feel free to modify the template in a way that meets your requirements. As for your second question, you can set the "Template" properties at runtime, loading the DataTemplates from a ResourceDictionary. Please, do not hesitate to contact us if any further inquiries occur.

    Best wishes,
    Ivan Ivanov
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>
  10. Rafik
    Rafik avatar
    1 posts
    Member since:
    Mar 2009

    Posted 10 Mar 2013 Link to this post

    Hello,

    You sample works great, but why does customizing  RadDataForm  works only in the Office_Black and not in other themes, for example I have only changed the size of the delete button, it works perfectly in Office_Black but not in Office_Blue (see screen-shots)

    I am using RadControls for Silverlight Q3 2012.

    Thanks
    Rafik
Back to Top
DevCraft banner