added autoedit table

This commit is contained in:
Peter Schojer
2008-07-22 10:19:17 +00:00
parent 53f989634b
commit 99de517757
5 changed files with 153 additions and 1 deletions

View File

@@ -94,8 +94,14 @@ void TableRenderer::renderHead(const Renderable* pRenderable, const RenderContex
if ((*it) && (*it)->getCell())
editable |= (*it)->isEditable();
}
if (editable)
ostr << "new Ext.grid.EditorGridPanel({";
{
if (pTable->autoEdit())
ostr << "new Ext.grid.AppinfTable({autoEdit:true,";
else
ostr << "new Ext.grid.EditorGridPanel({";
}
else
ostr << "new Ext.grid.GridPanel({";

View File

@@ -147,6 +147,7 @@ void Utility::initialize(ResourceManager::Ptr ptr, const Poco::Path& extJSDir)
#else
ptr->appendJSInclude(Poco::Path(aDir, "ext-all.js"));
#endif
ptr->appendJSInclude(Poco::Path(aDir, "AppinfTable.js"));
ptr->appendJSInclude(Poco::Path(aDir, "DDView.js"));
ptr->appendJSInclude(Poco::Path(aDir, "Multiselect.js"));