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

Adding a CellEditTemplate to a Readonly TreeListView makes the column editable

1 Answer 111 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Andrei Rinea
Top achievements
Rank 1
Andrei Rinea asked on 13 Jan 2011, 01:53 PM

Hello all,

Sorry if, at least the title, might seem odd at least but bear with me because it does make sense in the end.

I need a TreeList to show items that are not initially editable (i.e.: clicking on them won't start editing) but are editable in certain conditions controlled programatically. Such as pressing F2 or adding a new item in the TreeList...

Otherwise a double click is a command that should open the item in a new window (or something) and in this case the first click selects it and the second makes it enter edit mode although it is read-only.

I have isolated the problem and it seems that no matter if I set IsReadOnly=true for both the RadTreeListView and the column itself. Just adding a CellEditTemplate makes it by default editable although I wish it weren't. The only workaround that I have found is to remove completely the CellEditTemplate.

I am not able to attach an archive with a specially-prepared project that shows this exact problem. Therefore I will attach snapshots of the main files involved.

1 Answer, 1 is accepted

Sort by
0
Accepted
Veselin Vasilev
Telerik team
answered on 13 Jan 2011, 02:04 PM
Hi Andrei Rinea,

We have fixed this problem in our branch and will be available in the SP1 release. We are polishing it right now and will make it live in a couple of days.

Stay tuned.

All the best,
Veselin Vasilev
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
TreeListView
Asked by
Andrei Rinea
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Share this question
or