Tag: telerik

在IE8浏览器中不支持IndexOf

我在我的应用程序中有级联下拉列表,使用jquery级联,现在我的问题是它与IE9,Firefox,Opera和Safari一起工作顺利,但不能与IE7,IE8等任何浏览器一起使用。 我浏览了问题并发现错误是由于我的jquery代码中的indexOf,我通过删除indexOf尝试了它,但它仍然给出了相同的错误.. 注意:在telerik脚本中是否有任何解决方法可以删除indexOf,因为我只能在其脚本中找到indexOf。 以下是代码: function OnClientSelectedIndexChanged(sender, eventArgs) { var senderId = sender.get_id().toString(); var uniqueName = senderId.substring(senderId.lastIndexOf(‘_’), senderId.length); if(senderId.indexOf(“drpdwnCondition”) > 0) { return false; } var selectedItem = eventArgs.get_item(); var selectedValue = selectedItem.get_value().split(‘_’); $.ajax({ type: “POST”, async: true, url: “/SalesRepresentativeMonitoring.aspx/GetData”, contentType: “application/json; charset=utf-8”, data: “{value:” + JSON.stringify(selectedValue[1]) + “}”, dataType: “json”, success: function (msg) { var […]

MVC-3 / jQuery:停止validation我的复选框

我有MVC-3用户控件(html帮助器和aspx视图引擎)。 一些如何在我提交表单jQuery un-obtrusivevalidation时启动并要求我检查所有复选框。 我该如何预防呢? 更多信息: 1)我的模型中没有必需的属性。 2)我在telerik gridview中使用此复选框 namespace Alpha.Views { public class AlphaCheckBoxControl : ViewUserControl { } public class AlphaCheckBox { public bool isChecked; public string name { get; set; } public MvcHtmlString labelText; public bool readOnly; public bool visible { get; set; } public IDictionary htmlAttributes() { var dict = new Dictionary(); if […]

未捕获的TypeError:无法在Grid中读取未定义的属性’replace’

我是使用Kendo Grid和Kendo UI的新手。 我的问题是如何解决此错误 Uncaught TypeError: Cannot read property ‘replace’ of undefined 这是我在KendoGrid上的代码 $(“#Grid”).kendoGrid({ scrollable: false, sortable: true, pageable: { refresh: true, pageSizes: true }, dataSource: { transport: { read: { url: ‘/Info/InfoList?search=’ + search, dataType: “json”, type: “POST” } }, pageSize: 10 }, rowTemplate: kendo.template($(“#rowTemplate”).html().replace(‘k-alt’, ”)), altRowTemplate: kendo.template($(“#rowTemplate”).html()) }); 导致错误的行 rowTemplate: kendo.template($(“#rowTemplate”).html().replace(‘k-alt’, ”)), rowTemplate的HTML […]