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
Cheers
4 Answers, 1 is accepted
0
Accepted
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
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"});
}
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
});
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
});