Cannot sort data in grid when clicking on header - delphi

I am displaying data in TMS's TDBAdvGrid. In TMS's version 3 when clicking on the grid's header the data would be sorted in ascending or descending order of the clicked grid's column. In version 6 the same code doesn't sort the data anymore; nothing happens. It seems they changed something. Is there a way to make it work like before? Thank you.

Related

Delphi 10 TMS FireMonkey grid - problem with SelectRows() and RowSelectionCount

I am using TMS FireMonkey Grid in my app and currently trying to implement the ability to select a range of rows by double-clicking on the first row and then double-clicking on the last row of the range. I use the SelectRows(StartRow,EndRow) method in the OnCellDblClick event handler. It seems to work, except for one thing: the RowSelectionCount does not get set properly (equals 1, regardless how many rows I select) until I call ShowMessage() with something random, like 'Hi!' - after that it gets set to a correct number of selected rows. I figured it has something to do with focus, so I tried to use the SetFocus to change focus to another component of the form and then back to the grid, but that didn't help. Any ideas on how to get RowSelectionCount to carry a correct value right away?
The grid's SelectionMode property is set to smDisjunctRow - according to an email I received from TMS Support, this setting should allow me to use RowSelectionCount.
Thanks in advance!

how to know grouping values in pivot chart in Hyperion designer

I have a chart which has query,result and pivot. pivot has 3 part side labels,top labels and facts.
Some user selected few data in side label and make them a group, I dont know what those values are.
Can somebody let me know how to find grouping values in Hyperion Designer 8.5.
Thanks
Deepak
I'm going to guess that what you have is a pivot table where someone created a drilldown by right-clicking and selecting hide. And you want to know what they hid. Unfortunately, even if you're the one that hid the values, you can't get that information back without showing everything. This is just one of those Hyperion quirks: it assumes that people using Designer are individual developers who aren't going to be hiding and renaming things without remembering the original values. The only way to get it back is to do some detective work by showing everything and trying to replicate the table.

Angular ui-grid - how to tell if I am on the last row

I'm using the latest version of Angular UI Grid and am struggling with how to determine if the focus is currently on the last displayed row of the grid.
The data array is not sorted the way it is on-screen, so I cannot use that info. I read that the visible row cache should be sorted as it is on-screen, but I think that might be related to the old ng-grid. At any rate, if I look at gridApi.core.getVisibleRows(myGrid) it still has the sorting as per the raw data.
I am currently handling the event gridApi.cellNav.on.navigate(newRowCol, oldRowCol). I can see the column and row that the user has the focus on, but I cannot see any values in this event (or elsewhere) that I can use to determine if the row is the last-displayed on-screen. I'd appreciate any tips!!
You should use gridApi.grid.renderContainers.body.visibleRowCache which is an array sorted the way the rows are visible on the screen. You can then check if the row is the last row with something like:
oldRowCol.row.uid == $scope.gridApi.grid.renderContainers.body.visibleRowCache[$scope.gridApi.grid.renderContainers.body.visibleRowCache.length-1].uid

listgrid smartgwt select deselect feature

I use SmartGwt Listgrid to show a list of objects, each object contains many subobjects. So when I click on a specific row, I show a popup that allows me to update this subobject's list.
The second constraint is to allow the user to select many rows, to be merged into one row. For that I use checkbox selection type like the following code :
myListGrid.setSelectionType(SelectionStyle.SIMPLE);
myListGrid.setSelectionAppearance(SelectionAppearance.CHECKBOX);
All work perfectly for the first load. The problem is when I show / hide the popup, the select/deselect feature of the Listgrid stops functioning. Once the checkbox is clicked, it remains unchanged.
Thank you for your suggestions.
I answering my own question,
After many hours of investigation, the problem is that I mix listGrid of smartGwt and dialogBog of GWT, when I changed DialogBox with Dialog of smartGwt the problem is solved

How to sort a QuantumGrid on data from a different column

Is there a way to sort Devexpress QuantumGrid rows on data from a different column other than the one whose header has been clicked? For example, when the header of column A is clicked the rows of the grid are sorted on the data from column B. Visually it should still appear that it is column A that has been sorted as the sort glyphys will be shown in column A's header.
#norgepaul you must check the DevExpress Support Center for the questions related to the DevExress products, This site has thousands of answers and articles related to its products.
check theses links
Sorting by other field (when clicking header) in ExpressGrid 6
http://www.devexpress.com/Support/Center/SearchResults.aspx?searchtext=sort&p=T1|P0|83
I don't have DevExpress here to check, but i would look to see if there is a custom sort event. like OnCustomSort, where you get to decide whether a value or cell sorts higher or lower. I think you'll have the ability to know what rows are being compared, so you could look across to B cells, and make your own comparision.

Resources