Hi,
I would like to know how to setup a generic MVC layout(page) with a (panelbar) menu on the left (collapsable when mobile)
together with a Breadcrumb. Should be responsive / mobile first.
Actually something like your demos page navigation, but then the menu should be collapsable. Like the panelbar.
Is there a complete example for this ? Or do I have to fuzzle manually to achieve this ?
(At first I was thinking about using the menu control, but to my surprise I saw that control is not responsive.)
Martin
Hello,
i'm using MVC5 Razor helper to create grid and i'm trying to show specific autocomplete values in filter row. As i undestood it from forums and docs i have to replace standard filter row input by manually creating kendoAutoComplete(...) with my own dataSource, as shown for example here with classic filter menu:
https://demos.telerik.com/aspnet-mvc/grid/filter-menu-customization
or here with filter row:
https://www.telerik.com/forums/server-side-filtering-with-row-filter-mode-filters-too-soon!
My custom JS autocomplete:
<script>
function onFilterAutocomplete(e)
{
e.element.kendoAutoComplete({
filter: 'contains',
dataSource: {
serverFiltering: true,
serverSorting: true,
transport: {
read: '@Url.Action("FilterAutocompleteAsync")'
}
}
});
}
</script>
My server method:
[HttpPost]
//[ValidateAntiForgeryToken]
public async Task<JsonResult> FilterAutocompleteAsync([DataSourceRequest]DataSourceRequest dataSourceRequest) => Json(/*... db stuff...*/);
When i try to replace input by defining:
columns.Bound(x => x.ColumnName).Filterable(x => x.Cell(y => y.Template("onFilterAutocomplete")));
my JS function is executed on grid init and no errors are shown in browser console. But when i try to filter, the automatic autocomplete on filter input keeps showing values as normaly from grid dataSource (standard behaviour) and my controller method won't get called.
If i try to replace input by defining:
columns.Bound(x => x.ColumnName).Filterable(x => x.UI("onFilterAutocomplete")));
my JS function won't get called at all.
What am i doing wrong here?
PS: I've tried with following versions:
telerik.ui.for.aspnetmvc.hotfix.2019.2.619.commercial.digitally-signed
and
telerik.ui.for.aspnetmvc.hotfix.2021.2.511.commercial.digitally-signed
Hello
I am trying to use Rowtemplate on a Treelist so that we can completely control how the row is rendered, however once i have my Treelist up and running with a Rowtemplate then all the editing functionality disappears.
The cell editing works perfectly when no RowTemplateId is specified and as soon as i enable my custom Rowtemplate the editing stops working immediately, i even try manually calling edit on a cell, however no editing seems to work once i start using the custom RowTemplate.
But all the rest of the RowTemplate functionality is working, so is RowTemplates only for displaying elements right now or is it a bug?
Cheers
Uffe
Hi
I am trying to make the scheduler, day week and month views to fit only a single screen without needing to horizontally scroll. But each day takes up 50% of the screen and its totally unnecessary wasting of the screen space.
Google searches dont give me results, or tell me that it cannot be done.. AND YET, every single demo on the telerik website perfectly fits into a div that takes up 80% of the width of the screen. So its possible, dont tell me it is not.
How?
Here is some code:
cshtml file:
@model project.models.schedulerModel
@using Kendo.Mvc.UI
<div id="appointmentCalenderContainer" class="calenderContainer">
@(
Html.Kendo().Scheduler<SchedulerModelTaskViewModel>()
.Name("appointmentsCalender")
.Width(1880)
.Height(820)
.Editable(true)
.AllDaySlot(false)
.EventTemplate("<div class='eventBox'><div class='eventInner'><span>#= title #</span></div><div class='eventInner'><span>#= description #</span></div></div>")
.Views(views => {
views.DayView(x => x.Selected(true));
views.WeekView();
views.MonthView();
})
.DataSource(d => d
.Model(m => {
m.Id(f => f.TaskID);
})
.Read("Read", "CitizenDashboard")
.Create("Create", "CitizenDashboard")
.Destroy("Destroy", "CitizenDashboard")
.Update("Update", "CitizenDashboard")
)
)
</div>
Good day guys,
how possible is this, to send input textbox value to autocomplete textbox while typing. and the autocomplete should be set to readonly.
see attached image
kind regards
Hello,
I want to Fetch all files in a local Folder (Directory) and populate file names and present them in my view page as a drop down list.
taking the name of the file selected and save it in my table as a string value.
any suggestions please ?
Thank you in advance.
I check on site some examples for drag-drop in diagram bug that is only available for ASP.Net AJAX but I need them in ASP.NET MVC. I attached a link as well for reference.
https://demos.telerik.com/aspnet-ajax/diagram/examples/interactions/defaultcs.aspx
So, anybody helps me that it is available for ASP.NET MVC or not.