QtitanDataGridModel-view DataGrid component with rich functionality for Qt.C++ and PySideQtitanRibbonReplicates Microsoft RibbonUI interface for Qt.C++ and PySideQtitanNavigationDesignUIReplicates Microsoft Navigation Design interface for Qt.C++ and PySideQtitanChartCharts and Diagrams component for Qt.C++ and PySideQtitanDockingDockable Panels and Tool Bars for Qt.C++ and PySideQtitanFastInfosetXML Compressed format FastInfoset implementation for Qt.C++ and PySideRoadmap Development 2023
FireDataGridPowerful, modern, fast, DB-Aware Grid for Delphi-FiremonkeyFireDockingDelphi IDE/Visual Studio implementation of dock panels for Delphi-Firemonkey
How to setting programmatically different filters to a Qtitan::Grid::TableView column?
In the documentation there is only a filter descriptions end-user side.
thanks
I apologize for the delay. We are currently working on porting QtitanDataGrid (and other components) to Qt5 and doing a pilot Grid project for Firemonkey (Delphi).
Therefore not always have time to respond quickly. I ask you to duplicate your bugreports to the This email address is being protected from spambots. You need JavaScript enabled to view it. too.
About filters. Grid view has a function GridFilter* GridViewBase::filter() const;
It's used to make a user specific filters for grid data. All you need is to create a filter condition (GridFilterValueCondition and GridFilterGroupCondition classes) programmatically (that you want) and install it in the filter object.
Furthermore you can get access to the history of filter's conditions using - GridFilterHistory* GridFilter::history() const;
I want to setup the filter as shown in the picture attached to this post.
I read the whole documentation but there is no explanation about filters.
thanxs
GridFilter * flt = view->filter();
GridFilterGroupCondition * groupCond = new GridFilterGroupCondition(flt);
GridFilterValueCondition * valueCond = new GridFilterValueCondition(flt);
Qtitan::GridTableColumn* column = (Qtitan::GridTableColumn *)view->getColumnByModelColumnName("LIB./AGG.");
valueCond->setModelColumn(column->dataBinding()->column()); //For this column filer will be applyed - param is a index in your Qt model.
valueCond->setModelRole(Qt::DisplayRole); //By default is Qt:DisplayRole
valueCond->setValueOperator(GridFilterCondition::FilterEqual); //Operation for comparing
QString espressione = "LIBERO";
valueCond->addValue(espressione);
groupCond->addValue(valueCond); //Group can hold more than one value of condition.
flt->setCondition(groupCond);
flt->setActive(true);