Federico
Federico

Reputation: 404

How to create custom template dropdownlist kendo with MVVM?

How to create dropdownlist kendo with MVVM? this is the example of custom dropdonwlist, but without MVVM http://demos.telerik.com/kendo-ui/dropdownlist/template How i create this with MVVM(so with data-bind)?

Upvotes: 1

Views: 671

Answers (1)

NigelK
NigelK

Reputation: 8480

All the configuration options you see with jquery syntax (as per most of the examples you see) are also available with declarative syntax (which you use for MVVM). So where the example in the link you provide has this:

footerTemplate: 'Total #: instance.dataSource.total() # items found'

You would use:

data-footer-template = 'Total #: instance.dataSource.total() # items found'

Generally speaking, the camel case you use for jquery syntax becomes 'data-' followed by all lower case with hyphens between each word.

Upvotes: 1

Related Questions