Checkboxes

3 posts, 0 answers
  1. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 24 Sep 2009 Link to this post

    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. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 25 Sep 2009 Link to this post

    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.
  3. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 25 Sep 2009 Link to this post

    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
Back to Top