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

CreateChild()

1 Answer 14 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Joel
Top achievements
Rank 1
Veteran
Iron
Iron
Joel asked on 05 Mar 2020, 03:35 PM

I have your Kendo.Mvc.Examples solution and I cannot figure out how your Add Child button works.  I have mimicked your control definition as well as have similar implementations of the controller and models.  However, when I select that button it locks up the browser and eventually asks if I want to abandon the request.  Can you give me an overview of what that button click depends on?

 

Thanks for your help,

Joel

1 Answer, 1 is accepted

Sort by
0
Alex Hajigeorgieva
Telerik team
answered on 10 Mar 2020, 01:14 PM

Hello, Joel,

All the command buttons in the Kendo UI TreeList have a method that they call on click. For the AddChild and Add New it is the addRow() method:

https://docs.telerik.com/kendo-ui/api/javascript/ui/treelist/methods/addrow

What we also do when a new child is created - we fix the pageSize. The source code is available in kendo.treelist.js.

Kind Regards,
Alex Hajigeorgieva
Progress Telerik

Get quickly onboarded and successful with Telerik UI for ASP.NET Core with the dedicated Virtual Classroom technical training, available to all active customers.
Tags
TreeList
Asked by
Joel
Top achievements
Rank 1
Veteran
Iron
Iron
Answers by
Alex Hajigeorgieva
Telerik team
Share this question
or