5 Answers, 1 is accepted
0
Hello J,
I am afraid that the AutoComplete does not support any grouping behavior. I am sorry for any inconvenience caused.
Kind Regards,
Petur Subev
Telerik
I am afraid that the AutoComplete does not support any grouping behavior. I am sorry for any inconvenience caused.
Kind Regards,
Petur Subev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
J
Top achievements
Rank 1
answered on 06 Feb 2014, 05:22 PM
Thanks for replying. I'm going to attempt to generate my grouping manually via templates. Do you know off hand how to reference a template as a variable so I can have a cleaner template property? I'm not sure how to go about doing this. e.g.
.Template("itemTemplate")
...
<script id="itemTemplate" type="text/x-kendo-template">
<div class="header">#: data.ModuleName#</div>
</script>
.Template("itemTemplate")
...
<script id="itemTemplate" type="text/x-kendo-template">
<div class="header">#: data.ModuleName#</div>
</script>
0
Hello J,
Basically everything covered here could be applied the same way to the template of the AutoComplete. Also you can invoke function like so:
Kind Regards,
Petur Subev
Telerik
Basically everything covered here could be applied the same way to the template of the AutoComplete. Also you can invoke function like so:
Template(
"#= myTemplateHandler(data)#"
)
<script>
function
myTemplateHandler(customer){
return
"some template"
+ customer.FristName;
}
<script>
Kind Regards,
Petur Subev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
J
Top achievements
Rank 1
answered on 07 Feb 2014, 05:52 PM
Thank You Petur! One more question if you don't mind, is there a way to change the background color of the dropdown? It appears gray. I can change the template background, but it seems there's still a boarder of the dropdown that's gray... Maybe there's a way to fully fill the dropdown control with a template?
0
Hello JP,
Basically you can change the DropDownList CSS with JavaScript like demonstrated in this JsBin:
http://jsbin.com/abisod/24/edit
Kind Regards,
Petur Subev
Telerik
Basically you can change the DropDownList CSS with JavaScript like demonstrated in this JsBin:
http://jsbin.com/abisod/24/edit
Kind Regards,
Petur Subev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!