set Indeterminate on the client side, when tristatecheckbox=false

2 posts, 0 answers
  1. mirang
    mirang avatar
    115 posts
    Member since:
    Aug 2010

    Posted 05 Mar 2012 Link to this post

    Is it possible to set the Indeterminate state of the node from the client side, when the TriStateCheckBoxes=false. I tried setting it using the solution provided in the below link : 

    but it works only when we set the TriStateCheckBoxes=true.
    Is this a limitation or there is any workaround.

  2. Kevin
    Kevin avatar
    360 posts
    Member since:
    Jul 2012

    Posted 05 Mar 2012 Link to this post

    Hello Mirang,

    When you TriStateCheckBoxes set to true, it renders the checkboxes using a span that has a css class that changes the background of the span. So it create a fake checkbox control, thus the reason it's capable of showing the Indeterminate state. When you have this setting set to false, it uses real checkbox control.

    So if you want the ability to show the three states, you need to set TriStateCheckBoxes to true.

    I hope that helps.
Back to Top