It is not expected that all properties are populated. Instead, the property populated will be a function
of the hookPoint attribute set in the menu options.
The second method available is called unbind(menu) which unbinds a previously bound menu.
Here is a quick example of adding a menu such that when a row is context click, a menu appears:
var menu = new Menu(); // Instance of dijit/Menu
menu.addChild(new MenuItem({label: "test1"}));
grid.menu.bind(menu, {hookPoint: "row"});
See also:
• Menus
gridx/modules/PaginationBar
This module shows the paging controls through the table. It uses additional modules include
gridx/support/Summary, gridx/support/LinkPager,
gridx/support/LinkSizer and gridx/support/GotoPageButton.
To achieve the same effect using gridx/modules/Bar, we can define the barBottom as:
barBottom:
[
SupportSummary,
SupportLinkPager,
{
pluginClass: SupportLinkSizer,
style: "text-align: right;"
},
SupportGotoPageButton
]
gridx/modules/RowHeader
Add a header in front (to the left off) of each row in the grid:
This module is typically used by the gridx/modules/IndirectSelect module.
See also:
• gridx/modules/IndirectSelect
gridx/modules/select/Row
Adding this module allows a row to be selected. It is suggested that the AMD alias be
"SelectRow". After adding this module, the grid.select.row object will be found.
We can attach a handler to the selection such as:
grid.connect(grid.select.row, 'onSelected', function(row, rowId) {
debugger;
});
Page 185
Comentários a estes Manuais