Set levels in grid to readonly

4 posts, 0 answers
  1. Sture
    Sture avatar
    3 posts
    Member since:
    Feb 2012

    Posted 13 Apr 2012 Link to this post

    Is it possible to set some levels in the ganttview grid to readonly?
    If we take the sample "Import from MS Project" as an example and says that we want OutlineLevel 1,2,3 to be readonly and OutlineLevel 4 as editabled. How do i do that?

    Only thing that i have tested so far is to have a  boolean property in my custom tasks class  and then try to bind it to the control for the specific level:

    <telerik:ColumnDefinition MemberBinding="{Binding End_str}" Header="End" ColumnWidth="80">
                                     SelectedValue="{Binding End,Mode=TwoWay}"
                                     IsReadOnly="{Binding isLevelReadOnly}"  />
  2. Yana
    Yana avatar
    4548 posts

    Posted 18 Apr 2012 Link to this post

    Hello Sture,

    At the moment we cannot suggest a different way to set certain levels to be read-only.  You should really create a custom GanttTask and bind IsReadOnly property of the controls in the CellEditTemplate. I've attached a simple example for a reference.
    Anyway, this scenario will be considered for the upcoming versions of the control.

    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
  4. Sonja
    Sonja avatar
    1 posts
    Member since:
    Jun 2013

    Posted 03 Sep 2015 Link to this post

    Hi Telerik-team,


    is there a better solution for this problem in the newer versions of the GanttView?


    Best regards,


  5. Nasko
    Nasko avatar
    556 posts

    Posted 07 Sep 2015 Link to this post

    Hello Sonja,

    In its current implementation there is no other approach that we could suggest you in order to achieve the desired ReadOnly behavior than the one proposed by Yana. 

    Please, check it and let us know if it suits your requirements.

    Hopes it will help you.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top