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

Hiding child

2 Answers 144 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Nicholas
Top achievements
Rank 1
Nicholas asked on 04 Nov 2015, 05:49 PM
Is there a way of using the createChild event for certain rows based on the value of a column.  I have a treelist that contains folders and subfolders which in turn contain rows designated as "files".  For these "file" rows we do not need to create a child within them.  We have a type column and if the value is set to 1 we should not enable the createChild event.  Thanks

2 Answers, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 05 Nov 2015, 04:30 PM

Hello Nicholas,

 

You could use dataBound event, iterate over rows, get the data item for each row and if there is match hide the button in that row.

 

That is one way to achieve this.

 

Regards,
Nikolay Rusev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Nicholas
Top achievements
Rank 1
answered on 10 Nov 2015, 02:28 PM
Thank you very much.  That worked perfectly.
Tags
TreeList
Asked by
Nicholas
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Nicholas
Top achievements
Rank 1
Share this question
or