Completed
Last Updated: 20 Nov 2014 20:19 by ADMIN
Pavel
Created on: 10 May 2014 17:41
Category: Kendo UI for jQuery
Type: Feature Request
2
integarate masked input with grid
Since KendoUI has now MaskedInput widget would be nice to have a grid configuration option, which allows to specify mask for a column in edit mode.
3 comments
ADMIN
Telerik Admin
Posted on: 16 May 2014 13:04
Thanks for clarifying. 

I spoke with our developers and you'll probably agree that setting mask for a field within the model is not accurate by model definition, as it concerns the visual representation and not the data.

Since the default editor for string fields is a textbox, and you have the option to specify custom masked editor when you need it as I explained previously, I am closing this request.
ADMIN
Telerik Admin
Posted on: 16 May 2014 13:04
Thank you for the proposal.

Presently numeric and datetime editors are automatically available for grid columns of type number and date time. Can you elaborate on what data type you would expect to have masked textbox editor by default?

Note that even now you can instantiate custom editor of type masked textbox using the editor attribute of the relevant column, as represented in this demo:
http://demos.telerik.com/kendo-ui/web/grid/editing-custom.html
Pavel
Posted on: 13 May 2014 13:23
I meant textboxes ("string" field type). By default a simple textbox should appear (as it is now), but there should be an option like this:

schema: {
                           model: {
                             id: "customerID",
                             fields: {
                                customerID: { editable: false, nullable: true },
                                creditCard: { validation: { required: true }, mask: "0000 0000 0000 0000" }
                             }
                           }
                       }

then a masked textbox should appear after clicking "Edit" button.