I have a auto search box.It initially load elements after type some thing.Is there a way to load all elements without typing anything in the text box. My code is like this.
@Html.TextBoxFor(model => model.PurchaseOrderItemModels.ProductName, new {@class = "form-control", @id = "txtProductName", @onblur = "IsValidProductName()", @placeholder = @Resources.ProductName })
$("#txtProductName").kendoAutoComplete({
minLength: 1,
dataSource: {
transport: {
read: "../PurchaseOrder/Search",
parameterMap: function (data) {
return { wildcard: $("#searchSomething").val() };
}
}
},
select: onSelectName,
filter: "contains",
});