ViewDefinitions not setable!

4 posts, 0 answers
  1. Elgan
    Elgan avatar
    9 posts
    Member since:
    Nov 2012

    Posted 06 Dec 2012 Link to this post

    to make sure I'm right.


    RadScheduleView.ViewDefinitions ..is read only? not setable?

    why?


    any way round this? !

    Edit: The viewDefinitions don't even have visible propertie....

    so I am stuck? or use a new control
  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 11 Dec 2012 Link to this post

    Hi Elgan,

    That is correct, ViewDefinitions property is not settable. Could you please explain the requirement in more details?

    Regards,
    Yana
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Elgan
    Elgan avatar
    9 posts
    Member since:
    Nov 2012

    Posted 14 Dec 2012 Link to this post

    I would like to let the user add viewdefinitions.

    Select for example if they want to see a week view, or a month view,  which first and so on.

    so I might have the following views;

    Firdays only view
    Thursdays only view
    weekends view
    weekdays view
    Month view
    timeline view
    day view
    week view


    Then they can select which they want to see by default. Without having loads of buttons / or even a drop down.

    To do this, I need to be able to edit, set the collection

  5. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 18 Dec 2012 Link to this post

    Hi Elgan,

    Thank you for sending the details.

    You could add and remove ViewDefinitions like this in code-behind only.  The property is not settable as the common scenario is to define the VIewDefinitions in XAML,

    We're sorry for the inconvenience.

    Kind regards,
    Yana
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top