Azure PlatForm中的Kendo问题 [英] Kendo Issues in Azure PlatForm

查看:59
本文介绍了Azure PlatForm中的Kendo问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在azure中托管基于剑道的MVC 4解决方案但是我在天蓝网络角色中使用剑道时遇到了很多错误。请问您可以建议我如何操作和应该在Azure中使用的DLL

I'm trying to host Kendo based MVC 4 solution in azure but i'm getting hell lot error with kendo in azure web role. Pls can you suggest me how to do and DLL that should be used in Azure

推荐答案

@model List<Logstar.Model.SysAdmin.Admin.GMCountry>
@(Html.Kendo().Grid(Model)
        .Name("GridDMGeo")
    .Columns(columns =>
    {     
        columns.Bound(p => p.CountryId).Width(70).Title("CountryIdEncode").Column.Visible = false;
        //columns.Bound(p => p.CountryCode).ClientTemplate(@Html.ActionLink("#=CountryCode#", "", new { }, new { CountryId = "#=CountryId#", @class = "popupLink" }).ToHtmlString()).HeaderTemplate("<b>Date Since</b>").Width(95);
        columns.Bound(p => p.CountryCode).ClientTemplate(@Html.ActionLink("#=CountryCode#", "ViewCountry", new { CountryIdEncode = ("#=CountryIdEncode#") }).ToHtmlString()).HeaderTemplate("Country Code").Width(70);
        columns.Bound(p => p.CountryName).Width(70).Title("Country Name");
        columns.Bound(p => p.CrtDate).Width(70).Title("Updated On");
        columns.Bound(p => p.CrtBy).Width(70).Title("Updated By");
       
    })
    .Pageable()
    .Sortable() 
    .DataSource(dataSource => dataSource
        .Ajax()
        .ServerOperation(false)
    )
)





我的控制器:





My Controller:

public ActionResult ViewCountryList()
       {




ClsCountry objClsCountry = new ClsCountry();
            ViewBag.Encode = new Func<string, string>(LogstarSecurity.Encode);







return View("GMCountryWL", objClsCountry.GetGMCountry(0));

}



这非常适用于非Azure,但我面临剑道问题



}

This Works perfectly in Non-Azure but i'm facing issues in Kendo

For Kendo Grid: Error is ::Index must be within the bounds of the List.Parameter name: index

For Kendo AutoComplete ::Entry point was not found.


这篇关于Azure PlatForm中的Kendo问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆