Adding a CellEditTemplate to a Readonly TreeListView makes the column editable

2 posts, 1 answers
  1. Andrei Rinea
    Andrei Rinea avatar
    10 posts
    Member since:
    Jun 2008

    Posted 13 Jan 2011 Link to this post

    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.

  2. Answer
    Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 13 Jan 2011 Link to this post

    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>>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top