tri state doesn't work properly

5 posts, 0 answers
  1. shai
    shai avatar
    5 posts
    Member since:
    Nov 2010

    Posted 21 Dec 2010 Link to this post

    1. i have tree with about 4 levels
    the first level i get from server code and the other
    by webservice.

    in the begining i just recieve
    the first level
    i know from advanced what is their checked property
    some are:

  2. 0 - Unchecked
  3. 1 - Checked
  4. 2 - Indeterminate
  5. how can i set these values by code ,when the component can't make it itself
    , because it doesn't have childs yet (until i click on some of the first level and recive by webservice their childs. the second level)

    2. one more problem is that tri state doesn't work properly. example: one of the three childs isn't checked, the father of it, the second level is Indeterminate but the first level is Checked  instead of Indeterminate 

  • Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 21 Dec 2010 Link to this post

    Hello,

    I'm not sure I understand your first issue. Please can you explain in more detail.

    for the second one, this is how the tri-state mode works. If you have a Parent node, and 4 child nodes, then check one of hte child nodes and the parent node state is intermediate, showing that only some of the children are checked.

    Regards,
    Richard
  • UI for WinForms is Visual Studio 2017 Ready
  • shai
    shai avatar
    5 posts
    Member since:
    Nov 2010

    Posted 21 Dec 2010 Link to this post

    explain problem 2:
    there a 3 levels
    in the third level there are some childs not all, its parent the second level is Indeterminate  and it is ok
    but the first level is , the grand father, is Checked  instead of Indeterminate 
  • Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 21 Dec 2010 Link to this post

    Hello,

    At the moment I haven't been able to replicate this issue. Perhaps I have misunderstood. Please can you post a code sample using the Format Code block that will replicate this and I'll be happy to take a look at it for you
    Thanks
    Richard
  • Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 27 Dec 2010 Link to this post

    Hello shai,

    I tested this scenario with RadTreeView and could not reproduce the issue. When updating a child node the parent and root parent are updated correctly to Indeterminate state - the representation is grey check mark when using the ControlDefault theme.

    If you continue to experience the issue please send us a simple project. This will help me to locate the issue and to find a proper solution. Thank you in advance.

    I am looking forward to your reply.

    Best wishes,
    Julian Benkov
    the Telerik team
    Q3’10 SP1 of RadControls for WinForms is available for download; also available is the Q1'11 Roadmap for Telerik Windows Forms controls.
  • Back to Top
    UI for WinForms is Visual Studio 2017 Ready