mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 18:45:10 +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
|
||||
// sorting is allowed though, i.e row matching is active
|
||||
ostr << ",clicksToEdit:1,stripeRows:true,enableColumnHide:false,enableColumnMove:false,loadMask:true";
|
||||
if (pTable->getSelectionModel() == Table::SM_ROW)
|
||||
ostr << ",selModel:new Ext.grid.RowSelectionModel()";
|
||||
if (pTable->getSelectionModel() == Table::SM_SINGLEROW)
|
||||
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)
|
||||
ostr << ",width:" << pTable->getWidth();
|
||||
if (pTable->getHeight() > 0)
|
||||
|
@ -107,7 +107,8 @@ public:
|
||||
/// The selection model used for the table
|
||||
{
|
||||
SM_CELL = 0,
|
||||
SM_ROW
|
||||
SM_SINGLEROW,
|
||||
SM_MULTIROW
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user