Search the Community
Showing results for tags 'selection'.
-
Hi, When dataset is readonly, it is not possible to select/copy cell text in the grid. Ir would be nice to have property true/false workaround for this is: ClientEvents -> UniEvents -> function beforeInit: { config.viewConfig.enableTextSelection = true; } Br, Marko
-
- unidbgrid
- unimdbgrid
-
(and 2 more)
Tagged with:
-
Hi! I heed help again Problem is in displaying the selected dbtreegrid node which was found in underlying dataset by Locate(...) method. I have two TUniDBTreeGrid components on form. GridStructure shows structure of nodes with two levels, GridData should display info for selected node in GridStructure. So when I use Locate to find node in manually or programmatically collapsed GridStructure, dataset position is correct and info in GridData is OK, but the selection in GridStructure displays incorrectly. I wrote "expandSelectedNode" method (as you advised me): function beforeInit(sender, config) { var me = sender; me.expandSelectedNode = function() { var _selection = me.getSelectionModel().getSelection()[0]; if (_selection) { _selection.cascadeBy(function(node) { node.expand(); }); sender.ensureVisible(sender.getSelectionModel().getSelection()[0]); } }; } And after locating record I use this code: grdStructure.JSInterface.JSCall('expandSelectedNode', []); grdStructure.JSInterface.JSCode('Ext.defer(function(){'#1'.ensureVisible('#1'.getSelection()[0])}, 200);'); But is doesn't helph in some cases. I've made a testcase to demonstrate my problem. TreeGridLocationTestCase Please, do following: 1) Select node "Node1" in GridStructure, press button "Refresh info" below - Node1 is selected in GridStructure, GridData shows info for Node1 = CORRECT 2) Expand Node1, select child node "Node1_13" in GridStructure, press button "Refresh info" - Node1_13 is selected in GridStructure, GridData shows info for Node1_13 = CORRECT 3) Select Node1_13, press button "RefreshStructure" higher, press button "RefreshData" below - tree is collapsed, selection is not visible in GridStructure, GridData shows info for Node1_13 = INCORRECT 4) Expand Node1 in GridStructure, type text "Node1_14" in the edit box on the top of form, press button "Search structure node" - node "Node1_14" is found and selected, GridData shows info for Node1_14 = CORRECT 5) Collapse tree in GridStructure, type text "Node1_15" in the edit box on the top of form, press button "Search structure node" - tree is collapsed, selection is not visible in GridStructure, GridData shows info for Node1_15 = INCORRECT Please, "kick me out" of this swamp, somebody! Thank you!
-
Hello, It is posible with a UniStringGrid to select several rows (2 cols max) , copy and paste them in another grid? I was searching and i find the option to select multiple rows, and multiple cols. But It was not posible to copy the content. What i'm try to achieve is the same behaviour that is posible with an xls document. Regards
-
I would like to implement an Autocomplete for an UnimDBEdit. While typing I read a database and complete the text. Problem: I would like to overtype ("Go ahead") so I need to mark the rest of the text as "selected", so the user may go on typing. Any ideas or Solutions? Remark: Lookuptable is very big >2000 Records
-
- unimedit
- unimdbedit
-
(and 2 more)
Tagged with: