I have Parent-Child Grid and I need to provide in-line editable feature in parent row in a particular cell. I have tried GridEditMode.InLine editable but it didn't allow to display the grid value. Please help me to find out the problem area below is my code in View:
@model IEnumerable<StarTrax.Mvc.Models.ToFindListViewModel>
@{
ViewData["Title"] = "View";
Layout = "~/Views/Shared/_Layout.cshtml";
}
@(Html.Kendo().Grid(Model)
.Name("grid")
.Columns(columns =>
{
columns.Bound(e => e.Name).Width(110).Title("List Name");
columns.Bound(e => e.CreatedAt).Width(110).Title("Create Date").Format("{0:MM/dd/yyyy}");
columns.Bound("").Width(110).Title("Created By");
columns.Command(command =>
{
command.Edit();
command.Destroy();
}).Width(120);
})
.Editable(editable => editable.Mode(GridEditMode.InLine))
.Sortable()
.Pageable()
.Scrollable()
.ClientDetailTemplateId("template")
.HtmlAttributes(new { style = "height:430px;" })
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(10)
.Model(model => model.Id(p => p.EntityId))
.Read(read => read.Action("GetAll", "ToFindList"))
.Update(update => update.Action("Edit", "ToFindList"))
.Destroy(destroy => destroy.Action("Delete", "ToFindList"))
)
.Events(events => events.DataBound("dataBound"))
)
<script id="template" type="text/kendo-tmpl">
@(Html.Kendo().Grid< StarTrax.Mvc.Models.AssetToFindViewModel> ()
.Name("grid_#=EntityId#")
.Columns(columns =>
{
columns.Bound(o => o.Asset.EPC.BarCode).Width(110).Title("Barcode");
columns.Bound(o => o.Asset.SerialNumber).Width(110).Title("Serial Number");
columns.Bound(o => o.Asset.Name).Width(200).Title("Asset Name");
columns.Bound(o => o.Asset.Status).Width(200);
})
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(10)
.Read(read => read.Action("GetToFindAssets", "ToFindList", new { toFindListId = "#=EntityId#" }))
)
.Pageable()
.Sortable()
.ToClientTemplate()
)
</script>
<script>function dataBound() {
this.expandRow(this.tbody.find("tr.k-master-row").first());
}</script>
Hi,
Is this also available for ASP.NET Core (MVC/Razor)? Or is this functionality limited to webforms?
Thanks!
Hello,
I'm running into an issue where I cannot filter items in a DropDownList when I tab onto it when .Filter is enabled. When I tab onto the DropDownList I can cycle through items just fine with the arrow keys.
I'm aware of ALT + Down arrow to open up the DropDownList, and that works just fine, but I find that it is more intuitive to start typing once it has been selected, especially when filling out a form. I was wondering if it is possible to have the DropDownList open when it has been selected with Tab, or if there is a way to remap the shortcut.
Hi,
Is there any option for hiding Filter Menu Icon ? I have seen there is a ShowFilterIcon option at Ajax Grid but i think its not available option for ASP.Net Core Grid.
Hi,
We want to use the .net core scheduler for people to define their availability online. This maybe as single meetings or a reoccurring meeting. This will probably use the standard web api and db schema used in the telerik examples. What I then need is a helper function that will return me all the periods of time a single user is available in a given week. I have read elsewhere that recurrence is client side only and that a library such as ical.net is needed to load/cast the data and then interpret it using its functions. However I see in this telerik example there is a class that seems to do this:
https://docs.telerik.com/devtools/aspnet-ajax/controls/scheduler/server-side-programming/working-with-recurring-appointments
Before I go down the ical.net path can someone confirm if there is standard telerik SERVER code to get back dates from recurring meetings saved by the schedule and maybe provide more details or an example?
Thanks, Matt
The same switch control in windos10 system,it can be slide drag:
press the block and drag,if it is samll distance,release the mouse,the block will go back,otherwise the distance exceed 30%-50%
Hello,
We are currently using the Kendo DropDownList on our site using the FilterType.Contains filtering. Here is an example of how we have one of our dropdowns set up currently:
@(Html.Kendo().DropDownListFor(c => c.Explant.FacilityId)
.OptionLabel(
"-- Select a Facility --"
)
.HtmlAttributes(
new
{ style =
"width:40%"
, id =
"facilityDropdown"
, @
class
=
"dropdown"
})
.BindTo(Model.Facilities.OrderBy(c => c.Name))
.DataTextField(
"Name"
)
.DataValueField(
"Id"
)
.Filter(FilterType.Contains))
The issue is, the user is able to open up the dropdown just fine by pressing the spacebar, however when they are typing into the filter textbox in the dropdown and try to click the spacebar to add another word to the filter, the space is applied to the filter textbox, but the dropdown closes automatically. This can be very annoying to our users who are trying to filter the results of the dropdown list with it. I've tried searching through your site and forums as to why this behavior might be occurring, but the closest thread I found about it is this one from two years ago: https://www.telerik.com/forums/bug-dropdownlist-in-r3-2017-dropdown-gets-closed-when-space-is-hit-in-the-filter-textbox.
I'm unsure if this is a bug with the dropdownlist, or if it's something on our end, but does anyone have any suggestions on a workaround for this bug? We've attempted some Javascript to try to prevent its behavior, but we haven't been able to get that working either:
window.onkeydown =
function
(e) {
e = e || window.event;
// Normalize the event for IE
var
target = e.srcElement || e.target;
// Get the element that the event was triggered on
var
tagName = target.tagName;
// Get the tag name of the element
var
className = target.className;
console.log((tagName ===
"INPUT"
&& e.keyCode == 32 && className ==
"k-textbox"
))
if
(tagName ===
"INPUT"
&& e.keyCode == 32 && className ==
"k-textbox"
) {
return
;
}
}
If anyone is able to provide any helpful insight into this issue, that would be greatly appreciated.
Thanks,
Jason
Hi
I have a custom editable template and i would like to the owner to default owner, no selection. I have below code in the custom template but the value is not posted back to server during ajax call. can someone advice ?
<div data-container-for="OwnerName" class="k-edit-field" id="owner">
<input type="text" class="k-input k-textbox" name="ownername" id="ownername" data-bind="value:OwnerName" disabled>
<input type="hidden" name="ownerId" data-bind="value:OwnerID" id="ownerId">
</div>
<script>
$(function () {
if (!$("\\\#title").val()) {
var viewModel = kendo.observable({
OwnerName: "Tester",
ownerId: "TS0001"
});
kendo.bind($("\\\#owner"), viewModel);
}
});
</script>
Hello,
I get an error when trying to add Microsoft.AspNetcore.Mvc.Razor.RuntimeCompilation to my project to re-enable this feature which was removed from the base package. Attached is the error I am receiving.
Thanks,
Scott
PivotGrid/TreeList control:
Expand/collapse button's mouseover cursor is text style,not arrow or hand icon,like the treeview control/grid control