mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-14 11:06:57 +01:00
added support for multiline selection
This commit is contained in:
parent
cb234f14ac
commit
691eb2d909
@ -161,8 +161,10 @@ void TableRenderer::renderProperties(const Table* pTable, const RenderContext& c
|
|||||||
// forbid reordering of columns, otherwise col index will not match the col index at the server
|
// forbid reordering of columns, otherwise col index will not match the col index at the server
|
||||||
// sorting is allowed though, i.e row matching is active
|
// sorting is allowed though, i.e row matching is active
|
||||||
ostr << ",clicksToEdit:1,stripeRows:true,enableColumnHide:false,enableColumnMove:false,loadMask:true";
|
ostr << ",clicksToEdit:1,stripeRows:true,enableColumnHide:false,enableColumnMove:false,loadMask:true";
|
||||||
if (pTable->getSelectionModel() == Table::SM_ROW)
|
if (pTable->getSelectionModel() == Table::SM_SINGLEROW)
|
||||||
ostr << ",selModel:new Ext.grid.RowSelectionModel()";
|
ostr << ",selModel:new Ext.grid.RowSelectionModel({singleSelect:true})";
|
||||||
|
else if (pTable->getSelectionModel() == Table::SM_MULTIROW)
|
||||||
|
ostr << ",selModel:new Ext.grid.RowSelectionModel({singleSelect:false})";
|
||||||
if (pTable->getWidth() > 0)
|
if (pTable->getWidth() > 0)
|
||||||
ostr << ",width:" << pTable->getWidth();
|
ostr << ",width:" << pTable->getWidth();
|
||||||
if (pTable->getHeight() > 0)
|
if (pTable->getHeight() > 0)
|
||||||
|
@ -107,7 +107,8 @@ public:
|
|||||||
/// The selection model used for the table
|
/// The selection model used for the table
|
||||||
{
|
{
|
||||||
SM_CELL = 0,
|
SM_CELL = 0,
|
||||||
SM_ROW
|
SM_SINGLEROW,
|
||||||
|
SM_MULTIROW
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user