.net core kendo ui
grid has a toolbar template however on pdf export by default it should export with toolbar template but its not, i am not hiding it on export either
is there anything i am missing
.ToolBar(toolbar => { toolbar.ClientTemplateId("PatientGridToolbarTemplate");
}) .Columns(columns
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
>
Hello,
we are using one custom LESS-file to configure our kendo theme and get our generated, bundled result CSS file. This LESS-file is referencing the specific theme files (in our case 'office365') inside the kendo styles-folder. Unfortunately there are rules with the 'calc' function, that are specially handled by the LESS compiler. Its not pushing the default statement to the CSS file, but a self-calculated one.
So this (kendo.common-office365.less - line 92):
calc(1.143em + (2*@button-padding-y) + 2px)
gets converted in the result CSS to this:
calc(4.001em)
And thats a wrong value, that shows me oversized buttons in the UI. To prevent this behaviour you should use the rule like this:
~'calc(1.143em + (2*@{button-padding-y}) + 2px)'
which gets the following correct result in the CSS file:
calc(1.143em + (2*.429em) + 2px)
i use the follow code, but it is not working
var listbox=$('#listboxname').data('kendoListBox')
2018 r3
I want to see the saved date in the text box on the edit page. Everything works ok on my create page but for some reason I can't get the value to show on my edit page.
This will display the date:
@Model.UsrRequest.Start
This does not:
@(Html.Kendo().DatePicker().Name("UsrRequest.Start").Value("Model.UsrRequest.Start"))
What am I missing?
I have the following dropdownlistfor:
@(Html.Kendo().DropDownListFor(x => x.SelectedInvoicingCompanyId)
.HtmlAttributes(new { @class = "form-control" })
.BindTo(ViewData["allInvoicingCompanies"] as IEnumerable)
.DataTextField("Name")
.DataValueField("Id")
.OptionLabel(new { Name = "Select company", Id = 0 }))
This works fine in another view with the exact same source. However i have this grid with popup edit and a custom popup edit template with this dropdownlist. In this popup edit template the dropdownlist displays as a textbox and the SelectedInvoicingCompanyId number i.e. "1".
When i press the edit button i also get the following error from jQuery:
Uncaught SyntaxError: Invalid or unexpected token
at m (jquery-3.3.1.min.js:2)
at Re (jquery-3.3.1.min.js:2)
at w.fn.init.append (jquery-3.3.1.min.js:2)
at I.fn.init.w.fn.(anonymous function) [as appendTo] (https://ajax.aspnetcdn.com/ajax/jquery/jquery-3.3.1.min.js:2:50106)
at init._createPopupEditor (kendo.all.js:58951)
at init.editRow (kendo.all.js:58796)
at HTMLAnchorElement.<anonymous> (kendo.all.js:58532)
at HTMLDivElement.dispatch (jquery-3.3.1.min.js:2)
at HTMLDivElement.y.handle (jquery-3.3.1.min.js:2)
I can not get my head around this. I had it working some time ago, and i think it started acting this way after i updated to 2018.3.1017.
I have other dropdownlistfor in this popup edit template which are working as they should. So it's only this specific dropdownlist that doesn't load as it should.
This is one example of a working dropdownlist in the same view:
@(Html.Kendo().DropDownListFor(x => x.SelectedPMId)
.HtmlAttributes(new { @class = "form-control" })
.BindTo(ViewData["allUsers"] as IEnumerable)
.DataTextField("DisplayName")
.DataValueField("Id")
.OptionLabel("Select User")
.Filter("contains"))
Hello,
I have developed an MVC application that uses Kendo Grid to display database tables dynamically on user request. I have received a request to implement 'bookmarking' of the grid state at certain points, i.e: if the user has progressed through the system to load a specific schema/table, they would like a link or some sort of 'bookmarked reference' to instantly load the grid without having to traverse through the controls again. I'm not sure how realizable this is.. the controller reference of course can be bookmarked, but this will just return the raw Json that populates the grid.. is there anyway for an end-user to pass around a reference that would instantly reload the grid in a specific state?
We have implemented a scheduler on an mvc page:
01.
@(Html.Kendo().Scheduler<SchedulerBasicCore.Models.ScheduleViewModel>()
02.
.Name(
"scheduler"
)
03.
.Date(DateTime.UtcNow)
04.
.Editable(
false
)
05.
.Height(600)
06.
.Toolbar(t => t.Pdf())
07.
.AutoBind(
true
)
08.
.Views(views =>
09.
{
10.
views.DayView();
11.
views.WeekView(weekView => weekView.Selected(
true
));
12.
views.MonthView();
13.
views.AgendaView();
14.
})
15.
.Timezone(
"Etc/UTC"
)
16.
.DataSource(d => d
17.
.WebApi()
18.
.Model(m =>
19.
{
20.
m.Id(f => f.EventId);
21.
m.Field(f => f.Title).DefaultValue(
"No title"
);
22.
})
23.
.Read(read => read.Action(
"Schedules_Read"
,
"Scheduler"
).Data(
"getAdditionalData"
))
24.
)
25.
)
26.
27.
<script>
28.
function getAdditionalData() {
29.
var scheduler = $(
"#scheduler"
).data(
"kendoScheduler"
);
30.
31.
var result = {
32.
start: scheduler.view().startDate().toISOString(),
33.
end: scheduler.view().endDate().toISOString()
34.
}
35.
36.
return
result;
37.
}
38.
</script>
This calls through to an API and this all work successfully.
However, as i scroll through weeks or different views the api is called until some data is successfully returned. Once data is successfully returned no further changes of the views or scrolling through the dates result in an api call.
So I am wondering what I need to do to support loading data per view or date change?
Thanks
Sam
Hello,
Is it possible to fill my gauge through my controller?
In a bar chart you can do for example:
.DataSource(ds => ds.Read(read => read.Action("CNTRLLERFUNC", "CNTRLLERNANE")))
How can I perform this for in a gauge? And I don't want this to be done through a model.