Approved
Last Updated: 11 Mar 2019 12:39 by ADMIN
Created by: Fernando
Comments: 1
Category: Templates
Type: Feature Request
0

Hi Telerik team.

There is a plan or intention to isolate the Template engine indo a separated file or something?

I like the Kendo UI Template engine a lot, I would use it isolated in a project without kendo, for example. It could even be a isolate npm module.I think it is better than mustache or handlebars imo, because you can deal with pure javascript inside, instead of predefined functions and stuff like that.

Example: https://jsfiddle.net/yfz6he3u/

Cheers.

Pending Review
Last Updated: 25 Mar 2018 20:49 by ADMIN
An ASP.Net Core (net framework) project template with angular 4 and all the services set up to use the report viewer in the webapp, along with a sample report and the reportviewer in the angular app. You could also use your own angular controls as well??
This would be an enhanced version of the one available for vs2017 with webapis setup for data and serving the report.
Pending Review
Last Updated: 19 Mar 2017 00:52 by ADMIN
For all the “items” controls that have a “Template” configuration property to define the items (for example: combobox, dropdownlist) the documentation tells me the template property can be a string or function.
If a function is used this function should return a string presentation of the Html you want to be rendered. 
I would like to have this template functionality enhanced so the function can also return an HtmlElement or HtmlFragment instead of a string. So the template function is fully responsible to construct the Html that will be inserted into the dom. Your template processing only has to check if the return type of the function is an instance of a HtmlElement or HtmlFragment an take the result of the function as it is. No further processing needed. 
Reasoning behind this feature request is:
In my development I try to move away from string based definition of Html as far as possible. Because this string based definition of Html and Htmltemplates is the weak part of a modern SPA architecture. No designtime checking of the content of these Html with its binding expressions is possible.
Therefore I developed a component to define my  HtmlElements or HtmlFragments in a strong typed way. This component has full support for designtime checking of properties and binding expressions. The result from my component however is an HtmlElement not a “String”. Now i have to work around this by serializing the HtmlEment to  a string. This not only is a waste of performance but also makes it impossible to attach event handler to the hmlElement or it children.

Pending Review
Last Updated: 30 Jul 2018 09:55 by ADMIN
Kendo templates are broken if they contain any character, which is encoded to '{' since '#' is en expression delimiter for kendo templates. Documentation suggests to escape '#' with '\\#', but this makes the very basic syntax (example using ASP.NET MVC) look ridiculous: instead of writing @Localization.Get("aaa") I need to use @Html.Raw(Html.Kendo().TemplateEncode(Html.Encode(Localization.Get("aaa")))) for every localization string I have in kendo templates (since any string may contain unicode characters in some language).
If you had '##' or '$' as expression delimiter, simple @Localization.Get("aaa") would work in 99.9% of cases.
I suggest you:
1) Fix current template syntax parser to not treat HTML-encoded symbols as template delimiters.
2) For more reliability, create second template type 'text/x-kendo-template2' with delimiter being '##', '$' or whatever is found the least conflicting after proper analysis. Make it recommended for future and make 'text/x-kendo-template' obsolete.
3) Add TemplateEncode() method to Kendo MVC extensions.
Pending Review
Last Updated: 22 May 2019 20:29 by David
Created by: Imported User
Comments: 2
Category: Templates
Type: Feature Request
9
Add template for summary rows. There is a need to display some text on summary row.
Pending Review
Last Updated: 02 Oct 2015 11:25 by Ruud
Create a new configuration option so you can not show anything when the value for a field is "null". So, for example; a mobile listview has a new property "shownullvalues", when set to false, it will not display any text when the actual field value is not present (or null).
Pending Review
Last Updated: 13 Jun 2017 09:35 by ADMIN
Created by: Imported User
Comments: 0
Category: Templates
Type: Feature Request
15
When a grid has many columns, the column menu becomes difficult to use. This is because of two things: the columns are always in the order that they appear in the grid, and there is no support for templates/column grouping. The result is a long unordered list that is difficult for users to navigate quickly.

Suggested improvements:
1) Add option to sort columns in alphabetic order in the column menu.

2) Add option to group columns either by data type or user-defined groups.
Pending Review
Last Updated: 23 Jul 2015 22:20 by JohnVS
Created by: Imported User
Comments: 1
Category: Templates
Type: Feature Request
4
It would be nice if there was a tool that could validate if the template you are writing is valid or not, since the error message doesn't tell you where the error is.
Pending Review
Last Updated: 15 Jan 2015 11:12 by Ben
In the Grid component, the ClientDetailTemplate can be created within script tags and marked as text/kendo-tmpl, and then referenced via the ClientDetailTemplateId("...") option.

It would be great to be able to do the same with ClientRowTemplate also to save having to manually generate it in javascript using kendo.template(...).html().
Declined
Last Updated: 07 Jan 2015 15:30 by ADMIN
Created by: victor
Comments: 1
Category: Templates
Type: Feature Request
1
HI,

It will be just nice to implement nested templates, like is describe here in the forum.

http://www.telerik.com/forums/nested-template-in-external-script
Completed
Last Updated: 25 Mar 2015 11:29 by ADMIN
Created by: Craig
Comments: 1
Category: Templates
Type: Feature Request
1
Allow HTML in Chart LabelTemplate.
Currently the template only supports a newline character.
Pending Review
Last Updated: 13 Jul 2017 09:09 by ADMIN
Created by: Imported User
Comments: 3
Category: Templates
Type: Feature Request
4
Add support for templating panelbar items (separate templates for first (header) and second (items) level). 
Pending Review
Last Updated: 13 Jun 2017 13:41 by ADMIN
SVG paths are not rendering with kendo templates binding with MVVM view model. For reference: http://jsfiddle.net/qqzmZ/9/.

Known Issue:
In firefox, when we inspect svg element and edit that svg tag element 
(right click and select "Edit Svg") then the svg is rendering.

But in IE 10 and Safari, no path tags are found in svg tag.

Other browser except Chrome, require the elements to be created with the correct namespace. Since the template output is a string this typically involves a DOMParser.
The code works out to something like this:

var parser = new DOMParser();
var doc = parser.parseFromString(svgString, "text/xml");
var node = document.adoptNode(doc.documentElement);
// node can now be appended to the current document

Can this code be supported with kendo templates to render SVG tags.
Declined
Last Updated: 22 Nov 2013 18:29 by ADMIN
Created by: jianzhuang
Comments: 1
Category: Templates
Type: Feature Request
1
Because of some scenarios the "#" chars are restriced. So I want to use other char instead of.
May be we can set the openTag and closeTag instead of "#". For example, <% and %>, [% and %] etc. May be this is flexible.
Pending Review
Last Updated: 23 Oct 2018 16:12 by ADMIN
Created by: Wannes
Comments: 0
Category: Templates
Type: Feature Request
33
Concerning Cross Site Scripting (XSS), from the client-side perspective, data coming from any server cannot be trusted, even when it's one of your own servers (which may have been hacked).
While it is true that you need XSS protection on your server, it's certainly not a luxury to have additional protection on the client-side.

The kendo.template() function for example can be extended to filter out any unwanted <script> tags. The following code would do it:

<code>
var kendoTemplate = kendo.template;
kendo.template = function () {
    var templateFunction = kendoTemplate.apply(kendoTemplate, arguments);
    return function () {
        var htmlWithoutScripts = $.parseHTML(templateFunction.apply(templateFunction, arguments));
        return $("<div></div>").html(htmlWithoutScripts).html();
    }
};
</code>

The jQuery.parseHTML() function will strip any <script> tags...
I'm not sure what the impact is for performance when there are too many repeated template calls on the same screen, but for normal use the overhead should be minimal.
Maybe this code can be run only for the HTML expressions in the template (#= expression#).

Could this kind of XSS protection be added to Kendo UI by default? Or at least be available as an option?

Best Regards,
Wannes Simons.
Pending Review
Last Updated: 15 Oct 2013 09:35 by raghav
I'd love for the ability to choose between the light/dark version of the icons in the sprite.png file. As of now, most of the themes contain a light and a dark version. However, there is no easy way to choose between the too when I'm writing my code. The only way to change is to go into the CSS file and override it manually. 

This has been an issue already, because at least once now the classes have changed, causing me to go back and make further edits to my CSS file.

it should be something as simple as adding a light/dark class to element so that it knows to choose the appropriate background position for the sprite. 

This seems like something very easy to do that doesn't require much programming. I hope to see this soon!
Under Review
Last Updated: 26 Mar 2014 13:38 by ADMIN
Created by: Josh
Comments: 0
Category: Templates
Type: Feature Request
3
It would be nice to be able to set the 'useWithBlock' setting to false globally so that I don't need to include that setting all the time when working with templates. I realize widgets use this and there is an undocumented way to do it - so, it would be great to have an official way to set this that is safe.
Pending Review
Last Updated: 26 Jan 2015 11:02 by ADMIN
If a Kendo-Grid is set with .Scrollable(true) the height of the grid get a style with "height:200px;". This seems to be unchangeable without edit the Kendo Source code. But in my opinion this is somehow needed. Of cource it could be changed later with some javascript code but why so intricate? It would be much more efficient to "change" the css i want on the fly.
E.g.
.ScrollableStyle(new { @class = "max-height:300px;" })
Pending Review
Last Updated: 02 Sep 2016 09:08 by ADMIN
Created by: Daniel
Comments: 0
Category: Templates
Type: Feature Request
7
If you edit a record in a grid it automatically validates against the validation rules defined in the schema.Model.  However if you use a custom editor template you have to manually add the html attributes such as required to each input field.  It would be nice to be able to use the same validation rules defined in the schema.Model for custom editor templates as well.

Thanks,
Dan
Declined
Last Updated: 10 May 2016 15:32 by ADMIN
It would be nice to use your high performing template library with KnockoutJS
1 2