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

Checkboxes can not work within Datasource

2 Answers 47 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Troy
Top achievements
Rank 1
Troy asked on 27 Oct 2012, 03:44 AM
Hi all,

I use Razor to create a treeview. If I user Items.Add each element I can use checkboxes, else if i user Datasource I checkboxes not working. Please tell me any problem?

@(Html.Kendo().TreeView()
                                                .Name("treeview")
                                                .Events(events => events
                                                    .Select("onSelect")
                                                )
                                                .Checkboxes(checkboxes => checkboxes
                                                    .CheckChildren(true)
                                                )
                                                .DataTextField("InfoCategoryName")
                                                .DataSource(dataSource => dataSource
                                                    .Read(read => read
                                                        .Action("GetAllCategory", "Information")
                                                    )
                                                )
                                                
                                            )

Best regard,
Troy

2 Answers, 1 is accepted

Sort by
0
Jeff
Top achievements
Rank 1
answered on 02 Nov 2012, 06:57 PM
What version of the controls are you using? In the 2.710 version I had the same issue but when I upgraded to the 2.913 version everything worked, meaning the check boxes "magically" showed up.
0
Alex Gyoshev
Telerik team
answered on 05 Nov 2012, 08:41 AM
Indeed, the simplified Checkboxes configuration was magically implemented for the service pack (available for subscribers), so it is not available in the 710 build. The Q2 official release contained only the CheckboxTemplate configuration.
 
Greetings,
Alex Gyoshev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
TreeView
Asked by
Troy
Top achievements
Rank 1
Answers by
Jeff
Top achievements
Rank 1
Alex Gyoshev
Telerik team
Share this question
or