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

Checked css

1 Answer 51 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Storm
Top achievements
Rank 1
Storm asked on 24 Jul 2011, 12:39 AM
  1. How do i change css on a check item using RadTreeNodeBinding
  2. also onnodecheck (postback) way to loop thru all checked items and will it include items checked as a result of CheckChildNodes being set

The data binds just fine pickup the is_closed column from the database

<td align="left" colspan="3">
                    <telerik:RadTreeView runat="server" ID="RadTreeView1" DataSourceID="SqlDataSource1"
                        DataFieldID="pk" DataFieldParentID="parent_pk" CheckBoxes="True"
                        CheckChildNodes="True" TriStateCheckBoxes="False"   
                        DataValueField="is_closed" onnodecheck="RadTreeView1_NodeCheck"   >
                        <DataBindings>
                            <telerik:RadTreeNodeBinding TextField="Description" Expanded="True" 
                                AllowDrag="False" AllowDrop="False"  
                                CheckedField="is_closed" AllowEdit="False"  />
                        </DataBindings>
                    </telerik:RadTreeView>
                </td>

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 26 Jul 2011, 03:47 PM
Hello Storm,

It seems that you will also have to set the Checkable=true property of  RadTreeNodeBinding.
You may also have a look at this forum post:
http://www.telerik.com/community/forums/aspnet-ajax/treeview/unable-to-bind-checked-nodes-in-radtreeview.aspx

Hope this will help you.

All the best,
Plamen Zdravkov
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
TreeView
Asked by
Storm
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or