added support for multiline selection

This commit is contained in:
Peter Schojer 2008-06-04 10:42:53 +00:00
parent cb234f14ac
commit 691eb2d909
2 changed files with 6 additions and 3 deletions

View File

@ -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)

View File

@ -107,7 +107,8 @@ public:
/// The selection model used for the table
{
SM_CELL = 0,
SM_ROW
SM_SINGLEROW,
SM_MULTIROW
};