相关疑难解决方法(0)

在自定义编辑类型字段中添加多个输入元素

有没有办法创建具有多个输入元素的自定义字段?我正在查阅文档并创建单个输入元素非常简单,但我不确定如何添加多个.

有没有人过这个桥?如果是这样,你是怎么做到的?

这是一些示例代码:

...
{name: 'Dimensions', index: 'Dimensions', hidden: true, editable: true, 
edittype: 'custom', editoptions: {custom_element: dimensionsElement, 
custom_value: dimensionsValue}, editrules: {edithidden: true}},
...


function dimensionsElement(value, options) {
    var el = document.createElement("input");
    el.type = "text";
    el.value = value;
    return el;
}

function dimensionsValue(elem) {
    return $(elem).val();
}
Run Code Online (Sandbox Code Playgroud)

editing jqgrid

5
推荐指数
1
解决办法
2万
查看次数

什么是在asp.net-mvc网站上优化我的json的最佳方法

我目前在asp.net mvc网站上使用jqgrid,我们有一个非常慢的网络(内部应用程序),似乎需要花费很长时间来加载(问题是网络以及解析,渲染)

我试图确定如何最小化我发送给客户端的内容,使其尽可能快.

以下是我将控制器操作加载到网格中的简化视图:

     [AcceptVerbs(HttpVerbs.Get)]
     public ActionResult GridData1(GridData args)
     {
        var paginatedData = applications.GridPaginate(args.page ?? 1, args.rows ?? 10,
        i => new
           {
       i.Id,
       Name = "<div class='showDescription' id= '" + i.id+ "'>" + i.Name + "</div>",
       MyValue = GetImageUrl(_map, i.value, "star"),
       ExternalId = string.Format("<a href=\"{0}\" target=\"_blank\">{1}</a>",
       Url.Action("Link", "Order", new { id = i.id }), i.Id),
              i.Target,
              i.Owner,
              EndDate = i.EndDate,
              Updated = "<div class='showView' aitId= '" + i.AitId + "'>" + GetImage(i.EndDateColumn, "star") + "</div>",
                                                      })

        return Json(paginatedData);
     } …
Run Code Online (Sandbox Code Playgroud)

asp.net-mvc optimization performance json jqgrid

3
推荐指数
1
解决办法
2995
查看次数

jqgrid,firefox和css-文本修饰问题

我发布wuth firefox没有显示样式"text-decoration:line-through".

我使用jqGrid显示药物列表.如果药物不活跃,则必须将其交叉.在我的afterInsertRow事件中,我这样做:

$('#' + rowid).css({ 'text-decoration': 'line-through', 'color': 'red' }) 
Run Code Online (Sandbox Code Playgroud)

它适用于IE和Chrome,但Firefox只显示没有交叉线的红色文本.当我查看firebug输出时,我可以看到该元素具有样式定义,包括文本修饰,但它根本不显示我需要的方式.任何帮助表示赞赏.谢谢

firefox styles jqgrid word-wrap

0
推荐指数
1
解决办法
3111
查看次数