how initialize a kendo autocomplete widget at the document.ready() function -


my kendo autocomplete widget, gets data webservice c#, , works fine. see widget gets data webservice when type in keyboard.

i need fire bound event data data, following function, not when typing on keyboard:

$(document).ready(function(){ //fire event here!!! }); 

you have like:

// datasource definition var ds = new kendo.data.datasource({     transport : {         read: {             url : "service.json"         }     } }); // autocomplete definition $("#autocomplete").kendoautocomplete({     datasource: ds }); 

so, need invoke ds.read() loading it.

// load datasource using `transport.read` ds.read(); 

Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -