The code showing how to return json to the client is missing in the autocomplete examples
using Microsoft.AspNetCore.Mvc;
Hello,
I would like to ask if it's possible to group DropDownListFor options as it is described in this link (https://demos.telerik.com/aspnet-core/dropdownlist/grouping), but for DropDownListFor?
Thank you.
e.g. How can I group my dropdown options by LineOfBusinessCategory?
@(Html.Kendo().DropDownListFor(m => m.CompanyHasLineofBusiness.LineOfBusinessID)
.DataTextField("LineOfBusinessName")
.DataValueField("LineOfBusinessID")
.FixedGroupTemplate("LineOfBusinessCategory")
.DataSource(source =>
{
source.Custom();
source.ServerFiltering(true);
source.Read(read =>
{
read.Action("LineOfBusinessNameList", "Midas").Type(HttpVerbs.Post);
});
})
.HtmlAttributes(new { style = "width: 100%", @validationMessage = "Mandatory" })
)
hi,
I am following this example: https://docs.telerik.com/kendo-ui/controls/navigation/buttongroup/overview
After i added the buttongroup, i got 185 errors. . Is something wrong with my DIV tag ?
<div class="demo-section" style="width: 250px;">
@(Html.Kendo().DropDownList()
.Name("usagedd")
.DataTextField("Text")
.DataValueField("Value")
.DataSource(source =>
{
read.Action("GetPlanesDropDown", "Crud");
});
})
.HtmlAttributes(new { style = "width: 30%" })
)
<ul id="buttongroup">
<li>Option 1</li>
<li>Option 2</li>
<li>Option 3</li>
</ul>
</div>
I'm wondering if this idea I've had is possible, and if so, how to go about implementing it.
Basically, I have a Controller that pulls data out of a MySQL database using Dapper, and a View that is composed of a bunch of grids. All these grids have an Action Method in the controller that is responsible for sending the pulled data over to the grids. Once the data has been loaded into these grids, there are checkboxes next to everything for a user to make selections.
The end goal is to generate a PDF file utilizing the data that the user has selected. I've been looking into libraries that would aid in this PDF generation, and I'm wondering if there is a way to pass the selected data back to the controller in order to utilize a C# library for this task of PDF Generation. Otherwise, I will look into JavaScript libraries in order to implement this. Any suggestions would be much appreciated. Thanks!
Hello,
I am wondering if there is any way to customize the DateRangePicker to allow for it to have the two calendar months stacked vertically when it is opened. I am looking to use the range picker in a sidebar on my page and it would fit much better vertically than the default horizontal.
Thank you
Can someone advice how do I include anti forgery token and parent ID in the hierarchical grid?
<script id="template" type="text/kendo-tmpl">
@(Html.Kendo().Grid<TransactionRevenue>()
.Name("Grid_#=ITransactionId#")
.Columns(columns =>
{
columns.Bound(o => o.InvoiceToName).Title("Receive From").Width(450);
columns.Bound(o => o.Amount).Format("{0:c}").Width(200);
})
.DataSource(dataSource => dataSource
.Ajax()
.ServerOperation(false)
.Read(read => read.Action("HierarchyBinding_Orders", "Grid", new { TID = "#=ITransactionId#" })) //****Need to include token here
)
.Sortable()
.ToClientTemplate()
)
</script>
somehow my scheduler controller has a bad appearance (see picture)
Do i need to apply a theme or css class ?
this is my cshtml code:
@(Html.Kendo().Scheduler<SkyApp.Models.CosmosDB.ScheduleViewModel>()
.Name("scheduler")
.StartTime(new DateTime(2019, 1, 1, 6, 00, 00))
.Height(600)
.Width(800)
.Views(views =>
{
views.MonthView(w => w.Selected(true));
views.DayView();
views.WeekView();
views.WorkWeekView();
})
.Timezone("Etc/UTC")
.DataSource(d => d
.Events(e => e.Error("onError"))
.Model(m =>
{
m.Id(f => f.EventId);
m.RecurrenceId(f => f.RecurrenceId);
})
.Read(read => read.Action("Schedules_Read", "Crud"))
.Create(create => create.Action("Schedules_Create", "Crud"))
.Update(update => update.Action("Schedules_Update", "Crud"))
.Destroy(destroy => destroy.Action("Schedules_Destroy", "Crud"))
)
)
hello,
I have 3 @(Html.Kendo().DropDownList()
is there a telerik control i can use to arrange them side by side?
Attached picture shows current placement, this is my cshtml
<div class="demo-section" style="width: 250px;">
<h4>Status</h4>
@(Html.Kendo().DropDownList() etc etc
thanks,Peter
I would like the user to be able to add options, however I intend to handle adding the new items when the form is posted rather than dynamically.
Ideally I'd like to continue using the tag helper if possible for simplicity, and be able to hit enter to add the entry if it doesn't appear in the filtered list.
Is there any existing solution to this?