Hi there,
I can see from your Batch editing demo that the grid is configured to use InCell editing mode. However, I am trying this with InLine editing mode:
@(Html.Kendo().Grid(Model.MapDetails)
.Name("MapDetails")
.Columns(columns =>
{
columns.Bound(p => p.Scale).Title("Scale");
columns.Bound(p => p.PageNo).Title("PageNo");
columns.Command(command => { command.Edit(); command.Destroy(); });
})
.Editable(editable => editable.Mode(GridEditMode.InLine))
.ToolBar(toolbar =>
{
toolbar.Create();
})
.DataSource(dataSource => dataSource
.Ajax()
.Batch(true)
.PageSize(20)
.ServerOperation(false)
)
)
However, when attempting to save the row, the grid is failing as it is attempting to trigger a POST action - it does not appear to be respecting the Batch edit mode.
The reason for I am trying this is that using InCell editing it is letting me complete a row without actually triggering all client side validation. For example, using InCell editing:
This is not ideal - using Inline editing, whole row goes into edit mode and all client side validation is triggered. Can you advise if this mode is supported with batch editing and if not, is there a suitable workaround you could suggest?
Thanks
Hello,
How to set the IconClass of the ToolBar Cancel Button?
I cannot find that property
toolbar.Save().CancelText("Verwerfen").Text("Speichern").IconClass("fa fa-save");
toolbar.Excel().IconClass("fa fa-file-excel");
robert
I cannot seem to get a partial page to render properly on a wizard step. Can anyone locate a code example that accomplishes this?
What I have is:
@(Html.Kendo().Wizard()
.Name("wizard")
.HtmlAttributes(new { @novalidate = "" })
.Steps(steps =>
{
steps
.Add().ContentId("upload")
.Buttons(b =>
{
b.Next();
});
steps
.Add().ContentId("validate")
.Buttons(b =>
{
b.Previous();
b.Next();
});
})
.Events(events =>
{
events.Done("onWizardDone");
}))
<
script
id
=
"uploadBillOfLading"
type
=
"text/kendo-template"
>
@await Html.PartialAsync("_Upload")
</
script
>
<
script
id
=
"validateBillOfLading"
type
=
"text/kendo-template"
>
@await Html.PartialAsync("_Validate")
</
script
>
The result is for step 1 (upload) to be displayed as though it were part of the wizard and step 2 (validate) is also displayed but partially in the wizard and partially outside...clearly the wizard is showing all step markup at all time. Do I have to hide/show the step markup pragmatically?
Any and all assistance is appreciated.
Marc.
Hi all,
I've created a spreadsheet app that uses a dropdown list in a similar fashion to this: http://dojo.telerik.com/@nenchef/ojEWU/3
I would like to update the data in the spreadsheet when I make a selection in the dropdown. The problem I'm having is that I can't seem to trigger a
read or the model's accessor methods. The best I've been able to do is trigger a change on the spreadsheet like this:
model.bind("change", function (e)
{
var spreadsheet = $("#spreadsheet").data("kendoSpreadsheet");
spreadsheet.trigger("change");
});
Any help appreciated.
Best
When using a date filter on a column bound to a DateTime value the value submitted is truncated and doesn't contain the time zone information.
c.Bound(x => x.Created)
.Filterable(f => f
.Operators(o => o.ForDate(d => d.Clear().IsGreaterThanOrEqualTo(
"On or after"
).IsLessThan(
"Before"
)))
.Extra(
true
)
.UI(GridFilterUIRole.DateTimePicker)
);
If the user selects 2/5/2021 12:00 PM and (for example) the users time zone is Australia/Sydney, the following is send with the request:
filter: Created~gte~datetime'2021-02-05T12-00-00'
As the time zone information is omitted model binding assumes this is a local time in the time zone the server is operating in.
See also https://github.com/telerik/kendo-ui-core/issues/5737 (which was erroneously closed) and https://github.com/telerik/kendo-ui-core/issues/5306 (which has been open for over a year).
Using:
<PackageReference Include="Telerik.UI.for.AspNet.Core" Version="2021.1.119" />
"@progress/kendo-theme-bootstrap": "^4.30.0",
"@progress/kendo-theme-default": "^4.32.0",
"@progress/kendo-ui": "^2021.1.119",
Hi! im trying to migrate project from .net core2.2. to .net core3.0.
when i add line
services.AddKendo();
i get an error:
System.AggregateException:
'Some services are not able to be constructed (Error while validating the service descriptor '
ServiceType: Kendo.Mvc.Rendering.IKendoHtmlGenerator Lifetime: Transient ImplementationType: Kendo.Mvc.Rendering.KendoHtmlGenerator
': Could not load type '
Microsoft.AspNetCore.Mvc.Internal.ClientValidatorCache
' from assembly '
Microsoft.AspNetCore.Mvc.Core, Version=3.0.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60
'.)'
without this line, everything works fine
i use kendo.mvc dll , 2019.1.220.0 version
any soluiton?
Hi, collegues
i do simple test multilanguage site and has possible trouble: use pl culture and calendar display dates in format dd.MM.yyyy. But ASP.Net Core 3.1 with Polish culture dont accept values in this format for DateTime.TryParse. Look at kendo.culture.pl.min.js and found format section:
patterns: {
d: "dd.MM.yyyy",
D: "dddd, d MMMM yyyy",
F: "dddd, d MMMM yyyy HH:mm:ss",
g: "dd.MM.yyyy HH:mm",
G: "dd.MM.yyyy HH:mm:ss",
m: "d MMMM",
M: "d MMMM",
s: "yyyy'-'MM'-'dd'T'HH':'mm':'ss",
t: "HH:mm",
T: "HH:mm:ss",
u: "yyyy'-'MM'-'dd HH':'mm':'ss'Z'",
y: "MMMM yyyy",
Y: "MMMM yyyy"
}
but simple test with net console display for me:
Format:d, value: 2021-02-05
Format:D, value: 5 lutego 2021
Format:F, value: 5 lutego 2021 17:17:07
Format:g, value: 2021-02-05 17:17
Format:G, value: 2021-02-05 17:17:07
Format:m, value: 5 lutego
Format:M, value: 5 lutego
Format:s, value: 2021-02-05T17:17:07
Format:t, value: 17:17
Format:T, value: 17:17:07
Format:u, value: 2021-02-05 17:17:07Z
Format:y, value: luty 2021
Format:Y, value: luty 2021
I'm found this text: Poland adopted the ISO 8601 standard for date format in official, especially electronic, communication in 2002. For everyday usage and for less official papers, however, the traditional formats d.m.[yy]yy or dd.mm.[yy]yy (i.e., 7.8.2008, 07.08.2008, 07.08.08) are very common in Poland because of speaking order: "day month year".
I think, we have inconsistent behaviour in client and server parts.
PS I'm not Polish and can't told which format is correct.
Sincerelly yours,