Telerik Forums
UI for ASP.NET Core Forum
1 answer
88 views

Hi

We are having a grid with editable field option which triggers when you click on the field.

I wanted to enable tab functionality so that if you are on any field and click tab it should make the next field enable/editable.

When I am clicking on any field to show like this. On tab press I wanted make Charlotte editable.

ANY help appreciated. Thanks!

1 answer
139 views

I am using a form in a .net Core project.  I want to disable/enable a maskedtextbox based on ViewBag properties.  It works for regular text boxes, but not a masked text box.  Here is a portion of my code:

i.Add()
.Field(f => f.LastName)
.Label(l => l.Text("Last Name:"))
.Editor(e =>
{
e.TextBox().Enable(ViewBag.canEdit);
});
i.Add()
.Field(f => f.CellPhone)
.Label(l => l.Text("Cell Phone:"))
.Editor(e =>
{
e.MaskedTextBox().Mask("(000) 000-0000").Enable(ViewBag.canEdit);
});

 

Alexander
Telerik team
 answered on 02 Feb 2022
1 answer
204 views

What is the usage of UnmaskOnPost?
It seems that if the value is true or false the unmasked text is passed to the ViewModel/Model/Controller.

I need the masked value to be passed for additional validation.

Alexander
Telerik team
 answered on 19 Nov 2021
1 answer
256 views

I have a group of fields on a form.  It is OK if they are all empty, but if one in the group has data, they all must have data.  There are other fields with other validation rules that are not part of the group.

The fields are a combination of TimePicker, NumericTextBox, TextBox, MaskedTextBox, ComboBox and RadioButton.  The fields always appear in a group so they aren't spread out all over the form.

The values need to be checked before the form is saved.

What's the best way of checking for all fields null or not null and if they are not all null or all not null then display a message.  Ideally it would be nice to display which fields are missing.

I'm using the MVVM pattern

TIA

2 answers
185 views

Hello,

 

In the demo pages (https://demos.telerik.com/aspnet-core/maskedtextbox/index), removing the value from the masked text box and then re-focusing the control places the cursor at the start of the input. This behavior does not appear to be default, as when I used a masked textbox in my project the cursor appears in the middle of the mask (wherever was clicked). I also don't see any mention of it in the demo pages or documentation. Is there a simple way of enabling this behavior?

 

I am using the current release of UI for ASP Core.

<kendo-maskedtextbox name="phone" class="form-control" mask="(999) 000-0000" value="@Model.SearchModel.Phone"></kendo-maskedtextbox>

 

Josh
Top achievements
Rank 1
 answered on 15 Nov 2018
1 answer
222 views
how 2 set multi line for MaskedTextBox?
Stefan
Telerik team
 answered on 06 Jun 2018
1 answer
73 views

MaskedTextbox allows alphabets even after setting maskType a below

@(Html.Kendo().MaskedTextBox().Name("PostalCode").Mask("000000").Value(Model.PostalCode).HtmlAttributes(new { @class = "form-control", @maxLength = "6" }))

Georgi
Telerik team
 answered on 16 Jan 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
Iron
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
Iron
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?