Jump to content

Gabriel

uniGUI Subscriber
  • Posts

    66
  • Joined

  • Last visited

Everything posted by Gabriel

  1. Hello, I continue doing several tests. I adapt the original code (https://fiddle.sencha.com/#fiddle/mch&view/editor) to load inside the test case. The thing is that if we use pure Sencha, it works great. But for some reason it won't work with the UniTreeMenu component. I attach another TestCase Regards UniTestMenu.rar
  2. I've changed a little bit the test case... What I was trying to accomplish is to hide all elements from the menu, it should be pretty straight forward, but, I think I found that the menu is not refreshing after setting the property. I add this function to the KeyUp event function keyup(sender,e,eOpts){ var me = MainForm.UniTreeMenu1; var almc = me.store; var vItemGlobal = ''; console.log('----Start----'); for(var i=0; i< almc.data.items.length;i++){ var vItem = almc.data.items[i].get('text'); vItemGlobal = vItemGlobal + '-' + vItem; } console.log('Hide elements'); for(var i=0; i< almc.data.items.length;i++){ almc.data.items[i].set('visible',false); } console.log('After hide'); for(var i=0; i< almc.data.items.length;i++){ console.log(almc.data.items[i].get('text')); if(almc.data.items[i].get('visible')){ console.log(' - - - Is visible'); } } console.log('List: ' +vItemGlobal); console.log('----End----'); } And the result was this (console log) js.js:5 ----Start---- js.js:11 Hide elements js.js:15 After hide js.js:17 Item two js.js:19 - - - Is visible js.js:17 Item four js.js:19 - - - Is visible js.js:17 Empleados js.js:19 - - - Is visible js.js:17 Metodos y Reportes js.js:19 - - - Is visible js.js:17 Informes de Gestión js.js:19 - - - Is visible js.js:23 List: -Item one-Item two-Item tree-Item four-Empresa-Empleados-Plan Vacacional-Metodos y Reportes-Autogestión-Informes de Gestión js.js:24 ----End---- //second run undefined js.js:5 ----Start---- js.js:11 Hide elements js.js:15 After hide js.js:17 Item four js.js:19 - - - Is visible js.js:17 Metodos y Reportes js.js:19 - - - Is visible js.js:23 List: -Item two-Item four-Empleados-Metodos y Reportes-Informes de Gestión js.js:24 ----End---- //third undefined js.js:5 ----Start---- js.js:11 Hide elements js.js:15 After hide js.js:17 Metodos y Reportes js.js:19 - - - Is visible js.js:23 List: -Item four-Metodos y Reportes js.js:24 ----End---- //fourth undefined js.js:5 ----Start---- js.js:11 Hide elements js.js:15 After hide js.js:23 List: -Metodos y Reportes js.js:24 ----End---- The menu is still the same I attach the updated project. The javascript code is in the Release/files folder Regards UniTestMenu.rar
  3. Hello Sherzod, Were you able to see this? Regards
  4. Yes. I've attached the project. You just need to click on "Load Menu" and then use the search box. The Load Menu button is there because the real application has similar behavior, it means that the menu shouldn't load with the FromCreate. Regards UniTestMenu.rar
  5. Hi. I have a problem filtering the UniTreeMenu. I've adapted this method from Extjs filterStore: function(value) { var me = this, store = me.store, searchString = value.toLowerCase(), filterFn = function(node) { var children = node.childNodes, len = children && children.length, visible = v.test(node.get('text')), i; // If the current node does NOT match the search condition // specified by the user... if (!visible) { // Check to see if any of the child nodes of this node // match the search condition. If they do then we will // mark the current node as visible as well. for (i = 0; i < len; i++) { if (children[i].isLeaf()) { visible = children[i].get('visible'); } else { visible = filterFn(children[i]); } if (visible) { break; } } } else { // Current node matches the search condition... // Force all of its child nodes to be visible as well so // that the user is able to select an example to display. for (i = 0; i < len; i++) { children[i].set('visible', true); } } return visible; }, v; if (searchString.length < 1) { store.clearFilter(); } else { v = new RegExp(searchString, 'i'); store.getFilters().replaceAll({ filterFn: filterFn }); } look like this The code was working great, until a uniGUI update, i believe it was 1498 wich introduce Ext js 6.7 (not sure). Since that update the code isn't working anymore, it does not filter the tree and furthermore, is not expanding all the tree nodes. Anyone knows anything about this? I cant use the filter as is it show on the demo files, because my tree is dynamically created. (related post: Regards
  6. I wasn't able to adapt the code. ¿Does anyone have any idea on how to perform this? Regards
  7. Doing some research, I've found this: http://developerextensions.com/extjs-5-excel-copypaste-grid-demo. But for the moment I was unable to "translate" it to Delphi
  8. Hello, I attach the project (sample project) By enabling the following options: Yes, but on different screens. In the sample project, there are two grids. I want to copy something from the one on top to the one on the bottom. Of course, sorry if I'm not being clear. Basically, the idea is copy information (the content of every cell) from one grid to another using CTRL + C, CTRL + V, both grids are exactly the same, the number of columns, properties, etc. Regards Gabriel TestUniStringGrid2.zip
  9. 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
  10. Many thanks. I've try the workaround and it works great. But also i've submited the issue to the support portal. Thanks a lot. Regards
  11. Sherzod, Sorry to bother you again. Any news about this topic? Thanks Regards, Gabriel
  12. Any ideas on how to solve this? is this a bug? Regards
  13. Hi, I'm having an issue with the unistringgrid. I'll try to explain. I'm using a UniStringGrid so the user can enter some data (as detailed here http://forums.unigui.com/index.php?/topic/11309-solved-unistringgrid-editorview), which works great, but i'm having trouble saving the information to a text file, the problem is that the grid trims the blank spaces at the beginning of the cell but only when i add them myself. Some images: When i load the app and press the button show text: I edit the first cell adding a lot more blank space at the beggining and then click on Show Text The text has been trimed. I attach a test project. It would be great if someone can help me. Regards UniStringGrid.zip
  14. Hi. Sure!. I attach the sample aplication. As you will see there is a small UniStringGrid in the project On the creation event, i set the values: procedure TMainForm.UniFormCreate(Sender: TObject); begin UniStringGrid1.Cells[0,1] := 'This Cell has no spaces'; UniStringGrid1.Cells[0,2] := 'This Cell has a lot of spaces'; end; As i said, i didnt find a way to show the spaces on the cell (0,2). But if you edit the cell the spaces are shown correctly. Let me know if you need anything else. The same issue happen if i edit the fields manually. Regards UniStringGrid.zip
  15. ¿Does enyone have any idea have to do this?
  16. Hi, I have an issue with the UniStringGrid. The problem is with the visualization and the edition of the information. The visualization is like html, but the edition es plain text. Is there a way to work always with plain text? This is how the information is viewed: If I edit the field There is a lot of white space (that is correct). The only way to replicate the white space is adding &nbsp;, but of course that the end user will not use that. So, basically what i am asking is if there is a way to change the view of the UniStringGrid to show the white spaces. Regards
  17. Great. It only works when you are using TUniMenuItems as a SourceMenu? I'm creating the content of the menu at runtime and I can't make it work,
  18. Same issue even with the last version of Unigui
  19. We are posting the request. Thank You
  20. We are developing an application where we have a menu of about 90 items (nodes and sub nodes and sub sub nodes). We are currently using a UniTreeView with the OnDblClick event to ensure the access to the correct form (due the fact that we have dataset of over 1M records - payroll) I'm afraid that without that event our clients might open the incorrect form. Thats all.
  21. Hi, I'm testing the UniTreeMenu (replacing UniTreeView with UniTreeMenu) and i found some issues. 1.- There is no method FullExpand or FullCollapse 2.- There is no events OnLoaded or OnDblClick 3.- I was trying to make a SearchTree (like UniTreeView) and it fails 4.- The procedure UniTreeMenu.Items.Clear fail. Both items 3 and 4 shows an Ajax Error "Cannot set property 'lastOptions' of undefined", but the UniTreeMenu.Items.Clear fails from time to time. Also, has anyone been able to set the font size? how? Has anyone have a similar experience? I'm using the last release Regards Gabriel
  22. ¿did you solve this issue? I'm facing a similar problem
  23. There is any update about this topic?
×
×
  • Create New...