row template and detail template Kendo UI for JQuery 2023.1.425

1 Answer 150 Views
Grid
Thomas
Top achievements
Rank 1
Thomas asked on 12 Jun 2023, 07:17 PM

Greetings,

I am having difficulty getting Kendo grid to function with a row template and detail template set. I am having the same problem on your example(also broken). https://docs.telerik.com/kendo-ui/controls/grid/templates/row-templates#using-row-templates-with-detail-templates

The difficultly is that the anchor link that is suppose to expand the details does not function when both a rowTemplate and detailTemplate is declared.  I have stumbled on older versions using a rowTemplate and detailTemplate that function successfully in past versions but not in version Kendo UI for JQuery 2023.1.425, should I move back to a older version?

 

Thank you for your time in this matter!

1 Answer, 1 is accepted

Sort by
1
Accepted
Georgi Denchev
Telerik team
answered on 15 Jun 2023, 09:31 AM

Hi, Thomas,

Thank you for the provided details.

The example indeed appears to be broken, I'll make a note that we must update it.

Here's a working version:

https://dojo.telerik.com/@gdenchev/ayoRagAk 

Changes

The icon utility method should be used to create the svg icon:

                <td class="k-hierarchy-cell">
                #=kendo.ui.icon($('<a href="\#" aria-label="Expand"></a>'), { icon: "caret-alt-right" })#
                </td>

Please accept my apologies about the caused inconvenience.

Best Regards,
Georgi Denchev
Progress Telerik

As of R2 2023, the default icon type will be SVG instead of Font. See this blogpost for more information.
Thomas
Top achievements
Rank 1
commented on 15 Jun 2023, 01:30 PM

Thank you Georgi! That fixed it!
Tags
Grid
Asked by
Thomas
Top achievements
Rank 1
Answers by
Georgi Denchev
Telerik team
Share this question
or