kendo-ui

MVC bundeling : Err 403

我的梦境 提交于 2019-12-01 03:04:06
Using VS'12, Asp.net - C# - InternetApplication Template, KendoUI, EF Code First This is my MVC BundleConfig.cs bundles.Add(new ScriptBundle("~/bundles/jquery").Include( "~/Scripts/jquery-{version}.js")); bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/site.css")); // The Kendo CSS bundle bundles.Add(new StyleBundle("~/Content/kendo").Include( "~/Content/kendo/kendo.common.*", "~/Content/kendo/kendo.default.*")); // The Kendo JavaScript bundle// or kendo.all.min.js if you want to use Kendo UI Web and Kendo UI DataViz bundles.Add(new ScriptBundle("~/bundles/kendo").Include( "~

JSON.stringify is ignoring object properties

时光总嘲笑我的痴心妄想 提交于 2019-12-01 02:40:49
See the jsfiddle example http://jsfiddle.net/frigon/H6ssq/ For some reason there are fields that JSON.stringify is ignoring. Is there a way to force JSON.stringify to parse them? As the jsfiddle shows... this code... <script src="http://cdn.kendostatic.com/2012.2.710/js/kendo.all.min.js"></script> <script> var model = kendo.data.Model.define({id: "ID", fields: {"Name":{type: "string"}}}); var obj = new model(); obj.set("Name","Johhny Foosball"); document.write("<br />obj.dirty property exists: "); document.write(obj.dirty); document.write("<br/>obj.uid property exists: "); document.write(obj

How to change the height of Kendo ui Grid

你说的曾经没有我的故事 提交于 2019-12-01 02:03:06
How do I change the height of the Kendo Grid when using wrappers? I assume the method you are looking for is under the Scrollable configuration (it is there because one Grid needs to be scrollable if you want it to have height) .Scrollable(scr=>scr.Height(230)) Muzammil Tamboli To change height dynamically remove htmlattributes: .HtmlAttributes(new { style = "height:600px;" }) Add scrollable with auto: .Scrollable(a => a.Height("auto")) In strongly typed ones use for a rigid fixed height .Scrollable(scrollable => scrollable.Height(100)) In Js after dataSource declaration use $("#Grid")

Inject kendo ui with requirejs

隐身守侯 提交于 2019-12-01 00:39:25
The documentation on kendo ui and requirejs seems to miss some stuff. They tell me how to use kendo.web.min which have everything included: http://www.kendoui.com/blogs/teamblog/posts/13-05-08/requirejs-fundamentals.aspx (search for keyword 'shim') but I am not interested in adding the big 2MB kendo.web.min script, I just want to shim the kendo.grid.min but this file has a dependency to kendo.data.min which again has a dependency to kendo.core.min. How can I tell requirejs to load also kendo.data.min and kendo.core.min before kendo.grid.min is loaded and after jquery has been loaded. I just

Bundle of Kendo UI is not working in IIS

让人想犯罪 __ 提交于 2019-11-30 23:33:10
I am developing an application in ASP.NET MVC 4 using Kendo UI, and the entire application works perfectly by running Visual Studio 2012, but when publishing to the IIS bundle of Kendo is not working, leaving the entire interface unconfigured. Below is the class code BundleConfig and Layout with the call: BundleConfig.cs public class BundleConfig { public static void RegisterBundles(BundleCollection bundles) { bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include( "~/Scripts/jquery.unobtrusive*", "~/Scripts/jquery.validate*")); bundles.Add(new ScriptBundle("~/bundles/kendo").Include( "~

JSON.stringify is ignoring object properties

╄→гoц情女王★ 提交于 2019-11-30 22:26:09
问题 See the jsfiddle example http://jsfiddle.net/frigon/H6ssq/ For some reason there are fields that JSON.stringify is ignoring. Is there a way to force JSON.stringify to parse them? As the jsfiddle shows... this code... <script src="http://cdn.kendostatic.com/2012.2.710/js/kendo.all.min.js"></script> <script> var model = kendo.data.Model.define({id: "ID", fields: {"Name":{type: "string"}}}); var obj = new model(); obj.set("Name","Johhny Foosball"); document.write("<br />obj.dirty property exists

How to change the height of Kendo ui Grid

此生再无相见时 提交于 2019-11-30 22:18:05
问题 How do I change the height of the Kendo Grid when using wrappers? 回答1: I assume the method you are looking for is under the Scrollable configuration (it is there because one Grid needs to be scrollable if you want it to have height) .Scrollable(scr=>scr.Height(230)) 回答2: To change height dynamically remove htmlattributes: .HtmlAttributes(new { style = "height:600px;" }) Add scrollable with auto: .Scrollable(a => a.Height("auto")) 回答3: In strongly typed ones use for a rigid fixed height

Kendo widgets two level deep in Razor, inline markup blocks cannot be nested

馋奶兔 提交于 2019-11-30 21:58:49
I´m trying to implement Kendo widgets two level deep but the Razor engine keeps complaining: "Inline markup blocks (@Content) cannot be nested. Only one level of inline markup is allowed." Is there a way for the Razor engine to render helpers two level deep? My code example: @(Html.Kendo().TabStrip() .Name("tabStrip") .Items(tabstrip => { tabstrip.Add().Text("Strip1") .Selected(true) .Content(@<text> @RenderPanelBar() </text>); tabstrip.Add().Text("Strip2") .Content(@<text> </text>); }) ) @helper RenderPanelBar(){ @(Html.Kendo().PanelBar() .Name("panelBar") .ExpandMode(PanelBarExpandMode

Kendo UI grid - different templates for Edit and Create

自古美人都是妖i 提交于 2019-11-30 21:32:55
We are using Kendo UI grid to display some records. The requirements need us to have a column (Say "File Name")shown as a text box when the user clicks on "Edit". However, when user clicks on the "Create" button in the toolbar, the same column should be replaced with a File Select control which will allow the user to select a file from his machine. The other columns remain the same. I have already tried searching through Stack Overflow as well as the Kendo UI Grid forums, but to no avail. Is there any way to achieve this? Any pointers will be of great help. Regards, Nikhil Petur Subev Using

Kendo-ui MVC PopUp editor: How to hide fields

强颜欢笑 提交于 2019-11-30 20:22:43
I'm using Kendo ASP.NET MVC and I would like to have some control over the edit form. Things I would like to do: Hide my ID field Change my Property Code and Square Feet to regular TextBoxFor fields Change Date of Purchase and Date of Sale to Kendo DatePickerFor instead of the DateTimePickerFor that is showing. Link to screenshot of editor form When you click edit, Kendo uses the default EditorTemplate for the object. If you're not familiar how editor templates work, check this article . You have two ways of solving it, either by creating a custom view editor templates that only lists the