简体   繁体   English

是否有 jqx 渲染功能的替代方案 - $gridContainer.jqxGrid('render')

[英]Is there alternative available to jqx render capability - $gridContainer.jqxGrid('render')

We are using jqxGrid library from jqwidgets .我们正在使用来自jqwidgets的 jqxGrid 库。 In this I am using jqxDropDownList for displaying list created from json data and upon selecting a value from dropdown filtering should happen.在此,我使用jqxDropDownList来显示从 json 数据创建的列表,并且在从下拉过滤中选择一个值时应该发生。

We had some UI issues hence we had to remove below line, now I would like to know is there alternative available for below code:我们遇到了一些 UI 问题,因此我们必须删除下面的行,现在我想知道下面的代码是否有替代方案:

code:代码:

$gridContainer.jqxGrid('render')

if you want to update two-way data then you should used observableArray()如果你想更新双向数据,那么你应该使用observableArray()

here check the demo code jqx observable array这里查看演示代码jqx observable array

var observableArray = new $.jqx.observableArray(
[{name: "Andrew Smith"},
 {name: "Gordon Brown"}], 
function(changes)
{
    // handle changes here.
});

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM