diff --git a/WebWidgets/ExtJS/src/TableRenderer.cpp b/WebWidgets/ExtJS/src/TableRenderer.cpp index f6b0ab7ed..63b5f25a5 100644 --- a/WebWidgets/ExtJS/src/TableRenderer.cpp +++ b/WebWidgets/ExtJS/src/TableRenderer.cpp @@ -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) diff --git a/WebWidgets/include/Poco/WebWidgets/Table.h b/WebWidgets/include/Poco/WebWidgets/Table.h index 4f87ab17d..20390b9de 100644 --- a/WebWidgets/include/Poco/WebWidgets/Table.h +++ b/WebWidgets/include/Poco/WebWidgets/Table.h @@ -107,7 +107,8 @@ public: /// The selection model used for the table { SM_CELL = 0, - SM_ROW + SM_SINGLEROW, + SM_MULTIROW };