问题标签 [dojox.grid.datagrid]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
dojo - dojo 增强网格的自由文本搜索框
是否可以在 dojo 增强网格顶部有一个自由文本搜索框,我可以输入文本并立即过滤掉不包含文本的行?
我知道过滤器插件,这不是我喜欢的。
非常感谢!
dojo - Dojox DataGrid:仅通过复选框实现行选择
如教程中所示,我使用 CheckboxSelector 创建了一个 DOJO 1.6 DataGrid。现在,如果单击行,我想禁用行的 onSelectionChanged 事件。仅当单击复选框时才应触发此事件。
怎样才能做到这一点?有没有我错过的构造函数属性?
dojox.grid.datagrid - dojo DataGrid with JsonRestSore and Zend Framework
I am trying to show some json data retrieved from a REST server (implemented in Zend Framework) in a datagrid. Problem is that the data grid just shows "Loading..." and nothing more happens. In Firebug Lite, I can see the GET request performed and the response is ok. Still the data is not rendered in the data grid, very confusing.
Basically, I have copy'n'pasted this code from "Connecting a Store to a DataGrid" and just replaced the target url and structure to suite my REST api.
I am using Dojo 1.7.2 and Zend Framework 1.11.11
this is my index.phtml file.
The GET request done by the JsonRestStore as it appears in Firebug Lite:
This is the JSON data as a result of the GET request
dojo - Dojo EnhancedGrid:如何获取选定列的索引?
如果我单击dojo 增强网格的列标题,则整个列被选中。我想知道此类选定列的列索引。
提前感谢您的帮助。
javascript - DataGrid内Button的onClick事件
这是我的数据网格:
我formatter
的 Actions 单元格对象:
我正在尝试访问将由onRowClick
DataGrid 上的正常事件传递的事件对象。就目前而言,这有点工作,但是在on("RowClick"...)
块上我得到了多个日志。如果没有该try...catch
块,我会收到一个错误,因为 rowIndex 不存在e
,然后还有 2 个日志存在。
这是我包含 pub/sub、emit() 等的第 4 个左右的想法。我感觉多个日志是由冒泡行为(按钮 -> 行 -> 数据网格等)引起的,但是得到将 onRowClick 的事件对象传递给在格式化程序中创建的按钮似乎是不可能的。
我只想从 Button 小部件的onClick
事件中访问 rowIndex (和其他 DataGrid-esque 属性)以根据按下的按钮进行处理。
datagrid - Dojo Datagrid - 以编程方式设置选定行的样式
是否可以以编程方式设置 Datagrid 的选定行的样式?
任何人都可以提供一个片段吗?
json - 如何将按钮或图像添加到道场网格
我有一个带有 json 数据存储的 dojo 网格(mysql 结果集转换为 json 格式)。目前我的网格显示 5 列,如下图所示:
我有名为“操作”的列。此“操作”列下的行应包含带有超链接的按钮或图像(编辑图标、删除图标),例如用于编辑的 edit.php?id=1 或用于删除的 delete.php?id=1。这是我的道场网格代码:
我的 json 数据格式是
我该怎么做?请给我一些想法
dojo - 如何让网格内的文本框小部件工作属性?
我使用格式化程序在网格单元格中放置了一个文本框小部件。但是,我无法移动光标,也无法在文本框中选择文本。
例如 http://jsfiddle.net/g33m9/69/
有谁知道如何解决这一问题?
谢谢
dojo - 如何以声明方式右对齐 Dojo 数据网格中的列
我有一个使用 html 以声明方式创建的 Dojo 数据网格。我需要右对齐一列。我尝试了以下两种方法,我无法让它工作
试试 1
在下面的例子中,他align="right"
被忽略了,但是width="100px"
被添加到每个<td>
元素的样式中
试试 2
在下面的例子style="text-align:right;"
中似乎完全被dojo忽略了
rest - 如何使用基于 wink 的 REST API 对 dojox.grid.DataGrid 进行排序?
我正在使用 Dojo 数据网格客户端,它运行良好,根据文档,它在单击列标题时生成以下 GET 请求:
问题是我无法使用 Apache Wink 框架在服务器端解释查询参数“sort(+isbn)”,因为没有为它设置值。例如,我希望得到类似“sort=+isbn”的东西。
这是我的服务器端代码:
由于“sort(+isbn)”没有分配任何值,它似乎是一个无效的查询参数。不知道为什么 Dojo 数据网格使用这个约定。
希望获得有关如何在 Java 端解决此问题的帮助,最好使用 Wink 或其他机制来处理 GET 请求。