This is a migrated thread and some comments may be shown as answers.

Masked Input for inline grid editing

4 Answers 1275 Views
MaskedTextBox
This is a migrated thread and some comments may be shown as answers.
Anthony
Top achievements
Rank 2
Anthony asked on 07 Apr 2014, 08:49 PM
I am looking for some guidance for this application of the Masked Input Box. Simply stated I want to use it in conjunction with the Kendo grid. The research I have done reveals that row templates are not supported for grids with inline editing, and that eliminates one possible straightforward approach. I would be interested if anyone has made this scenario work.

Cheers

4 Answers, 1 is accepted

Sort by
0
Accepted
Alexander Valchev
Telerik team
answered on 09 Apr 2014, 02:06 PM
Hi Anthony,

If I understood correctly you would like to use the Masked Input Box as an editor in the Grid. If that is the case please follow this example:
Demo page demonstrates how to create DropDownList editor but the same approach applies for MaskedInput.

Regards,
Alexander Valchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Anthony
Top achievements
Rank 2
answered on 09 Apr 2014, 03:02 PM
Thanks for the help! The Dojo is great!
0
Gerry
Top achievements
Rank 1
answered on 14 Jul 2014, 09:42 PM
Hmm;

I have tried and this idea does not retain the original value.

Here is my code as of right now:

function GeneratePostalCode_EditMask(container, options) {
    $('<input id="postalCodeEditMask" "value=' + options.model.PostalCode + '"/>')
            .appendTo(container)
            .kendoMaskedTextBox({mask: "L0L 0L0"});
}










1
Gerry
Top achievements
Rank 1
answered on 14 Jul 2014, 10:12 PM
Sorry for the bother.

This works:

    $('<input id="postalCodeEditMask" data-text-field="PostalCode" data-value-field="PostalCode" data-bind="value:' + options.field + '"/>')
            .appendTo(container)
            .kendoMaskedTextBox({
                mask: "L0L 0L0",
                value: options.model.PostalCode
            });
Tags
MaskedTextBox
Asked by
Anthony
Top achievements
Rank 2
Answers by
Alexander Valchev
Telerik team
Anthony
Top achievements
Rank 2
Gerry
Top achievements
Rank 1
Share this question
or