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

Checkboxes

2 Answers 41 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Stuart Hemming
Top achievements
Rank 2
Stuart Hemming asked on 24 Sep 2009, 08:40 AM
Just a thought, as I'm passing...

Rather than having to say:
RadTreeView1.Checkboxes = true
RadTreeView1.TriStateCheckBoxes = true 

and having the inherent danger of trying to enable tristate check boxes without first enabling checkboxs, wouldn't it be better to have an enum...
public enum RadTreeNodeCheckBoxMode {None, Bistate, TriState}; 

and simply get rid of the TriStateCheckBoxes property?

As I say, just an idle thought.

--
Stuart

2 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 25 Sep 2009, 07:52 AM
Hello Stuart Hemming,

Indeed that would have been an improvement over the existing API. Unfortunately it would also introduce a breaking change - removing an existing property.

All the best,
Albert,
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Stuart Hemming
Top achievements
Rank 2
answered on 25 Sep 2009, 07:59 AM
Albert,

> Unfortunately it would also introduce a breaking change - removing an existing property.
True enough. However, you could mark both the CheckBoxes and TriStateCheckBoxes properties as depricated and introduce a new CheckBoxMode property that used the enum.

Go on, you know you want to. :-)

--
Stuart
Tags
TreeView
Asked by
Stuart Hemming
Top achievements
Rank 2
Answers by
Atanas Korchev
Telerik team
Stuart Hemming
Top achievements
Rank 2
Share this question
or