|
|
Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » DropGrid, DropTree dynamic update.
DropGrid, DropTree dynamic update. [message #31556] |
Mon, 14 March 2011 06:27 |
Lance
Messages: 549 Registered: March 2007
|
Contributor |
|
|
Can DropGrid be configured to something like this effect:
1. There is an edit area, just like a regular edit, it display the Format'ted text as was before the edit start.
2. When user enters some text, it has some mechanism to allow Libary user's program to update/filter data to be displayed as candidates of choice accordingly, or at least it can hide currently populated rows that don't match user input.
3. Even better, the dropdown is polymorphic. When there are too many candiates, it may be easier to put in a TreeView, and when user input has filtered out but a limited number, a list may make more sense.
By the way, the DropGrid example included with U++ package is very impressive. I particularly like the capability to set display columns and value columns (you can choose to hide the actual value column, eg, ID make a lot of sense to database but means little to end user. Unfortunately it uses a button to trigger dropdown. A user should be able to click the little triangle to the right or use certain key combination to show the popdown list.
Please let me know the current implementation can be adapted to these behaviour without heavy coding.
Thanks,
Lance
|
|
|
|
|
Re: DropGrid, DropTree dynamic update. [message #31927 is a reply to message #31556] |
Fri, 08 April 2011 08:11 |
|
Lance wrote on Mon, 14 March 2011 01:27 |
Can DropGrid be configured to something like this effect:
1. There is an edit area, just like a regular edit, it display the Format'ted text as was before the edit start.
2. When user enters some text, it has some mechanism to allow Libary user's program to update/filter data to be displayed as candidates of choice accordingly, or at least it can hide currently populated rows that don't match user input.
|
This is not possible in current version. But you seem not to be first who would like to have possibility to edit text. I'll think about it.
Quote: |
3. Even better, the dropdown is polymorphic. When there are too many candiates, it may be easier to put in a TreeView, and when user input has filtered out but a limited number, a list may make more sense.
|
GridCtrl which is used to display the drop list doesn't support tree view (this is something I also wanted to implement long time ago)
Quote: |
By the way, the DropGrid example included with U++ package is very impressive. I particularly like the capability to set display columns and value columns (you can choose to hide the actual value column, eg, ID make a lot of sense to database but means little to end user.
|
I'm glad you like the DropGrid
Quote: |
Unfortunately it uses a button to trigger dropdown. A user should be able to click the little triangle to the right or use certain key combination to show the popdown list.
|
I don't understand. What's wrong with trigger button? I guess you miss automatic list showing when user starts typing?
I'm working right now on the second version of my application which uses DropGrid and GridCtrl a lot and maybe I will be able to implement some of your features (especially point 1)
|
|
|
Re: DropGrid, DropTree dynamic update. [message #31929 is a reply to message #31927] |
Fri, 08 April 2011 14:22 |
Lance
Messages: 549 Registered: March 2007
|
Contributor |
|
|
unodgs:
Thank you very much!
And here is another feature I need: a callback for WhenSelect
Senario:
I have a DropGrid where a user can select an item either by mouse or keyboard (currently, I cannot do it with keyboard only!). When A selection is made, my application needs to take action accordingly.
Let's say, the list are a bunch of URLs, and the action is to load the webpage. Now what callback should I hook to? WithDropChoice, which is similar but more basic to DropGrid, has a WhenSelect callback, this provides opportunity for proper library user intervention which I am missing from DropGrid.
Or should I take another route, or DropGrid is not designed to be used in this situation?
Thank you again. Indeed DropGrid is a very useful widget.
|
|
|
|
|
|
|
Re: DropGrid, DropTree dynamic update. [message #32962 is a reply to message #32956] |
Sun, 26 June 2011 11:21 |
|
Quote: | The "problem" that you cannot select item and close the DropGrid with Enter key (have to use mouse-left-click at present) actually has to do with the Key virtual function of GridCtrl
|
Thanks! This is obviously a bug. Now in svn.
|
|
|
|
|
Goto Forum:
Current Time: Fri Sep 20 10:37:43 CEST 2024
Total time taken to generate the page: 0.03827 seconds
|
|
|