afterrender:function(){
var hostId = Ext.getCmp("vCpu_numa_host_id").getValue();
var nodeName = Ext.getCmp("vCpu_numa_node_id").getValue();
ajaxRequest({
url: getContextPath() + '/load.action',
params : {'id': hostId, 'nodeName': nodeName},
async: '1',
loadMastTarget: Ext.getBody(),
complete : function(hCpuList)
{
if (hCpuList)
{
Ext.getCmp('vCpu_numa_bind_id').getColumnModel().setRenderer(1,function(value, cellmeta, record) {
if (hCpuList == undefined || hCpuList == '')
{
return "<select id='numaCore_"+record.get("vmCPU") + "' disabled='disabled' >"
+"<option value='-1' selected = 'selected'>" + platform_common_select + "</option></select>"
}
else
{
var temp = '';
for (var i = 0; i < hCpuList.length; i++)
{
var pt = hCpuList[i].id;
var ptname = hCpuList[i].value;
temp = temp + '<option value=\'' + pt + '\'>' + ptname + '</option>';
}
return "<select id='numaCore_"+record.get("vmCPU") + "' >"
+ "<option value='-1' selected = 'selected'>" + platform_common_select + "</option>"
+ temp + "</select>"
}
});
}
}
});
}
select: function(group, value)
{
var hostId = Ext.getCmp("vCpu_numa_host_id").getValue();
var nodeName = Ext.getCmp("vCpu_numa_node_id").getValue();
ajaxRequest({
url: getContextPath() + '/load.action',
params : {'id': hostId, 'nodeName': nodeName},
async: '1',
loadMastTarget: Ext.getBody(),
complete : function(hCpuList)
{
if (hCpuList)
{
for(var i = 0; i < cpuNum; i++)
{
var str = '';
if (hCpuList == undefined || hCpuList == '')
{
str = "<select id='numaCore_"+i + "' disabled='disabled' >"
+"<option value='-1' selected = 'selected'>" + platform_common_select + "</option></select>"
}
else
{
var temp = '';
for (var j = 0; j < hCpuList.length; j++)
{
var pt = hCpuList[j].id;
var ptname = hCpuList[j].value;
temp = temp + '<option value=\'' + pt + '\'>' + ptname + '</option>';
}
str = "<select id='numaCore_"+i + "' >"
+ "<option value='-1' selected = 'selected'>" + platform_common_select + "</option>"
+ temp + "</select>"
}
var dom = document.getElementById("numaCore_" + i);
dom.innerHTML = str;
}
}
}
});
}
https://www.cnblogs.com/xdp-gacl/p/3938361.html
https://my.oschina.net/vernon/blog/363693
分享到:
相关推荐
Ext GridPanel 中实现加链接操作 Ext GridPanel 中实现加链接操作 Ext GridPanel 中实现加链接操作
将页面的GridPanel中的数据导出到Excel中 测试Ext:版本2.2.1 支持GridSummary,GroupSummary和GroupHeaderPlugin插件 使用方法: 1)把三个JS文件引入到页面中 2)调用例句: var data2Excel = new Ext.icss.Data2...
EXT GridPanel获取某一单元格的值
EXT实例GridPanel. 实现简单的。
Ext的gridpanel控件二次加载时丢失解决方案
对于GridPanel中拖动选中行排序的实现,网上有不少ExtJs实现的例子,但是没有找到使用Ext.net实现的,正好最近有个需求要使用,干脆来写一个。 DEMO功能说明: 1、拖动GridPanel选中行到新位置排序。 2、在拖动结束...
Ext GridPanel加载完数据后进行操作,比如load数据之后选定某些行数据,下面有个示例,需要的朋友可以参考下
该例子实现了ext的gridpanel多层表头+分组+小计以及与Java后台交互的全代码。还有自适应浏览器大小的功能包括导出excel,里面有注释,可能注释不全。分别为group.jsp,totals.jsp页面。
NULL 博文链接:https://shenhaiquan.iteye.com/blog/1474328
Ext.grid.GridPanel 删除线 放到example文件夹下运行
tapestry4.02中封装ext的GridPanel组件
使用ext.net代码动态创建gridpanel后任意显示在各种窗口中
ext.net gridpanel 弹出窗
NULL 博文链接:https://wv1124.iteye.com/blog/741559
Ext.grid.GridPanel属性祥解, 表格部门的详解,通俗易懂,适合初学人员,以及想对GridPanel有个精析认识的Web开发人员
Ext.grid.ColumnModel显示不正常
EXT中三种方法实现在DataGrid上显示toolTip
Ext grid panel 滚动条位置不变,适用于实时数据的刷新
NULL 博文链接:https://aa00aa00.iteye.com/blog/564647
Ext修改GridPanel数据和字体颜色等,不是单指EditGridPanel 首先获取选中的行(当然也可以获取单元格): 代码如下: var selectedRow = grid.getSelectionModel().getSelected(); 修改设置: 代码如下: selectedRow....