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
Post a Comment