在dhtmlxGrid中组合(Combo in dhtmlxGrid)
如何在dhtmlxGrid中设置组合?
我做了类似下面的事情,当我在dblclick上单元格时,我无法看到组合。 我初始化了一个dhtmlxwindow并附加了1c布局。 然后将网格附加到单元格a。
var dhxWindow = new dhtmlxWindow(); var popupWin = dhxWindow.createWindow('winName', xPos, yPos, width, hieght); popupWin.setText(winTitle); popupWin.setModal(true); popupWin.denyPark(); popupWin.denyResize(); popupWin.show(); popupWin.centerOnScreen(); var layout = popupWin.attachLayout('1C'); var mygrid = layout.cells('a').attachGrid(); mygrid.loadXML('grid.jsp'); And my jsp: <%@page contentType="text/xml" pageEncoding="UTF-8"%> <rows> <head> <column width="50" type="ed" align="right" color="white" sort="str">Sales</column> <column width="80" type="co" align="left" sort="str">Shipping <option value="1">1 Day</option> <option value="7">1 Week</option> </column> </head> <row> <cell></cell> <cell></cell> </row> </rows>
How can i set a combo in dhtmlxGrid?
I did something like below, still when i dblclick on cell i am unable to see the combo. i have initialized a dhtmlxwindow and attached a 1c layout. Then attached a grid to cell a.
var dhxWindow = new dhtmlxWindow(); var popupWin = dhxWindow.createWindow('winName', xPos, yPos, width, hieght); popupWin.setText(winTitle); popupWin.setModal(true); popupWin.denyPark(); popupWin.denyResize(); popupWin.show(); popupWin.centerOnScreen(); var layout = popupWin.attachLayout('1C'); var mygrid = layout.cells('a').attachGrid(); mygrid.loadXML('grid.jsp'); And my jsp: <%@page contentType="text/xml" pageEncoding="UTF-8"%> <rows> <head> <column width="50" type="ed" align="right" color="white" sort="str">Sales</column> <column width="80" type="co" align="left" sort="str">Shipping <option value="1">1 Day</option> <option value="7">1 Week</option> </column> </head> <row> <cell></cell> <cell></cell> </row> </rows>
原文:https://stackoverflow.com/questions/18979819
更新时间:2022-06-16 09:06
相关问答
更多-
如果您不介意在代码中引入新库, node-async可以解决您的问题。 使用node-async,您的代码将是: var async = require('node-async') exports.createProperty = function(req,res,next) { var listingData = req.body; listingData.User = []; async.each(listingData.User, function(n, key) { ...
-
for (int i = 0; i < alarmObjectsArray.size(); ++i/*I'm an old-fashioned cat*/){将索引数组中的每个元素。 ( i将从0开始,完成并包括一个小于数组大小的值)。 删掉-1个词。 为避免疑问,Java数组从零开始 。 Java不是你知道的Fortran。 最后, < size()比等效的<= size() - 1更惯用。 如果size()是无符号类型 - 通常是 - 并且碰巧为零,那么更大的size() - 1可以在C ++中产生纯粹 ...
-
您可以将行数乘以行的大小: var arr = [ "One", "Two", "Three", "Four", "Five", "Six", "Seven" ]; const rowSize = 4; for (row = 0; row < arr.length / rowSize; row++) { const startingIdx = row * rowSize; for (col = startingIdx; col < arr.length && col ...
-
所以你真正的问题是你在类中定义覆盖时使用了一个可变的非final的变量。 因此,如果您修改代码看起来像以下一样: for(imgbt=0; imgbt<5; imgbt++){ public final someInteger = imgbt; img [imgbt].setOnClickListener( new View.OnClickListener() { @Override public void ...
-
你应该在外面初始化它: public ArrayList
poli(){ ArrayList policy = new ArrayList (); while(row < 51 ){ int r = row; while(column < 1){ policy.add(r); policy.add(0); ... -
事实证明,在我的docu_controller.php中,我错过了一个create()调用。 似乎没有创建,当另一个控制器执行commit()时,仍然可以保存/创建对象。 所以在添加create()之前,在提交之前,在以后的循环迭代中,我仍然在修改原始对象,而不是任何新对象。 通过在控制器中添加create,方法函数中的save对每个循环迭代的新用户起作用。 在控制器中: if(count($badAuthors)){ foreach($badAuthors as $key => $author){ ...
-
当你要求提示(而不是代码)时,这里是: 对于多个测验,请使用do-while ,如下所示: do{ //do something //scan the value of quiz quest //do something }while(quizquest != 0) 现在,如果只检查偶数位置的答案,请执行以下操作: for (int i =0; i为什么让生活如此复杂? 使用OR作为主键,下面是一个简单的数组数组: $conditions = array( 'OR' => array( array('Book.book_title LIKE' => '%term1%'), array('Book.book_title LIKE' => '%term2%'), ... ) ) 嵌套数组是避免重用相同数组键(在PHP中不起作用)所必需的。 如果它来自分解的搜索查询字词,请使用foreach ...
如何创建带循环的数组(How to create array with loop for)[2022-04-26]
您必须首先初始化数组,然后在那里推送值 let numericArray: number[] = []; for (let y of x.FACET){ numericArray.push(y["@KEY"])); } 一线解决方案: let numericArray: number[] = x.FACET.map(v => parseInt(v["@KEY"])); 要对x.FACET数组进行排序,您可以执行以下操作: x.FACET.sort((a: any, b: any) ...相关文章
更多- 关于dhtmlxgrid的初级问题。
- jqgrid 中组合框的值和key
- 求帮忙,java中关于数组的组合
- Hadoop中的排序器/组合器/合并器
- UML类图中的关联、聚合、组合
- JAVA设计模式学习10——组合模式
- 怎么把2个数组里面相同的元素组合成一个新的数组
- UML 继承、实现、依赖、关联、聚合、组合的联系与区别
- 一天一道算法题--6.17--组合问题
- 用‘button’跟‘text’组合代替‘file’,选择文件后点‘submit’,‘file’的值被清空
最新问答
更多- 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
- 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
- OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
- 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
- codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
- 在计算机拍照在哪里进入
- 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
- No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
- 单页应用程序:页面重新加载(Single Page Application: page reload)
- 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
- System.StackOverflow错误(System.StackOverflow error)
- KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
- 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
- android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
- TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
- 企业安全培训的各项内容
- 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
- C#类名中允许哪些字符?(What characters are allowed in C# class name?)
- NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
- 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
- 将多个行和可变行移动到列(moving multiple and variable rows to columns)
- 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
- 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
- Angular $资源不会改变方法(Angular $resource doesn't change method)
- 在Angular 5中不是一个函数(is not a function in Angular 5)
- 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
- 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
- 常见的python rpc和cli接口(Common python rpc and cli interface)
- Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
- 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)