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

Little bug in ListView init

1 Answer 48 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Jaap
Top achievements
Rank 2
Jaap asked on 11 Apr 2012, 11:27 AM

When creating a listview without specifying a template (ok, not very real situation, but still....) you get an error

In this lines:

that.template = kendo.template(options.template || "");
that.altTemplate = kendo.template(options.altTemplate || options.template);

 

The second line should be:

that.altTemplate = kendo.template(options.altTemplate || options.template || "");

Regards, Jaap

1 Answer, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 11 Apr 2012, 01:49 PM
Hello Jaap,

Indeed this is not a real scenario, at least template should be provided otherwise there is no point of using the widget.

Regards,
Nikolay Rusev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
ListView
Asked by
Jaap
Top achievements
Rank 2
Answers by
Nikolay Rusev
Telerik team
Share this question
or