Radtree view question

4 posts, 1 answers
  1. Webster Velasco
    Webster Velasco avatar
    114 posts
    Member since:
    Jun 2012

    Posted 01 Jul 2010 Link to this post

    hi
    i have this radtreeview
                                        <telerik:RadTreeView  ID="rts1" runat="server" CheckBoxes="True" TriStateCheckBoxes="true" Skin="Outlook"
                                            <Nodes> 
                                                <telerik:RadTreeNode Text="01 PRODOTTO FINITO " Value="P"
                                                    <Nodes> 
                                                        <telerik:RadTreeNode Text="CIFRATURA" Value="1"
                                                            <Nodes> 
                                                                <telerik:RadTreeNode Text="PER SISTEMI(cifrature per sistemi)"
                                                                    <Nodes> 
                                                                        <telerik:RadTreeNode Checkable="false"
                                                                            <NodeTemplate> 
                                                                                <div class="entry"
                                                                                    <table class="pain"
                                                                                        <tr> 
                                                                                            <td>Quante chiavi caduno</td> 
                                                                                            <td> 
                                                                                                <asp:RadioButton runat="server" ID="opt" GroupName="optCHIAVI" Text="std da corredo" /> 
                                                                                                <asp:RadioButton runat="server" ID="RadioButton8" GroupName="optCHIAVI" Text="Senza chiavi" /> 
                                                                                            </td> 
                                                                                            <td> 
                                                                                                <asp:RadioButton runat="server" ID="RadioButton9" GroupName="optCHIAVI" Text="Altro" /> 
                                                                                                <telerik:RadTextBox runat="server" ID="txtaltro" MaxLength="2" /> 
                                                                                            </td> 
                                                                                        </tr> 
                                                                                        <tr> 
                                                                                            <td>CHIAVE (articolo comm.)</td> 
                                                                                            <td><telerik:RadTextBox ID="txtChi" runat="server" /></td
                                                                                            <td></td
                                                                                        </tr> 
                                                                                        <tr> 
                                                                                            <td colspan="3">&nbsp;</td> 
                                                                                        </tr> 
                                                                                        <tr> 
                                                                                            <td>Nuovo piano (ns. scelta)</td> 
                                                                                            <td><asp:RadioButton runat="server" ID="optPiano" GroupName="Piano" /></td
                                                                                            <td>&nbsp;</td> 
                                                                                        </tr> 
                                                                                        <tr> 
                                                                                            <td colspan="3">&nbsp;</td> 
                                                                                        </tr> 
                                                                                        <tr> 
                                                                                            <td>A campione allegato</td> 
                                                                                            <td><asp:RadioButton runat="server" ID="RadioButton10" GroupName="Piano" /></td
                                                                                            <td>&nbsp;</td> 
                                                                                        </tr> 
                                                                                        <tr> 
                                                                                            <td colspan="3">&nbsp;</td> 
                                                                                        </tr> 
                                                                                        <tr> 
                                                                                            <td>Ampliamento</td> 
                                                                                            <td><asp:RadioButton runat="server" ID="RadioButton11" GroupName="Piano" /></td
                                                                                            <td>&nbsp;</td> 
                                                                                        </tr> 
                                                                                        <tr> 
                                                                                            <td colspan="3">&nbsp;</td> 
                                                                                        </tr> 
                                                                                        <tr> 
                                                                                            <td>Ripetizione</td> 
                                                                                            <td><asp:RadioButton runat="server" ID="RadioButton12" GroupName="Piano" /></td
                                                                                            <td>&nbsp;</td> 
                                                                                        </tr>  
                                                                                        <tr> 
                                                                                            <td colspan="3">&nbsp;</td> 
                                                                                        </tr> 
                                                                                        <tr> 
                                                                                            <td>MARCATURA CHIAVI</td> 
                                                                                            <td>Piano+Progressivo</td> 
                                                                                            <td> 
                                                                                                <asp:RadioButton runat="server" ID="RadioButton13" GroupName="CHIAVIKD" Text="Si" /> 
                                                                                                <asp:RadioButton runat="server" ID="RadioButton14" GroupName="CHIAVIKD" Text="No" /> 
                                                                                            </td> 
                                                                                        </tr> 
                                                                                        <tr> 
                                                                                            <td>MARCATURA CHIAVI</td> 
                                                                                            <td>Piano+Progressivo</td> 
                                                                                            <td> 
                                                                                                <asp:RadioButton runat="server" ID="RadioButton15" GroupName="CHIAVIp" Text="Si" /> 
                                                                                                <asp:RadioButton runat="server" ID="RadioButton16" GroupName="CHIAVIp" Text="No" /> 
                                                                                            </td> 
                                                                                        </tr> 
                                                                                        <tr> 
                                                                                            <td colspan="3">&nbsp;</td> 
                                                                                        </tr> 
                                                                                        <tr> 
                                                                                            <td>NOTE:</td> 
                                                                                            <td colspan="2"
                                                                                                <telerik:RadTextBox runat="server" ID="txtNOTE" TextMode="MultiLine" Height="45" Width="95%" /> 
                                                                                            </td> 
                                                                                        </tr>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                    </table> 
                                                                                </div> 
                                                                            </NodeTemplate> 
                                                                        </telerik:RadTreeNode> 
                                                                    </Nodes> 
                                                                </telerik:RadTreeNode> 
                                                                <telerik:RadTreeNode Text="ALTRE(altre cifrature)"
                                                                </telerik:RadTreeNode>                                                             
                                                            </Nodes> 
                                                        </telerik:RadTreeNode> 
                                                        <telerik:RadTreeNode Text="CORPO" Value="2"
                                                            <Nodes> 
                                                                <telerik:RadTreeNode Text=" "
                                                                    <NodeTemplate> 
                                                                        <div> 
                                                                            <asp:Label ID="lbl" runat="server" Text="FINITURA CORPO" /> 
                                                                            <telerik:RadTextBox runat="server" ID="txt"></telerik:RadTextBox> 
                                                                        </div> 
                                                                    </NodeTemplate> 
                                                                </telerik:RadTreeNode> 
                                                                <telerik:RadTreeNode Text="LOGO CORPO ESTERNO"
                                                                    <Nodes> 
                                                                        <telerik:RadTreeNode Text="POSIZIONE"
                                                                            <Nodes> 
                                                                                <telerik:RadTreeNode Text="FRONTE" /> 
                                                                                <telerik:RadTreeNode Text="RETRO" /> 
                                                                            </Nodes> 
                                                                        </telerik:RadTreeNode> 
                                                                        <telerik:RadTreeNode Text="NEUTRO" /> 
                                                                    </Nodes> 
                                                                </telerik:RadTreeNode> 
                                                            </Nodes> 
                                                        </telerik:RadTreeNode> 
                                                        <telerik:RadTreeNode Text="GANCIO" Value="3"
                                                            <Nodes> 
                                                                <telerik:RadTreeNode Text="" Checkable="false"
                                                                    <NodeTemplate> 
                                                                        <div class="entry"
                                                                            <table class="plain"
                                                                                <tbody> 
                                                                                    <tr> 
                                                                                        <td>LUCE(h in mm)</td> 
                                                                                        <td><telerik:RadTextBox runat="server" ID="txt1" /></td
                                                                                    </tr> 
                                                                                    <tr> 
                                                                                        <td><b>MATERIALE</b></td
                                                                                        <td><telerik:RadTextBox runat="server" ID="RadTextBox4" /></td
                                                                                    </tr> 
                                                                                    <tr> 
                                                                                        <td>ALTRO/FINITURA</td> 
                                                                                        <td><telerik:RadTextBox runat="server" ID="RadTextBox5" /></td
                                                                                    </tr> 
                                                                                    <tr> 
                                                                                        <td><b>COD</b></td
                                                                                        <td><telerik:RadTextBox runat="server" ID="RadTextBox6" MaxLength="19" /></td
                                                                                    </tr>                                                                                                                                                                                                                                                 
                                                                                </tbody> 
                                                                            </table> 
                                                                        </div> 
                                                                    </NodeTemplate> 
                                                                </telerik:RadTreeNode> 
                                                            </Nodes> 
                                                        </telerik:RadTreeNode> 
                                                        <telerik:RadTreeNode Text="CONFEZIONE" Value="4"
                                                            <Nodes> 
                                                                <telerik:RadTreeNode Text="STANDARD" /> 
                                                                <telerik:RadTreeNode Text="ALTRO"
                                                                    <Nodes> 
                                                                        <telerik:RadTreeNode Text="SINGOLA" Checkable="False"
                                                                            <Nodes> 
                                                                                <telerik:RadTreeNode Text="No" /> 
                                                                                <telerik:RadTreeNode Text="SI"
                                                                                    <Nodes> 
                                                                                        <telerik:RadTreeNode Text="" Checkable="false"
                                                                                            <NodeTemplate> 
                                                                                               <div class="entry"
                                                                                                    <table class="plain"
                                                                                                        <tbody> 
                                                                                                            <tr> 
                                                                                                                <td><asp:RadioButton runat="server" ID="opt" GroupName="optionB" /></td
                                                                                                                <td>STANDARD</td> 
                                                                                                            </tr> 
                                                                                                            <tr> 
                                                                                                                <td><asp:RadioButton runat="server" ID="RadioButton1" GroupName="optionB" /></td
                                                                                                                <td>NEUTRA</td> 
                                                                                                            </tr> 
                                                                                                            <tr> 
                                                                                                                <td><asp:RadioButton runat="server" ID="RadioButton2" GroupName="optionB" /></td
                                                                                                                <td>PERZONALIZZATA</td> 
                                                                                                            </tr> 
                                                                                                            <tr> 
                                                                                                                <td><asp:RadioButton runat="server" ID="RadioButton3" GroupName="optionB" /></td
                                                                                                                <td>SKIN PACK</td> 
                                                                                                            </tr> 
                                                                                                            <tr> 
                                                                                                                <td><asp:RadioButton runat="server" ID="RadioButton4" GroupName="optionB" /></td
                                                                                                                <td>BLISTER</td> 
                                                                                                            </tr> 
                                                                                                            <tr> 
                                                                                                                <td><asp:RadioButton runat="server" ID="RadioButton5" GroupName="optionB" /></td
                                                                                                                <td>SACCHETTO</td> 
                                                                                                            </tr> 
                                                                                                            <tr> 
                                                                                                                <td><asp:RadioButton runat="server" ID="RadioButton6" GroupName="optionB" /></td
                                                                                                                <td>SCATOLA</td> 
                                                                                                            </tr> 
                                                                                                            <tr> 
                                                                                                                <td><b>Codice Confezione</b></td
                                                                                                                <td><telerik:RadTextBox runat="server" ID="RadTextBox6" MaxLength="19" /></td
                                                                                                            </tr> 
                                                                                                            <tr> 
                                                                                                                <td>Etichette</td> 
                                                                                                                <td><telerik:RadTextBox runat="server" ID="RadTextBox5" /></td
                                                                                                            </tr>                                                                                                  
                                                                                                            <tr> 
                                                                                                                <td><b>COD</b></td
                                                                                                                <td><telerik:RadTextBox runat="server" ID="RadTextBox7" MaxLength="19" /></td
                                                                                                            </tr>   
                                                                                                            <tr> 
                                                                                                                <td>NOTE</td> 
                                                                                                                <td><telerik:RadTextBox runat="server" ID="RadTextBox9" /></td
                                                                                                            </tr>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
                                                                                                        </tbody> 
                                                                                                    </table> 
                                                                                                </div>                                                                                     
                                                                                            </NodeTemplate> 
                                                                                        </telerik:RadTreeNode> 
                                                                                    </Nodes> 
                                                                                </telerik:RadTreeNode> 
                                                                            </Nodes> 
                                                                        </telerik:RadTreeNode> 
                                                                        <telerik:RadTreeNode Text="MULTIPLA" Checkable="False"
                                                                            <Nodes> 
                                                                                <telerik:RadTreeNode Text="No" /> 
                                                                                <telerik:RadTreeNode Text="SI"
                                                                                    <Nodes> 
                                                                                        <telerik:RadTreeNode Text="" Checkable="false"
                                                                                            <NodeTemplate> 
                                                                                               <div class="entry"
                                                                                                    <table class="plain"
                                                                                                        <tbody> 
                                                                                                            <tr> 
                                                                                                                <td><asp:RadioButton runat="server" ID="opt" GroupName="optionB" /></td
                                                                                                                <td>STANDARD</td> 
                                                                                                            </tr> 
                                                                                                            <tr> 
                                                                                                                <td><asp:RadioButton runat="server" ID="RadioButton1" GroupName="optionB" /></td
                                                                                                                <td>NEUTRA</td> 
                                                                                                            </tr> 
                                                                                                            <tr> 
                                                                                                                <td><asp:RadioButton runat="server" ID="RadioButton2" GroupName="optionB" /></td
                                                                                                                <td>PERZONALIZZATA</td> 
                                                                                                            </tr> 
                                                                                                            <tr> 
                                                                                                                <td><asp:RadioButton runat="server" ID="RadioButton3" GroupName="optionB" /></td
                                                                                                                <td>SKIN PACK</td> 
                                                                                                            </tr> 
                                                                                                            <tr> 
                                                                                                                <td><asp:RadioButton runat="server" ID="RadioButton4" GroupName="optionB" /></td
                                                                                                                <td>BLISTER</td> 
                                                                                                            </tr> 
                                                                                                            <tr> 
                                                                                                                <td><asp:RadioButton runat="server" ID="RadioButton5" GroupName="optionB" /></td
                                                                                                                <td>SACCHETTO</td> 
                                                                                                            </tr> 
                                                                                                            <tr> 
                                                                                                                <td><asp:RadioButton runat="server" ID="RadioButton6" GroupName="optionB" /></td
                                                                                                                <td>SCATOLA</td> 
                                                                                                            </tr> 
                                                                                                            <tr> 
                                                                                                                <td><b>Codice Confezione</b></td
                                                                                                                <td><telerik:RadTextBox runat="server" ID="RadTextBox6" MaxLength="19" /></td
                                                                                                            </tr> 
                                                                                                            <tr> 
                                                                                                                <td>Etichette</td> 
                                                                                                                <td><telerik:RadTextBox runat="server" ID="RadTextBox5" /></td
                                                                                                            </tr>                                                                                                  
                                                                                                            <tr> 
                                                                                                                <td><b>COD</b></td
                                                                                                                <td><telerik:RadTextBox runat="server" ID="RadTextBox7" MaxLength="19" /></td
                                                                                                            </tr>   
                                                                                                            <tr> 
                                                                                                                <td>NOTE</td> 
                                                                                                                <td><telerik:RadTextBox runat="server" ID="RadTextBox8" /></td
                                                                                                            </tr>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
                                                                                                        </tbody> 
                                                                                                    </table> 
                                                                                                </div>                                                                                     
                                                                                            </NodeTemplate> 
                                                                                        </telerik:RadTreeNode>                                                                                     
                                                                                    </Nodes> 
                                                                                </telerik:RadTreeNode>                                                                             
                                                                            </Nodes> 
                                                                        </telerik:RadTreeNode> 
                                                                        <telerik:RadTreeNode Text="INDUSTRIALE" Checkable="False"
                                                                            <Nodes> 
                                                                                <telerik:RadTreeNode Text="No" /> 
                                                                                <telerik:RadTreeNode Text="SI"
                                                                                    <Nodes> 
                                                                                        <telerik:RadTreeNode Text="" Checkable="false"
                                                                                            <NodeTemplate> 
                                                                                               <div class="entry"
                                                                                                    <table class="plain"
                                                                                                        <tbody> 
                                                                                                            <tr> 
                                                                                                                <td><asp:RadioButton runat="server" ID="RadioButton2" GroupName="optionB" /></td
                                                                                                                <td>PERZONALIZZATA</td> 
                                                                                                            </tr> 
                                                                                                            <tr> 
                                                                                                                <td><asp:RadioButton runat="server" ID="RadioButton5" GroupName="optionB" /></td
                                                                                                                <td>SACCHETTO</td> 
                                                                                                            </tr> 
                                                                                                            <tr> 
                                                                                                                <td><asp:RadioButton runat="server" ID="RadioButton6" GroupName="optionB" /></td
                                                                                                                <td>SCATOLA</td> 
                                                                                                            </tr> 
                                                                                                            <tr> 
                                                                                                                <td><b>Codice Confezione</b></td
                                                                                                                <td><telerik:RadTextBox runat="server" ID="RadTextBox6" MaxLength="19" /></td
                                                                                                            </tr> 
                                                                                                            <tr> 
                                                                                                                <td>Etichette</td> 
                                                                                                                <td><telerik:RadTextBox runat="server" ID="RadTextBox5" /></td
                                                                                                            </tr>                                                                                                  
                                                                                                            <tr> 
                                                                                                                <td><b>COD</b></td
                                                                                                                <td><telerik:RadTextBox runat="server" ID="RadTextBox7" MaxLength="19" /></td
                                                                                                            </tr> 
                                                                                                            <tr> 
                                                                                                                <td>NOTE</td> 
                                                                                                                <td><telerik:RadTextBox runat="server" ID="RadTextBox10" /></td
                                                                                                            </tr>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
                                                                                                        </tbody> 
                                                                                                    </table> 
                                                                                                </div>                                                                                     
                                                                                            </NodeTemplate> 
                                                                                        </telerik:RadTreeNode>                                                                                     
                                                                                    </Nodes> 
                                                                                </telerik:RadTreeNode>                                                                             
                                                                            </Nodes> 
                                                                        </telerik:RadTreeNode> 
                                                                        <telerik:RadTreeNode Text="" Checkable="false" Expanded="true"
                                                                            <NodeTemplate> 
                                                                               <div class="entry"
                                                                                    <table class="plain"
                                                                                        <tbody> 
                                                                                            <tr><th colspan="2">IMBALLAGGIO PER SPEDIZIONE</th></tr
                                                                                            <tr> 
                                                                                                <td>Etichette</td> 
                                                                                                <td><telerik:RadTextBox runat="server" ID="RadTextBox5" /></td
                                                                                            </tr>                                                                                                  
                                                                                            <tr> 
                                                                                                <td><b>COD</b></td
                                                                                                <td><telerik:RadTextBox runat="server" ID="RadTextBox7" MaxLength="19" /></td
                                                                                            </tr>   
                                                                                            <tr> 
                                                                                                <td>NOTE</td> 
                                                                                                <td><telerik:RadTextBox runat="server" ID="RadTextBox8" /></td
                                                                                            </tr>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
                                                                                        </tbody> 
                                                                                    </table> 
                                                                                </div>                                                                              
                                                                            </NodeTemplate> 
                                                                        </telerik:RadTreeNode>                                                                                                                                        
                                                                    </Nodes> 
                                                                </telerik:RadTreeNode> 
                                                            </Nodes> 
                                                        </telerik:RadTreeNode> 
                                                        <telerik:RadTreeNode Text="ETICHETTE SU PRODOTTO" Value="5"
                                                            <Nodes> 
                                                                <telerik:RadTreeNode Checkable="false"
                                                                    <NodeTemplate> 
                                                                        <div class="entry"
                                                                            <table class="plain"
                                                                                <tbody> 
                                                                                    <tr> 
                                                                                        <td>Allegato</td> 
                                                                                        <td><telerik:RadTextBox runat="server" ID="RadTextBox5" /></td
                                                                                    </tr>                                                                                                  
                                                                                    <tr> 
                                                                                        <td><b>COD</b></td
                                                                                        <td><telerik:RadTextBox runat="server" ID="RadTextBox7" MaxLength="19" /></td
                                                                                    </tr>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
                                                                                </tbody> 
                                                                            </table>                                                                         
                                                                        </div> 
                                                                    </NodeTemplate> 
                                                                </telerik:RadTreeNode> 
                                                            </Nodes> 
                                                        </telerik:RadTreeNode> 
                                                        <telerik:RadTreeNode Text="Codice a Barre:" Value="6"
                                                            <Nodes> 
                                                                <telerik:RadTreeNode Checkable="false"
                                                                    <NodeTemplate> 
                                                                        <div class="entry"
                                                                            <table class="plain"
                                                                                <tbody> 
                                                                                    <tr> 
                                                                                        <td><asp:RadioButton runat="server" ID="RadioButton5" GroupName="optionB" /></td
                                                                                        <td>SENZA CODICE A BARRE</td> 
                                                                                    </tr> 
                                                                                    <tr> 
                                                                                        <td><asp:RadioButton runat="server" ID="RadioButton7" GroupName="optionB" /></td
                                                                                        <td>CON CODICE A BARRE DELL'ARTICOLO PADRE</td> 
                                                                                    </tr>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
                                                                                </tbody> 
                                                                            </table>                                                                         
                                                                        </div> 
                                                                    </NodeTemplate> 
                                                                </telerik:RadTreeNode> 
                                                            </Nodes> 
                                                        </telerik:RadTreeNode> 
                                                        <telerik:RadTreeNode Checkable="false" Expanded="true"
                                                            <NodeTemplate> 
                                                                <div class="entry"
                                                                    <table class="plain"
                                                                        <tbody> 
                                                                            <tr>                                                                             
                                                                                <td>NOTE</td> 
                                                                                <td> 
                                                                                    <asp:CheckBox runat="server" ID="chkc" /> 
                                                                                    COMMESSA APPARTENENTE AD UN SET 
                                                                                </td> 
                                                                            </tr> 
                                                                            <tr> 
                                                                                <td><telerik:RadTextBox runat="server" ID="txtMul" TextMode="MultiLine" /></td>                                                                             
                                                                            </tr>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
                                                                        </tbody> 
                                                                    </table>                                                                         
                                                                </div>                                                             
                                                            </NodeTemplate> 
                                                        </telerik:RadTreeNode>                                                
                                                    </Nodes> 
                                                </telerik:RadTreeNode> 
                                            </Nodes> 
                                        </telerik:RadTreeView>      

    what i want is when i unchecked parentnode i want all childnode to be unchecked too

    how can i do it?

    regards
    webster
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 01 Jul 2010 Link to this post

    Hello,

    You can set the CheckChildNodes property of RadTreeView to true, which in turn checks/unchecks all child nodes of the current node.

    If you want to perform this only when unchecking, then you can make use of client side api of RadTreeView. Attach the OnClientNodeChecking event and iterate through the child nodes and explicitly uncheck the node (if uncheck is performed for the particular node).


    -Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Webster Velasco
    Webster Velasco avatar
    114 posts
    Member since:
    Jun 2012

    Posted 01 Jul 2010 Link to this post

    but i dnt want to checked them all when parentnode is checked..

    and 1 more thing

    w/ this
                                        <telerik:RadTreeView  ID="rts1" runat="server" CheckBoxes="True" TriStateCheckBoxes="true" Skin="Outlook"
                                            <Nodes> 
                                                <telerik:RadTreeNode Text="01 PRODOTTO FINITO " Value="P"
                                                    <Nodes> 
                                                        <telerik:RadTreeNode Text="CIFRATURA" Value="1"
                                                            <Nodes> 
                                                                <telerik:RadTreeNode Text="PER SISTEMI(cifrature per sistemi)" Value="1S"
                                                                    <Nodes> 
                                                                        <telerik:RadTreeNode Checkable="false"
                                                                            <NodeTemplate> 
                                                                                <div class="entry"
                                                                                    <table class="pain"
                                                                                        <tr> 
                                                                                            <td>Quante chiavi caduno</td> 
                                                                                            <td> 
                                                                                                <asp:RadioButton runat="server" ID="opt" GroupName="optCHIAVI" Text="std da corredo" /> 
                                                                                                <asp:RadioButton runat="server" ID="RadioButton8" GroupName="optCHIAVI" Text="Senza chiavi" /> 
                                                                                            </td> 
                                                                                            <td> 
                                                                                                <asp:RadioButton runat="server" ID="RadioButton9" GroupName="optCHIAVI" Text="Altro" /> 
                                                                                                <telerik:RadTextBox runat="server" ID="txtaltro" MaxLength="2" /> 
                                                                                            </td> 
                                                                                        </tr> 
                                                                                        <tr> 
                                                                                            <td>CHIAVE (articolo comm.)</td> 
                                                                                            <td><telerik:RadTextBox ID="txtChi" runat="server" /></td
                                                                                            <td></td
                                                                                        </tr> 
                                                                                        <tr> 
                                                                                            <td colspan="3">&nbsp;</td> 
                                                                                        </tr> 
                                                                                        <tr> 
                                                                                            <td>Nuovo piano (ns. scelta)</td> 
                                                                                            <td><asp:RadioButton runat="server" ID="optPiano" GroupName="Piano" /></td
                                                                                            <td>&nbsp;</td> 
                                                                                        </tr> 
                                                                                        <tr> 
                                                                                            <td colspan="3">&nbsp;</td> 
                                                                                        </tr> 
                                                                                        <tr> 
                                                                                            <td>A campione allegato</td> 
                                                                                            <td><asp:RadioButton runat="server" ID="RadioButton10" GroupName="Piano" /></td
                                                                                            <td>&nbsp;</td> 
                                                                                        </tr> 
                                                                                        <tr> 
                                                                                            <td colspan="3">&nbsp;</td> 
                                                                                        </tr> 
                                                                                        <tr> 
                                                                                            <td>Ampliamento</td> 
                                                                                            <td><asp:RadioButton runat="server" ID="RadioButton11" GroupName="Piano" /></td
                                                                                            <td>&nbsp;</td> 
                                                                                        </tr> 
                                                                                        <tr> 
                                                                                            <td colspan="3">&nbsp;</td> 
                                                                                        </tr> 
                                                                                        <tr> 
                                                                                            <td>Ripetizione</td> 
                                                                                            <td><asp:RadioButton runat="server" ID="RadioButton12" GroupName="Piano" /></td
                                                                                            <td>&nbsp;</td> 
                                                                                        </tr>  
                                                                                        <tr> 
                                                                                            <td colspan="3">&nbsp;</td> 
                                                                                        </tr> 
                                                                                        <tr> 
                                                                                            <td>MARCATURA CHIAVI</td> 
                                                                                            <td>Piano+Progressivo</td> 
                                                                                            <td> 
                                                                                                <asp:RadioButton runat="server" ID="RadioButton13" GroupName="CHIAVIKD" Text="Si" /> 
                                                                                                <asp:RadioButton runat="server" ID="RadioButton14" GroupName="CHIAVIKD" Text="No" /> 
                                                                                            </td> 
                                                                                        </tr> 
                                                                                        <tr> 
                                                                                            <td>MARCATURA CHIAVI</td> 
                                                                                            <td>Piano+Progressivo</td> 
                                                                                            <td> 
                                                                                                <asp:RadioButton runat="server" ID="RadioButton15" GroupName="CHIAVIp" Text="Si" /> 
                                                                                                <asp:RadioButton runat="server" ID="RadioButton16" GroupName="CHIAVIp" Text="No" /> 
                                                                                            </td> 
                                                                                        </tr> 
                                                                                        <tr> 
                                                                                            <td colspan="3">&nbsp;</td> 
                                                                                        </tr> 
                                                                                        <tr> 
                                                                                            <td>NOTE:</td> 
                                                                                            <td colspan="2"
                                                                                                <telerik:RadTextBox runat="server" ID="txtNOTE" TextMode="MultiLine" Height="45" Width="95%" /> 
                                                                                            </td> 
                                                                                        </tr>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                    </table> 
                                                                                </div> 
                                                                            </NodeTemplate> 
                                                                        </telerik:RadTreeNode> 
                                                                    </Nodes> 
                                                                </telerik:RadTreeNode> 
                                                                <telerik:RadTreeNode Text="ALTRE(altre cifrature)" Value="1A"
                                                                </telerik:RadTreeNode>                                                             
                                                            </Nodes> 
                                                        </telerik:RadTreeNode> 
      </Nodes> 
    </telerik:RadTreeView>      

    when i checked node w/ value="1A" and if node w/ value="1S" is checked too, i want an event which unchecked the node w/ value="1S"


  5. Answer
    Nikolay Tsenkov
    Admin
    Nikolay Tsenkov avatar
    734 posts

    Posted 06 Jul 2010 Link to this post

    Hi Webster Velasco,

    As Shinu said, you can iterate through the child nodes and uncheck them all. Please visit our help documentation (you can start with this article: http://www.telerik.com/help/aspnet-ajax/tree_clientprogramming.html), and if you have difficulties with something contact with us again.

    About the second thing (when checking one node having certain value another one with different value to be unchecked), this also can be achieved with similar iteration, but the better way is to get the specific node - use findNodeByValue method over the TreeView object (here is a link to the reference for the TreeView object: http://www.telerik.com/help/aspnet-ajax/tree_clientradtreeviewobject.html) and then uncheck it with set_checked(false) method over the node.

    Hope this is helpful for you!


    Regards,
    Nikolay Tsenkov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top