Setup kendo numeric editor in inline editing of a grid

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
7 years ago
Hi,

I am trying to figure our how to setup a numeric editor in kendo grid for a value that is number.
I want to work as DisplayOrder in Product Category view.

But I cannot find any special code for that editor.

Is there a JS guru to help me ( :

Regards,
Boris
7 years ago
The Mystery solved:

Set the editor property of the field

{
    field: "Numeric",
    title: "Numeric Title",
    width: 200,
    format: "{0:0}",
    editor: numericTextBox
}


with that function


function numericTextBox(container, options)
{
    $('<input name="' + options.field + '"/>')
        .appendTo(container)
        .kendoNumericTextBox({
            format: "{0:n4}",
            decimals: 4
    });
}
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.