treelist merge cells

1 Answer 158 Views
TreeList
m
Top achievements
Rank 1
Iron
Iron
m asked on 11 Aug 2021, 10:20 PM
Hello, i have been able to merge some cells on the ondataload call ... but when saving the treelist something triggers the cells to go back to normal... is there an event etc that I can call my merge cells function after saving?


post save

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 16 Aug 2021, 09:01 AM

Hello,

You can try invoking the logic for merging the cells in the save or saveChanges event handlers. 

The save event fires when a data item is saved while the saveChanges when the user clicks the Save command button. I suggest trying both to see which one works best.

Regards,
Nikolay
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

m
Top achievements
Rank 1
Iron
Iron
commented on 16 Aug 2021, 06:00 PM

thx tried both but its not working... something is resetting the colspan of the td back to 1...
Nikolay
Telerik team
commented on 19 Aug 2021, 05:56 AM

Hello.

The rows of the Kendo UI TreeList widget are dynamically created. Therefore, the merging of cells is generally not supported. A possible workaround is to override the HTML of the TreeList. And this has to be done every time the widget is bound. 

You can use the dataBound event which fires the widget is bound to data from its data source.

Regards,

Nikolay

Tags
TreeList
Asked by
m
Top achievements
Rank 1
Iron
Iron
Answers by
Nikolay
Telerik team
Share this question
or