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

Command Buttons Appereance

8 Answers 209 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
Mesut
Top achievements
Rank 1
Mesut asked on 22 Jul 2011, 11:06 AM
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.

8 Answers, 1 is accepted

Sort by
0
Accepted
Ivan Ivanov
Telerik team
answered on 22 Jul 2011, 11:33 AM
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!

0
Mesut
Top achievements
Rank 1
answered on 22 Jul 2011, 12:00 PM
Thanks for quick response.

Can you attach some code for retemplating?
0
Ivan Ivanov
Telerik team
answered on 22 Jul 2011, 12:11 PM
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!

0
Mesut
Top achievements
Rank 1
answered on 22 Jul 2011, 12:35 PM
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.

0
Mesut
Top achievements
Rank 1
answered on 22 Jul 2011, 12:41 PM
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.
0
Tony
Top achievements
Rank 1
answered on 08 Aug 2011, 10:59 AM
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,
0
Ivan Ivanov
Telerik team
answered on 08 Aug 2011, 02:27 PM
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 >>
0
Rafik
Top achievements
Rank 1
answered on 10 Mar 2013, 08:52 PM
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
Tags
DataForm
Asked by
Mesut
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
Mesut
Top achievements
Rank 1
Tony
Top achievements
Rank 1
Rafik
Top achievements
Rank 1
Share this question
or