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.
4 Answers, 1 is accepted
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,
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
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
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.
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:
RibbonView Paint With MVVM
DomainDataSource MVVM Support
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.
the Telerik team