Afternoon.
I have a MVC Grid with popup editing, created using an example posted on a previous question from me:
https://www.telerik.com/forums/grid-popup-editing-1551548
The popup edit only updates some of the fields in the grid.
I have a datetime field Dateinpost which is set when the record is created - it doesn't need to be updated.
I have set its format in the model:
[DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:dd/MM/yyyy}")]
[DataType(DataType.DateTime)]
public DateTime? Dateinpost { get; set; }
It doesn't need to appear on the popup template, but I have included it here so that you can see its value:
<div class="k-edit-field">
@Html.EditorFor(model => model.Dateinpost)
</div>
When I update any of the values I get the following ModelState error in the Update action, and the value of Dateinpost in the model is null;
As you can see, the format of the date in AttemptedValue is not correct.
I could write a work around that would clear the ModelState error and not update that field, as it's not to be updated anyway, but it seems that shouldn't be necessary. I've also tried using a date format of "dd/MM/yyyy HH:mm:ss" but that doesn't work either.
Kind regards,
Richard
I have been trying to figure out why the model value is not binding to the RadioGroupFor control.
For instance:
@Html.Kendo().RadioGroupFor(m => m.Auth).BindTo(BoolYesNo.Items).Layout(RadioGroupLayout.Horizontal)
I need to show a command button conditionally based on data in the grid. I'm using the example in the link below but it's not working.
If I leave off the parentheses in the visible property then the javascript call never gets made. If I add them, the javascript call does get made but the data parameter is undefined.
I am using Core and the Razor syntax, not MVC and the HTML helpers as the example shows but I would assume the same concept should work. Any ideas on why this is not working?
ASP.NET MVC Data Grid Component Show Command Buttons Conditionally | Telerik UI for ASP.NET MVC
<commands>
<column-command name="questionanswers" click="goToQuestionAnswers" class-name="link-button" text="Answers" visible="isAnswerButtonVisible()"></column-command>
<column-command name="edit" class-name="link-button" icon-class="k-no-icon"></column-command>
<column-command name="destroy" class-name="link-button" icon-class="k-no-icon" text="Delete"></column-command>
</commands>
function isAnswerButtonVisible(data) {
return data.QuestionType !== "TrueFalse";
}
Hi, I am using ASP Net Core UI in my web app. There is a tabstrip which contains 5 tabs. In each table I can edit/update contents. After I submit/save/update in a tab, the tabstrip alway return to default selected tab. How to prevent that, so user always stay in the current tab after a action? I don't have ASP NET Ajax UI package.
Any suggestion?
thanks,
<div class="k-content">
Hello,
Is it possible to divide a line into four and these four fields can be edited, like this?
Regard,
We have successfully implemented the Copy and Export in our product as shown in the demo here.
We observed two things that we consider anomalous, which also happen on the demo page:
Is there any way to avoid these behaviors?
While Security Testing of application through OWASP Zap tool Medium risk level alert 'Absence of Anti-csrf Token' is popping up for form tag in Kendo.all.min.js
Even I tried to update kendo version to 2022 (Latest) in Kendo.all.min.js
Are there any ways to resolve it ?
Ended up being some css styling i was overriding that doesn't work in the new update
This can be deleted