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

Setting filter="contains" from markup

2 Answers 39 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Andreas
Top achievements
Rank 1
Andreas asked on 31 Aug 2015, 01:44 PM

Hi,

 I try setting the filter property in markup but doesn't do too much. 

<input id="orders" style="width: 100%;" data-text-field="ShipName" filter="contains"/>

Setting it from jquery works fine. Am I using wrong attribute name?

 

Thanks

2 Answers, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 01 Sep 2015, 12:35 PM
Hello Andreas,

The reason for the inability to set the filter as you intended to do so is the fact that the data attributes are not initialized. Please refer to the following documentation article, providing more insights on the matter:

http://docs.telerik.com/kendo-ui/framework/data-attribute-initialization

Hope this would help.

Regards,
Nencho
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Andreas
Top achievements
Rank 1
answered on 02 Sep 2015, 07:43 AM
I was using the wrong attribute name, it should have been data-filter="contains"...
Tags
DropDownList
Asked by
Andreas
Top achievements
Rank 1
Answers by
Nencho
Telerik team
Andreas
Top achievements
Rank 1
Share this question
or