Telerik Forums
UI for ASP.NET Core Forum
1 answer
97 views

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>

Georgi
Telerik team
 answered on 07 May 2019
1 answer
144 views

Hi,

Is this also available for ASP.NET Core (MVC/Razor)? Or is this functionality limited to webforms?

https://demos.telerik.com/aspnet-ajax/grid/examples/functionality/filtering/excel-like-filtering/defaultcs.aspx

 

Thanks!

Alex Hajigeorgieva
Telerik team
 answered on 06 May 2019
3 answers
97 views

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.

Joana
Telerik team
 answered on 06 May 2019
2 answers
197 views

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.

ibrahim
Top achievements
Rank 1
 answered on 02 May 2019
3 answers
480 views

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

 

 

 

 

Dimitar
Telerik team
 answered on 02 May 2019
1 answer
105 views

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%

 

 

Dimitar
Telerik team
 answered on 01 May 2019
1 answer
177 views

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

Veselin Tsvetanov
Telerik team
 answered on 30 Apr 2019
1 answer
93 views

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>

Jimmy
Top achievements
Rank 1
Iron
Veteran
 answered on 30 Apr 2019
2 answers
136 views

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

Scott
Top achievements
Rank 1
 answered on 29 Apr 2019
5 answers
180 views

PivotGrid/TreeList control:

Expand/collapse button's mouseover  cursor is text style,not arrow or hand icon,like the treeview control/grid control

Preslav
Telerik team
 answered on 29 Apr 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?