0
Im使用jqwidjets jqxgrif为我的项目之一。 在网格中,我想选择一行并在另一个页面(href链接)中编辑它,在网格外部编辑链接。jqxgrid行选择鼠标点击或工作
目前我使用下面的代码行select.but它只适用于键盘导航不适用于鼠标select.how我启用鼠标选择并将行索引传递到外部编辑链接onclick事件。
$("#jqxgrid").jqxGrid(
{ width : '100%',
source: dataadapter,
selectionmode: 'singlerow',
altrows: true,
theme: theme,
filterable: true,
autoheight: true,
pageable: true,
columnsresize: true,
//virtualmode: true,
pagesizeoptions: ['10', '15', '20'],
pagesize:20,
sortable: true,
ready: function() {
//$("#jqxgrid").jqxGrid('sortby', 'ObjectId', 'asc');
//$("#jqxgrid").jqxGrid('selectionmode', 'singlerow');
$("#jqxgrid").jqxGrid('selectrow', 0);
},
rendergridrows: function() {
return dataadapter.records;
},
columns: [
我不知道谁的名字这个框架“jqwidjets jqxgrif” ......听起来像猫走在键盘打字随机给我。 – Raptor
:)框架是jqwidgets,组件是jqxgrid :)在帖子中有一个错字。 – scripto