@(Html.Kendo().Grid(Model) .Name("UserManagement") .DataSource(dataBinding => { dataBinding.Ajax().Read( read => read.Action("_UserManagement", "Account")) .Create( create => create.Action( "CreateUser", "Account")) .Model( model => model.Id( u => u.Id )); }) .ToolBar(commands => { commands.Create().HtmlAttributes(new { @class = "action pie" }); }) .Columns(column => { column.Bound(c => c.Name).Title(ViewResources.UserManagement.Username.ToUpper()); column.Template(@<text></text>) .ClientTemplate( "<input type='button' class='action pie' value='" + ViewResources.UserManagement.ResetPw + "' onclick='onResetPassword( #= Id #, \"#= Name #\" )'/> " + "<input type='button' class='action pie' value='" + ViewResources.UserManagement.Delete + "' onclick='onDeleteUser( #= Id #, \"#= Name #\" )'/>") .HtmlAttributes(new { style = "text-align: center;" }) .Width(400); }) .Editable(editing => editing.Mode(Kendo.Mvc.UI.GridEditMode.InLine)) .Pageable() .Sortable() .Filterable() .Events(e => e.DataBound("onDataBound")) .ClientDetailTemplateId("userRoleLinkTemplate"))<script id="userRoleLinkTemplate" type="text/kendo-tmpl">@(Html.Kendo().Grid<RoleUserLinkModel>() .Name("RoleLinks_#=Id#") .DataSource(dataSource => dataSource.Ajax().Read( read => read.Action( "_UserRoles", "Account", new { userName = "#= Name #" }))) .Columns(column => { column.Bound(r => r.IsLinked) .Title("") .ClientTemplate("<input type='checkbox' class='styled' name='checkedLinks_#= RoleId #_#= UserId #' onclick='Urv_onCheckChange(#= RoleId #, #= UserId #, this.checked)'/>") .Width(36) .Sortable(false) .HtmlAttributes(new { style = "text-align:center" }) .Filterable(false); column.Bound(r => r.RoleName) .Title(ViewResources.UserManagement.RoleColumn); }) .Pageable() .Sortable() .Filterable() .Events(e => e .DataBound("setupStyling"))
.ToClientTemplate())I have a date/time picker in a popup editor that I use javascript to set a default date when the editor opens. The javascript is able to change the value of the date/time picker but the value is not binding to the grid, hence not saving to the server. The record saved will show null for the date field.
How do I set a default date to a date/time picker via javascript and have it bind to the record upon saving?
Hello,
I cannot get working hiding the address bar for my mobile hybrid application on the mobile device (Samsung Galaxy S10).
See attached screenshot.
Here is my initialization code of the mobile application:
[code]
@(Html.Kendo().MobileApplication()
.ServerNavigation(true)
.Layout(Model)
.HideAddressBar(true)
.Events(e => e.Init("onInitApplication"))
.Transition("slide")
.Skin("nova"))
[/code]
Any ideas what I do wrong. Is there any "workaround" to hide the address bar on the mobile device (iphone, android phones, ...)
Greetings

Hello,
is it possible to open a modal view and show a remote HTML page of PDF Document inside the modal view content?
I only see, that you can add own html in the "Content" Block.
If its not possible with the modal view, is there any control that allows me to do that. I would like to show HTML pages or PDFs in a "non fullscreen window", which should be on top of my main window. So modal window would be perfect ...
Greetings

I have an in-cell editable grid grid in which the values available in a grid foreign key column should be filtered by an input a user has previously selected. In our case a user picks a location from a kendo dropdown (outside of the grid) and that value filters what products should appear in the product foreign key column.
The general idea is that location 1 might have products A, B, and C. But Location 2 might only have products C and D. If the user picks location 1 then the multiselect bound to the foreign key column should only show A, B, and C, and if the user picks location two then they only see C and D when the dropdown is rendered.
I've seen examples where you change the editor template for Foreign Key to bind the dropdown to a remote datasource. In that case the read passes in whatever data the server needs for filtering (location id in our case) as data to the controller read call (https://www.telerik.com/forums/filtered-foreign-key-drop-down-list-based-on-another-key). The server then returns the filtered list of select list items which are bound to the dropdown.
We'd really like to avoid the case where every time a user opens the dropdown we hit the server. Is there any way to do this filtering on the client side?
I'm envinsioning a case where we:
Is there an event we could bind to, or a way we could customize the editor template to achieve our desired result, specifically to filter the items in the dropdown without binding to a remote datasource?
Thanks!

Hi guys,
it seems the Drawer Control is broken since a few Kendo Versions in Internet Explorer 11. I am using currently the latest 2020 version of the Kendo controls (v2020.1.114). The bug seems to be introduced somewhere 2019, I assume. For example, version v2019.3.1023 also has this bug.
How to reproduce:
Just click on the Drawer-Icon (to open the Navigation), but nothing happens. This problem only happens in Internet Explorer 11 (Dev Tools: Emulation -> Apple Safari ). In Chrome and Edge it seems to work fine, also on my mobile device (Samsung Galaxy S10).
In older Kendo version (e.g: 2018.1.221) it works fine, but there are other problems which are fixed in the latest 2020 version, so I cannot step back...
Thanks for your help,
Greetings
Hi Guys,
A quick one: I understand the concept of grabbing the grid state via "grid.getOptions", then persisting this, and then applying it again via "grid.setOptions" on form refresh to keep the users' sort/filter/column options, etc between sessions. There are posts and help for this already.
My question is this:
Does it:
cheers
Nick
I am getting "Uncaught Error: Invalid template:" while trying to request the ".cshtml" page which contains the Kendo Grid (Column-Responsive). We used column responsive template in this grid. I am looking for the solution for this error since couple of hours now but I do not able to resolve it. Please have a look at the below response error message along with the HTML Code.
Uncaught Error: Invalid template:'<div class="container-fluid" onclick="window.location='http://dev.newsalesbook.abc.com/Account/AccountDetail?AccountID=#=data.AccountID #&BusinessUnitID=#=data.BusinessUnitID #'"> <div class="row"> <div class="col-xs"> <label style="font-size:17px; color:rgb(5,69,126); font-weight:bold">#=nullString(data.Name)#</label> </div> </div> <div class="row"> <div class="col-xs"> <label class="label-md-bold">Business Unit:</label> </div> <div class="col-xs"> <label class="label-md">#=nullString(data.BusinessUnit)#</label> </div> </div> <div class="row"> <div class="col-xs"> <label class="label-md-bold">Account Type:</label> </div> <div class="col-xs"> <label class="label-md">#=nullString(data.AccountType)#</label> </div> </div> <div class="row"> <div class="col-xs"> <label class="label-md-bold">Account#:</label> </div> <div class="col-xs"> <label class="label-md">#=data.AccountNo#</label> </div> </div> <div class="row"> <div class="col-xs"> <label class="label-md-bold">Parent Account:</label> </div> <div class="col-xs"> <label class="label-md">#=nullString(data.ParentAccount)#</label> </div> </div> <div class="row"> <div class="col-xs"> <label class="label-md-bold">OS#:</label> </div> <div class="col-xs"> <label class="label-md">#=data.OutsideSalesNo#</label> </div> </div> <div class="row"> <div class="col-xs"> <label class="label-md-bold">Outside Sales Name:</label> </div> <div class="col-xs"> <label class="label-md">#=nullString(data.OutsideSalesName)#</label> </div> </div> <div class="row"> <div class="col-xs"> <label class="label-md-bold">IS#:</label> </div> <div class="col-xs"> <label class="label-md">#=data.InsideSalesNo#</label> </div> </div> <div class="row"> <div class="col-xs"> <label class="label-md-bold">IS Name:</label> </div> <div class="col-xs"> <label class="label-md">#=nullString(data.InsideSalesName)#</label> </div> </div> <div class="row"> <div class="col-xs"> <label class="label-md-bold">Date Created:</label> </div> <div class="col-xs"> <label class="label-md">#=formatDate(data.DateCreated)#</label> </div> </div> <div class="row"> <div class="col-xs"> <label class="label-md-bold">Account Owner:</label> </div> <div class="col-xs"> <label class="label-md">#=nullString(data.OwnerName)#</label> </div> </div></div>' Generated code:'var $kendoOutput, $kendoHtmlEncode = kendo.htmlEncode;with(data){$kendoOutput='\n\n <div class="container-fluid" onclick="window.location=\'http://dev.newsalesbook.wesco.com/Account/AccountDetail?AccountID='+(data.AccountID )+'&BusinessUnitID='+(data.BusinessUnitID )+'\'"> \n <div class="row"> \n\n <div class="col-xs">\n <label style="font-size:17px; color:rgb(5,69,126); font-weight:bold">'+(nullString(data.Name))+'</label>\n </div> \n </div> \n\n <div class="row"> \n <div class="col-xs">\n <label class="label-md-bold">Business Unit:</label>\n </div> \n <div class="col-xs">\n <label class="label-md">'+(nullString(data.BusinessUnit))+'</label>\n </div> \n </div> \n\n <div class="row"> \n <div class="col-xs">\n <label class="label-md-bold">Account Type:</label>\n </div> \n <div class="col-xs">\n <label class="label-md">'+(nullString(data.AccountType))+'</label>\n </div> \n </div> \n\n <div class="row"> \n <div class="col-xs">\n <label class="label-md-bold">Account'+$kendoHtmlEncode(</label> </div> <div class="col-xs"> <label class="label-md">)+'=data.AccountNo';</label> </div> </div> <div class="row"> <div class="col-xs"> <label class="label-md-bold">Parent Account:</label> </div> <div class="col-xs"> <label class="label-md">;$kendoOutput+='=nullString(data.ParentAccount)';</label> </div> </div> <div class="row"> <div class="col-xs"> <label class="label-md-bold">OS;$kendoOutput+=':</label>\n </div> \n <div class="col-xs">\n <label class="label-md">'+(data.OutsideSalesNo)+'</label>\n </div> \n </div> \n\n <div class="row"> \n <div class="col-xs">\n <label class="label-md-bold">Outside Sales Name:</label>\n </div> \n <div class="col-xs">\n <label class="label-md">'+(nullString(data.OutsideSalesName))+'</label>\n </div> \n </div> \n\n <div class="row"> \n <div class="col-xs">\n <label class="label-md-bold">IS'+$kendoHtmlEncode(</label> </div> <div class="col-xs"> <label class="label-md">)+'=data.InsideSalesNo';</label> </div> </div> <div class="row"> <div class="col-xs"> <label class="label-md-bold">IS Name:</label> </div> <div class="col-xs"> <label class="label-md">;$kendoOutput+='=nullString(data.InsideSalesName)';</label> </div> </div> <div class="row"> <div class="col-xs"> <label class="label-md-bold">Date Created:</label> </div> <div class="col-xs"> <label class="label-md">;$kendoOutput+='=formatDate(data.DateCreated)';</label> </div> </div> <div class="row"> <div class="col-xs"> <label class="label-md-bold">Account Owner:</label> </div> <div class="col-xs"> <label class="label-md">;$kendoOutput+='=nullString(data.OwnerName)';</label> </div> </div></div>