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

Set levels in grid to readonly

3 Answers 142 Views
GanttView
This is a migrated thread and some comments may be shown as answers.
Sture
Top achievements
Rank 1
Sture asked on 13 Apr 2012, 08:27 AM

Hi,
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">
                    <telerik:ColumnDefinition.CellEditTemplate>
                        <DataTemplate>
                            <telerik:RadDatePicker 
                                 SelectedValue="{Binding End,Mode=TwoWay}"
                                 IsReadOnly="{Binding isLevelReadOnly}"  />
                        </DataTemplate>
                    </telerik:ColumnDefinition.CellEditTemplate>
</telerik:ColumnDefinition>

3 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 18 Apr 2012, 09:41 AM
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.

Greetings,
Yana
the Telerik team

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

0
Sonja
Top achievements
Rank 1
answered on 03 Sep 2015, 01:35 PM

Hi Telerik-team,

 

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

 

Best regards,

Sonja

0
Nasko
Telerik team
answered on 07 Sep 2015, 02:11 PM
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.

Regards,
Nasko
Telerik
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
Tags
GanttView
Asked by
Sture
Top achievements
Rank 1
Answers by
Yana
Telerik team
Sonja
Top achievements
Rank 1
Nasko
Telerik team
Share this question
or