0

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",
        });
Amit Soni
  • 3,216
  • 6
  • 31
  • 50
Kasun Abaywardana
  • 340
  • 2
  • 4
  • 17

0 Answers0