Jump to content

arilotta

uniGUI Subscriber
  • Posts

    187
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by arilotta

  1. I've found a possible solution looking at thread: http://forums.unigui.com/index.php?/topic/6884-unidbgrid-rowselect/?hl=selectionchange&do=findComment&comment=35012 In addition to use "cellModel.deselect" and "cellModel.selectionchange", I used grid OnAfterLoad event to initialize the grid afetr being loaded: procedure TFrameDlgEvent20011.GRDCatAfterLoad(Sender: TUniDBGrid); begin UniSession.AddJS(GRDCat.JSName+'.view.getNode('+IntToStr(GRDCat.CurrGridRow)+').className = ''x-grid-row x-grid-data-row x-grid-row-selected'''); end; CurrGridRow is the CurrRow protected property defined in TUniBasicGrid that can be accessed using the usual THackGrid trick or a class helper, like a did (to access protected members....): type TUniDBGridHelper = class helper for TUniDBGrid ... ...
  2. Hi Delphi Dev, getting back again to you... Is it possible to achieve the same result with dgRowSelect=FALSE and dgEditing=TRUE ? Thanks Andrea
  3. Thank you Delphi Dev, it works perfetcly !
  4. Tried the following, but nothing happens. UniPanel2.layoutconfig.Flex:=1; UniPanel2.JSInterface.JSCode(#1'.setConfig({flex:1});'); UniPanel1.JSInterface.JSCall('doLayout', []); // UniPanel1 <----------
  5. Yes, build 1425 has ExtJS v. 4.2.5.1763
  6. Thank you, but still doesn't work. What could be the reason ?
  7. Using build 1425. Please find attached a simple test case. Thank you Andrea UniGUI RT Flex test.zip
  8. Hi Delphi Dev, unfortunately it doesn't seem to work...
  9. Hi all, apparently it is not possible to change the flex at runtime, for example for a panel. Is there a magic JS script that let the component redraw himself using the new flex set ? Thanks Andrea
  10. Hi all, I wonder if it's possible to specify the TITLE for an image cell in a DBGrid. It would be useful to show the hint/tooltip for the image/icon. The righe place should be OnDrtawColumnCell, but there as far as I can see there is only the possibility to specify the font, the color and the style. Something like that: <div unselectable="on" class="x-grid-cell-inner " title="my title"> <img src="/cache/medreferti_exe/res/__D5E09C51619AD97C38D717BA.png" width="24" height="24"> </div> thanks Andrea
  11. Hi Delphi Dev, is "beforeselect" event not supported in build 1425 ?
  12. Hi Delphi Dev, unfortunately I don't have the "beforeselect" event on cellModel, just these 4: - deselect - focuschange - select - selectionchange How come ?
  13. Hi all, I have a DbGrid with dgEditing=true. I would like to limit the columns that can be selected, because some contains icons and some other are text read-only. I am struggling with ClientEvents and CellModel, but I not so familiar with JS and I am wasting too much time. So, how can I limit my grid to only focus on the third column for example ? Thanks you all Andrea
  14. Yeeesss, it works ! Great Delphi Dev Thank you Andrea
  15. Sure, here you are Delphi Dev, please find it in the attachment. I have also set "boDisableMouseRightClick" on MainModule, but the context menu still appears on UniHTMLMemo. Thanks Andrea UniGUIContextClickHTMLMemo.zip
  16. Hi Delphi Dev, sorry for the delay. I've tried the solution in the linked thread, unfortunately it does not seem to work.
  17. Hi all, it seems that the MainModule option "boDisableMouseRightClick" does not affect UniHTMLMemo and UniDBHTMLMemo components. Even if I add that option, the context menu appears with right button click. Is there any workaround ? Thanks Andrea
  18. Great job rgreat, your solution is compatible with the current official release based on EXT JS 4.2.5, so I kept it. For those interested, I attach the updated compenent source. Unichecklst.zip
  19. rgreat, I've added the "margin-left: 0px; margin-top: 0px;", in fact it looks nicer. If I understand correctly, you are trying to use the component with the Beta version, running on Ext JS 6.5. Unfortunately, at the moment I've not installed that version, so I cannot help you. Maybe someone else on the forum can help you to fix the issues....
  20. It is already functional, I use it in my projects. Please see the attached zip, it contains the package and the unit unit for the component and the image for the icon. Just compile the package and install it. Unichecklst.zip
  21. .@MarBar77 good job, I think it could be useful @KdWpenza No, I haven't ported it to mobile...
×
×
  • Create New...