How do we show mask for phone number in editable grid? below is the my editable grid and i want show the mask for the phone column.
Thanks!
1 Answer, 1 is accepted
0
Accepted
Aleksandar
Telerik team
answered on 28 Sep 2022, 06:15 AM
Hello Teja,
To use an editor other than the default you can add a custom editor. Add an EditorTemplate containing a MaskedTextBox to the ~\Views\Shared\EditorTemplates folder and indicate the Grid should use it for the model property that should be a phone number. For example:
Model:
public class OrderViewModel
{
public string Phone { get; set; }
...
}
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.