Different column's behavior in Infragistics.UltraGrid - contextmenu

I have an Infragistics.UltraGrid and I want to add a right-click event on it. I have 6 columns in grid and when I click on last four columns of six I call context menu, but when I right click on first and second column nothing is happen.
By the way if I right click on first or second column and then right-click on other columns, my context menu disappear.
So can you please answer me what's wrong with first two columns?

Related

Can you ignore items using fuzzySearch plugin for list.js?

I'm following the instructions here http://www.listjs.com/docs/plugins/fuzzysearch and have managed to get it working.
My issue is the following: I have two sortable columns. I want the search to only effect the left column and ignore the items on the right column.
Example: On initial load, all items are on the left column. I drag an item to the right column. Now if I use the fuzzySearch, it includes the items on right column and spits it back into the left column.
Side note: I'm just using JQuery UI for the sortable portion of it.

Conditionally formatting multiple rows with the same conditions

I am looking to format 500+ rows of data and essentially, G5-K5 (in every row) needs to be highlighted a light color (any color) if J5 equals "Regular".
This same condition will exist in every row, so it should be simple - but I am not an excel master by any means. I just don't think it's necessary to create 500+ conditions for each row!
That is actually pretty simple.
You right click one of the cells to do the formatting(one with
regular for example) and select Conditional Formatting on the menu.
Then you make sure the Range is the cell you right clicked, select
"The text is exactly" in the list and type "Regular in the field
under it.
Select the color under that field and press the blue button.
After that you just need to press the paint format tool(the paint
roll) and drag all the cells you want to have the same
behaviour(probably the entire column of the right clicked cell).

Delphi DBGrid disable clicking on another row when editing

I have a dbgrid displaying data from a Ttable and my problem is that when
editing a row in the grid the focus is on the row that I want to edit but I can
still click on another row and edit it. How do I disable clicking on another row
or keep focus on the same row?
Second question is (still on the dbgrid) when I edit a column and double click on that column,
the focus moves to the end of the text line therefor not showing the original text but only showing maybe the last character and spaces.
Please help...
After a while of playing around with this, I've discovered that there's no easy way
to disable the user from moving from the highlighted row (row to edit) when clicking another row.
The best way is to cancel when he clicks on another row, I'm using a TTable and TQuery, so
on the BeforePost event, just do a cancel on your table or query. But you also need to do the
same on the AfterScroll even, just in case.
Thanks for all your help.

Items to move up dynamically

If I have a a number of elements in one table column and I drag them one at a time to another column utilizing jQuery UI, how do I make remaining items in the first column move up, i.e. fill the gap left by the items that were moved. Assuming table cell valign="top".
I think it has to do something with DOM. It seems that even after I drag the item is it still in the same column.
You might want to use jquery ui's sortable instead.
http://jqueryui.com/demos/sortable/#connect-lists
You can connect lists and anything moved from one list will move the remaining elements to fill any gaps
However you are not giving us any code/markup to work with so I can only guess. Hope this helps!

How do I move multiple nodes at once in a TJvTreeView?

When you select multiple nodes of a JvTreeView, and then try to drag these nodes, the JvTreeView selects the node you clicked to drag, rather than initiating dragging all the selected nodes. You end up dragging only this single node.
Is it possible to drag multiple nodes in a JvTreeView? I am using Delphi 2007.
UPDATE: Oddly enough, if I hold down CTRL+SHIFT when dragging the items, I can successfully drag them all. Any ideas?
Suppose MultiSelectStyle is the default [msControlSelect], then the answer to your question is 'you don't release the control key when you're selecting the last item and beginning dragging'.
The culprit is in TJvTreeView.WMLButtonDown in JvComCtrls.pas. Code there tests if 'Ctrl' is pressed when the TreeView is MultiSelect, and clears all items and selects the clicked item if 'Ctrl' is not pressed. It should instead test if the clicked item is already selected and do nothing if it is.
You can see the broken behavior without dragging. Multi select a few items and then click a selected item with the mouse. The VCL TreeView do not select or de-select anything, while the JVTreeView, instead, de-selects all items and selects the clicked one.
Yes absolutely, I do it all the time.
Of course Multi-Select needs to be True and you may need to have a look at the TTreeView's MultiSelectStyle. That controls what type of nodes can be selected at the same time. For example if msSiblingOnly is set to true, you can only select sibblings.
Are you using dmAutomatic or dmManual. If the latter, it could be that you are doing something in the OnMouse* events that is negating the multi-selection you made earlier.

Resources