Bundling the Kendo js files in an ASP.NET MVC application throws a NullReferenceException error. Reproduced with versions 2024.1.319 and 2024.2.514. The bundling works without exceptions in version 2023.3.1114.
bundles.Add(new ScriptBundle("~/bundles/kendo").Include(
"~/Scripts/kendo/2024.2.514/kendo.web.min.js",
"~/Scripts/kendo/2024.2.514/kendo.aspnetmvc.min.js"
));
Instead of kendo.web.min.js you can use kendo.all.min.js with the same result.
@Scripts.Render("~/bundles/kendo")
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Workaround:
Use bundles.Add(new Bundle("~/bundles/kendo") instead of bundles.Add(new ScriptBundle("~/bundles/kendo")
No exception is thrown when bundling the Kendo script files.
For R# action annotations details please check the following link - http://blogs.jetbrains.com/dotnet/2011/12/providing-intellisense-navigation-and-more-for-custom-helpers-in-aspnet-mvc/ And regarding additional actions for url builders - usually I have the action which provides the data for the grids in the same controller so I would prefer to write "... .Read(read => read.Action("LoadSitesData", new { id = Model.StudyId })" instead of "... .Read(read => read.Action("LoadSitesData", "StudySitesAdministration", new { id = Model.StudyId })"
Hello,
Request/suggestion to enhance the scheduling functionality. For production environments, especially with long running processes the current setup is not sufficient.
See excel for an example of how this could work. Extension of current timeline to include a year. Would be best if multiple timelines could be defined creating more or less detail depending on choices.
The other axis to relate to the resource/asset where the work will take place.
Currently the scheduler works best for short-running activities. Displaying longer running activities is a challenge.
I've downloded a free Kendo UI Trial. Unfortunately there aren't StockData.mdf in Template project. Can you fix this issue? I'm choosing component base for our company and it realy prevents me.
Sometimes it is necessary to be able to define certain fields as editable during and edit but not create or vice versa. So, we should have the option to not show some of the model fields during edit and possibly not show a different set of fields during create.
When using Html.Kendo().DeferredScripts() possibly bundle all the controls initialization in one single jQuery initialization function, instead of a call for each of the deferred controls.
Given the release of ASP.NET and Web Tools 2012.2, is it possible to create custom project templates. It will be extremely nice if we can get editor intelligence with kendoui widgets when using plain JS, specially with the template engine. Some simple examples about this can be found at the end of thhis article. http://www.hanselman.com/blog/ReleasedASPNETAndWebTools20122InContext.aspx
Make it possible to use custom names for the unit test and OpenAccess projects while creating a new Kendo UI for MVC project.
The Kendo UI for MVC project template creates a blank test project. It would be nice if it had default code generated like the standard MVC project templates do.
I need configure in my Razor View, with my Multiselect helper, the maxselectedItems property (like others properties: MinLength, Filter,etc)
Many widgets offer functionality to define a template (header, row, toolbar or whatever) by an id, such a way that the id refers to a html section that actually contains the template like: <script id="idOfSomeTemplate" type="text/x-kendo-template"> <!-- template contents --> </script> I use this a lot because it's easy to use and whenever the widget is part of another widget (common example: a grid part of a tabstrip) Razor /C# won't allow you to do nested inline markup blocks (@<text> </text>). With the above template it's possible to define the tempalte outside the nested inline block. Now it seems the MVC wrappers don't have the possiblity to do this for the grid toolbar template. TLDR: I would have expected this templateid method: @(Html..Kendo().Grid<T>() .Name("Grid") .ToolBar(toolbar => { toolbar.TemplateId("idOfSomeTemplate") }) )
In Kendo MVC Grid, the column of type Select() will be good if has an option to show/hide the checkbox in specific rows based on an expression. For example: .Columns(columns => { columns.Select().Visible(m => m.ShowSelect); }) Where "ShowSelect" is a property of my Model which is bound to the Grid.
With the current version available from the DLL it will be possible to simplify bundling and include of CSS and JS files. I currently do something along the lines of //BundleConfig.cs var version = typeof(Kendo.Mvc.UrlGenerator).Assembly.GetName().Version; var kendoVersion = string.Format("{0}.{1}.{2}", version.Major, version.Minor, version.Build); bundles.Add(new StyleBundle("~/Content/kendo/"+kendoVersion+"/css").Include( "~/Content/kendo/"+kendoVersion+"/kendo.common.min.css", "~/Content/kendo/"+kendoVersion+"/kendo.default.min.css" )); bundles.Add(new ScriptBundle("~/Scripts/kendo/" + kendoVersion +"/scripts").Include( "~/Scripts/kendo/" + kendoVersion + "/kendo.all.min.js", "~/Scripts/kendo/" + kendoVersion + "/kendo.aspnetmvc.min.js", "~/Scripts/kendo/" + kendoVersion + "/cultures/kendo.culture.en-GB.min.js" )); And similarly in the views. Getting the version directly from the DLL without hacking around in Assembly.GetName.Version and string manipulation will make this clearer. I'd also suggest you update the documentation to reflect this pattern. As its a new method/getter, it is not a breaking change.
support odata v4
Just like RadRibbonBar - Telerik ASP.NET AJAX RibbonBar, populating it from xml. We need similar control for MVC. If similar solution exists can you provide me with some examples. Thank you
Make the TreeList wrappers support the same functionality as the Kendo UI TreeList. Make the method Height support also string values
As a suggestion for future development, make Kendo compatible with RazorGenerator.Mvc per this link: http://blog.mirajavora.com/re-use-mvc-views-across-projects-with-razor-generator
Please add support for the following: 1. Out of the box support for ComboBox grid column which supports nullable values. Currently you have to set a default value for a column which utilizes an editor template using a combobox, otherwise changes to that combox are not captured. The example provided here,https://www.telerik.com/support/code-library/binding-nullable-field-to-dropdownlist-editor-in-grid, works, however, once a change is made the combobox text is set to the value which renders the control ambiguous to the end user. 2.Similarly, there is an issue that occurs when using Server Filtering for comboboxes where the Id is returned but then the combo box text is set to the ID. I really appreciate the Grid and Combobox features and use them in all of my projects, but these two issues have cost me hours and countless headaches trying to come up with workarounds for things that should work out of the box. Thanks
I want to load a particular ViewModel into a treeview but using the MVC wrappers does not allow for setting what field will be the Id, and the hasChildren property. The model information can be set via the JavaScript configuration though. It would also be nice to mark additional data on the model that should be sent to the Read action along with the Id from my item.