Command property is not coming for RadColorPicker.

5 posts, 0 answers
  1. Srinivasareddy
    Srinivasareddy avatar
    5 posts
    Member since:
    Sep 2012

    Posted 11 Sep 2012 Link to this post

    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.
  2. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 11 Sep 2012 Link to this post

    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.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Shayne
    Shayne avatar
    3 posts
    Member since:
    Sep 2012

    Posted 11 Sep 2012 Link to this post

    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
  5. Srinivasareddy
    Srinivasareddy avatar
    5 posts
    Member since:
    Sep 2012

    Posted 13 Sep 2012 Link to this post

    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.
  6. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 13 Sep 2012 Link to this post

    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.

Back to Top
UI for WPF is Visual Studio 2017 Ready