Hi Team,
Can we use 2020.1.114.440 kendo MVC dll in .net core application I am using same in .net framework 4.7.2.
Thanks & Regards
Amar Deep
It was my understanding that the Kendo editor is only designed to work with the content between the <body></body> tags and strip off <html>, <head>, and the <body> tags themselves but while I do see that those tags are indeed left out in the dialog editor a <meta> tag that I have in my <head></head> section is still being rendered (ref attached screenshot) which is not desired to the extent that I wish to re-apply the standard "format" to the saved body content changes that re-applies the standard prefix/suffix tags we use to define HTML formatted email templates (Ref below) where the {0} placeholder would represent the true editor content changes for the email template being posted back from client to be saved. However while this works I'm getting the original <meta> tag as part of the "content" when my expectation is, that because it is embedded in the <head> tag that it would get stripped out when the <body></body> internal content is rendered on the client. I am currently using the 2025.1.227 build of Telerik UI for ASP.NET Core.
private const string EmailTemplateFormat = "<html><head><meta content=\"text/html; charset=windows-1252\" /></head><body style=\"padding: 0; margin: 0;\">{0}</body></html>";
The code below does not hit the read function so the details shows every detail row for each of the outer rows.(There should only be one detail row per outer row) I am following this example here: ASP.NET MVC Grid Detail Template Demo | Telerik UI for ASP.NET MVC which I use basically the same syntax for it and for an unknown reason theirs works and mine doesnt. My Javascript console gives me a 500 error which doesnt provide me with any way to resolve. Ive commented out stuff in the outer grid as I populate in the get method anyway. Can someone please look into this?
Outer grid:
<div id="RelatedAppearances-scheduling" style="margin-right:8px;border:none;padding:0;color:black; padding-bottom: 20px;">
<div id="RelatedAppearancesTopRowInfo" >
<div id="RelatedAppearances-Grid" style="width:99%;">
@Html.Kendo().Grid(Model.RelatedAppearanceList).Name("RelatedAppearancesGrid").Size(ComponentSize.Small).Editable(GridEditMode.PopUp).Resizable(r => r.Columns(true)).ToolBar(r =>
{
r.Create().Text("Add Appearance");
}
).Columns(col => {
col.Bound(c => c.FileNumber).Title("File Number").Width(175);
col.Bound(c => c.CourtDate).Title("Court Date").Width(150);
col.Bound(c => c.CourtTime).Title("Court Time").Width(150);
col.Bound(c => c.Purpose).Width(100);
}).Sortable().DataSource(dataSource => dataSource
.Ajax()
// .Read(r => r.Url("/Appearances/SchedulingInformation?handler=ReadEntity").Data("forgeryToken"))
// .Update(r => r.Url("/Appearances/SchedulingInformation?handler=UpdateEntity").Data("forgeryToken"))
// .Destroy(r => r.Url("/Appearances/SchedulingInformation?handler=DestroyEntity").Data("forgeryToken"))
// .Model(model =>
// {
// model.Id(p => p.AppearanceID);
// })
).ClientDetailTemplateId("RelatedAppearancesDetail");
</div>
</div>
</div>
Javascript detail grid:
<script id="RelatedAppearancesDetail" type="text/kendo-tmpl">
@(Html.Kendo().Grid(Model.RelatedAppearanceList).Name("innergrid_#=AppearanceID#")
.Columns(columns =>
{
columns.Bound(o => o.AppearanceDetails.AppearanceJudge).Title("Judge").Width(80);
columns.Bound(o => o.AppearanceDetails.AppearanceType).Title("Appearance Type").Width(80);
columns.Bound(o => o.AppearanceDetails.Outcome).Title("Outcome").Width(80);
columns.Bound(o => o.AppearanceDetails.ToTH).Title("To T & H").Width(80);
})
.DataSource(dataSource => dataSource
.Ajax()
.Read(read => read.Action("ReadRelatedAppearanceDetail", "Grid", new { AppearanceID = "#=AppearanceID#" })))
.Sortable()
.ToClientTemplate())
</script>
Razor method:
public JsonResult ReadRelatedAppearanceDetail(int AppearanceID, [DataSourceRequest] DataSourceRequest request) { var curAppearance = RelatedAppearanceList.Where(a => a.AppearanceID == AppearanceID).FirstOrDefault(); return new JsonResult(new[] { curAppearance }.ToDataSourceResult(request, ModelState)); }
Related Appearance Model:
public class RelatedAppearanceDTO { public int AppearanceID { get; set; } public string FileNumber { get; set; } public string CourtDate { get; set; } public string CourtTime { get; set; } public string Purpose { get; set; } public string AppearanceType { get; set; } public string CalendarRemarks { get; set; } public string Outcome { get; set; } public string OutcomeComments { get; set; } public string ToTAndH { get; set; } public RelatedAppearancesDetailModel AppearanceDetails { get; set; } }
Related Appearance Detail Model:
public class RelatedAppearancesDetailModel { public int AppearanceID { get; set; } public string AppearanceJudge { get; set; } public string AppearanceType { get; set;} public string CalendarRemarks { get; set; } public string Outcome { get; set; } public string OutcomeComment { get; set; } public string ToTH { get; set; } public string Minutes { get; set; } public string Disposition { get; set; } }
Hi, I'm referring to the article below:
In the article Asynchronous Mode Fallback is When Upload which is placed inside a form and configured for asynchronous operation.
I have done this, however after uploading some file (and failed since I didn't implement the controller) the form post still doesn't contain any Files.
Is there a specific to implement a fallback mechanism? a sample will be very helpful.
I have a nullable DateTime property in my view model, and I'm binding it to a DatePicker, with a custom date format like so:
@Html.Kendo().DatePickerFor(model => model.MyNullableDateTimeField).HtmlAttributes(new { @class = "form-control" }).Format("MM/dd/yyyy").ParseFormats("MM/dd/yyyy", "yyyy-MM-dd").DateInput(true)
However, it displays like this:
And when I try to submit the form, I get a model validation error: "The value 'month/day/year' is not valid for <my property name>", and it is not possible for me to clear the text from the control at all.
If I input a valid date, it does submit correctly, but I need to be able to have a null value here. I tried
$("#MyNullableDateTimeField").data("kendoDatePicker").value(null) but that did not work. (also tried .val instead of .value)
Also, if there is anyway to have the DatePicker control submit the value in the more standard yyyy-MM-dd format, and just display it in the custom format, I would very much like to know that as well, as it would save me a lot of trouble. I don't understand why it submits a raw string in the "MM/dd/yyyy" format when a standard <input type="date"> will submit in a yyyy-MM-dd format and just display the value in the regular format.
Thanks!
hi, I'm using a combobox like the one below, when the model already has a country assigned, the combobox shows the Id instead of the Name.
At page load I can see that the URL Countries is requested, however this doesn't make a difference.
so the question is, how can I to set the initial value?. I've read examples but they all use a local datasource with bind-to, not a remote datasource. is this possible?
regards
<kendo-combobox for="CountryId" suggest="true"
datatextfield="Name"
datavaluefield="Id" filter="FilterType.Contains">
<datasource server-filtering="true">
<transport>
<read url="@Url.Action("Countries", "Common")"/>
</transport>
</datasource>
</kendo-combobox>
Good afternoon,
Is there a way to populate a second grid based on the outcome of the read action for the first grid?
For example, the read action for grid1 pulls a list of files from the file system in and runs checks against each file. The list generated is returned to load grid1. During the processing a number of errors are generated, creating a second list. Ultimately I'd like grid2 to display that list.
It seems unnecessary to have a separate action for grid2 that is essentially running the same processing, just returning a different list.
With the two grids having AutoBind set to false I assume I can control the order the girds are populated. Could grid2 be populated from a list stored in ViewData?
This article explains how two models can be returned to a single View, but ToDataSourceResult in the Controller can only return one model:
https://www.c-sharpcorner.com/UploadFile/ff2f08/multiple-models-in-single-view-in-mvc/
Kind regards,
Richard
Hi Team,
In our ASP.Net Core MVC project we are using the Telerik Feed for automatic package restoration which work fine by setting up the Username and Password in the nuget.config file inside the %AppData% Folder(C:\Users\-----\AppData\Roaming\NuGet present inside windows), but when we try to deploy build into the server Nuget package restore is failing. May I expect any assistance on this or any steps are we missing which we need to follow to get restoration happen properly on the server.
Using Bootstrap grid row/columns, the listbox will not stay within the bounds of the column it is contained in. Further, I have tried to limit it's width in CSS and it refuses. What needs to be set to get this to conform to standard layout rules? We are using HTMLHelper code to generate the listboxes.