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

Command property is not coming for RadColorPicker.

4 Answers 121 Views
ColorPicker
This is a migrated thread and some comments may be shown as answers.
Srinivasareddy
Top achievements
Rank 1
Srinivasareddy asked on 11 Sep 2012, 06:16 AM
Hi Team,

Am working with WPF MVVM Pattern using rad controls.
Now am using Radcolorpicker. Instead of events i want to use Command binding to call the code which is in viewModel.
But i didn't find the Command property for RadColorpicker. Then how can i do this. Reply me asap.

Regards,
Srinivas.

4 Answers, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 11 Sep 2012, 10:42 AM
Hello Srinivasareddy ,

 The Command, CommandParameter and CommandTarget properties are available from Q2 2012 SP (0725). You have to use this version of RadControls or newer internal build. You may not see this in the intellisense of VisualStudio but this will be fixed in the upcoming Q3 2012 next month.

Kind regards,
Petar Mladenov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Shayne
Top achievements
Rank 2
answered on 11 Sep 2012, 01:28 PM
Hello Srinivasareddy,



You can use nuget and add MVVM Light to your project which will give you the EventToCommand abilities.  This library works great with the Telerik controls and with Blend. 



It will give you the Command and CommandParameter properties on any of the Telerik controls.



Let me know if you have any questions
0
Srinivasareddy
Top achievements
Rank 1
answered on 13 Sep 2012, 05:02 AM
Hi Shayne,

Thanks for your reply.
Am very new to the MVVM. I have done one project with normal WPF. Now i want to work with MVVM Pattren. So in VS2010 Online Templates i found one template for MVVM, With this i have created one project and in this project am working with telerik controls. But i think these controls are unfit to working with MVVM. As you said they are working greatly wiht MVVM Light. But i don't know how to start with MVVM Light. I have installed MVVM Light(Gala Soft) , and created one project with this template then i just dragged and dropped RadColor Picker. Still i did not get command and CommandProperty, EventtoMethod properties for this. Is this is the Correct Template for MVVM Light. Can you help in this.
0
Petar Mladenov
Telerik team
answered on 13 Sep 2012, 06:45 AM
Hello Srinivasareddy,

 Could you please confirm that you use Q2 2012 Sp version of RadControls? This is the first version to provide the Command property of the RadColorPicker.
We are very sorry to hear that you think our RadControls do not work in MVVM scenarios. We could not agree with this. It's a fact that many of our examples are based on this pattern, for example:
Diagrams OrgChart
Diagrams MindMap
TreeView HierarchicalDataTemplates
RibbonView Paint With MVVM
DomainDataSource MVVM Support
Book DataBinding
ChartView Financial
TabControl DataBinding
In our documentation, we have a separate section describing the DataBinding capabilities of the RadControls - Section DataBinging describing the telerik's HierarchicalDatatemplates, StyleSelectors, TemplateSelectors which help a lot in various MVVM scenarios.

All the best,
Petar Mladenov
the Telerik team

Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

Tags
ColorPicker
Asked by
Srinivasareddy
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Shayne
Top achievements
Rank 2
Srinivasareddy
Top achievements
Rank 1
Share this question
or