1

I have kendo grid in my application.And in my grid filterable is true.In grid one row has numeric text-box in filter,when we click on spinners it is showing infinity values.So I want to give some limit for numeric text-boxes in filter.How to give some limit for numeric text boxes in grid filter.? My grid code is

                var grid = $("#grid").kendoGrid({
        dataSource: {
            type           : "odata",
            transport      : {
                read: "http://demos.kendoui.com/service/Northwind.svc/Orders"
            },
            schema         : {
                model: {
                    fields: {
                        OrderID  : { type: "number" },
                        Freight  : { type: "number" },
                        ShipName : { type: "string" },
                        OrderDate: { type: "date" },
                        ShipCity : { type: "string" }
                    }
                }
            },
            pageSize       : 10
        },
        filterable: true,
        sortable  : true,
        pageable  : true,
        columns   : [
            {
                field     : "OrderID",
                filterable: false
            },
            "Freight",
            {
                field : "OrderDate",
                title : "Order Date",
                width : 100,
                format: "{0:MM/dd/yyyy}"
            },
            {
                field: "ShipName",
                title: "Ship Name",
                width: 200
            },
            {
                field: "ShipCity",
                title: "Ship City"
            }
        ]
    }).data("kendoGrid");
1
  • I am trying like this but no result filterable: { min:0,max:50 extra: false, operators: { number: { eq: "Is Equal To", neq: "Is Not Equal To" }}} Commented Apr 20, 2013 at 9:01

1 Answer 1

1
+50

Once try this

filterMenuInit: function(e) {
  var numeric = e.container.find("[data-role=numerictextbox]").data("kendoNumericTextBox");
  if (numeric) {
    numeric.min(0);
  }
}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.