Jump to content

JamesP

uniGUI Subscriber
  • Posts

    22
  • Joined

  • Last visited

  • Days Won

    1

JamesP last won the day on March 27 2021

JamesP had the most liked content!

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

JamesP's Achievements

Newbie

Newbie (1/4)

5

Reputation

  1. I have just tried your solutions and it worked as I needed for panel that has been created at design time and for panels that are created at runtime. It's perfect. Thank you very much for your help. Kind Regards
  2. Hi Sherzod, Thank you for looking at it. I have looked at post you suggested, but everybody said in that post that it's not resolved the issue panel title still had a border/focus border around the title. I have tried it by myself and it did not work for me: TMainForm.UniFormCreate(Sender: TObject); beginUniPanel1.JSInterface.JSConfigObject('header', 'focusCls', ['']); end; You have mention that you didn't understand my case, let me please to explain what I try to achieve here: I have got a frame which has "accordion" layout where in runtime 3 panels are created with titles: "Applications", "Maintenance" and "System". those panels have "background: SlateGray;" and "accordion" layout as well and they have children panels with "background: LightBlue;". If you look at screens I have provided earlier or below, it's expanded Panel "Maintenance" and inside panel with title "Panel Title" (obviously. I called it "Panel Title" only to provide those screens). You can see the panel with title "Panel Title" has a border around title as I clicked on panel title. If I click somewhere inside this panel the border disappears. Also the border doesn't appear if I expand/collapse panels by using "+" / "-", it only happens when I click on panel title. if we look at the uniGUI demo Layout Management -> Accordion Layout we won't see that kind of border as themes have the same colour for background colour and border around panel title text (I mean title label/caption) The same happens for Parent panels as well Also, I have tried your suggestion for panel created in design time as well and it didn't work either. I have changed the background colour for whole title using CSS, but couldn't manage to change border colour around Title text. Could you please help me out this that as it looks awkward? Kind Regards
  3. Hello, Could you please advise how to remove border for Panel Title? The border appears when Panel Title is focused (when I clicked on it). Without clicking on title it shows OK. Thank you in advance
  4. Hello, I have just seen What's New in Ext JS 7.4.0 https://docs.sencha.com/extjs/7.4.0/guides/whats_new/whats_new.html They have introduced multi grouping on dbgrid. Would it be possible to implement it in uniGui please? Thank you in advance. Kind Regards, J
  5. Hello, I have just seen What's New in Ext JS 7.4.0 https://docs.sencha.com/extjs/7.4.0/guides/whats_new/whats_new.html They have introduced multi grouping on dbgrid. Would it be possible to implement it in uniGui please? Thank you in advance. Kind Regards, J
  6. Hello, It doesn't work at the latest complete Professional edition 1.90.0.1551 Could you please suggest any solutions to Merge Cells in column for the same value? Kind Regards, J
  7. Hi Sherzod, I haven't got one as it will be difficult to extract that peace of code from my application, but I have create topic with details. Could you please help me out this that? Kind Regards, J
  8. Hello, Assigning OnGetText event of TField doesn't make any difference if field is in TreeKeyFields for TUniDBTreeGrid . In TuniDBGrid it shows correct, but in TUniDBTreeGrid it shows original value. Issue: TDataSet/Query has fields: SEQ_1, SEQ_2, SEQ_3, PRODLEV1, PRODLEV2, PRODLEV3, Field_Name Field_Value When I assigned TreeKeyFields := 'PRODLEV1; PRODLEV2;PRODLEV3'; The first node come ARC and not EME, so it alphabetical order and not as order in TDataSet. I found your comment that it could be used OnGetText to change text for nodes in TUniDBTreeGrid, I have changed TreeKeyFields from 'PRODLEV1; PRODLEV2;PRODLEV3' to TreeKeyFields := 'SEQ_1;SEQ_2;SEQ_3'; And plus to that I have created OnGetText for SEQ_1,SEQ_2,SEQ_3 fields to show Text and not Sequence number, but it shows sequences: 1, 2, ... and not EME, ARC, ..... for nodes in the DBTreeGrid. You can see in attached image TUniDBGrid shows values based on OnGetText correctly, but TUniDBTreeGrid does not. I have attached two images: one is screen from app and other some data example, so you can have some idea about data. What I try to achieve is make DBTreeGrid to show data in order based on SEQ_1, SEQ_2, SEQ_3 and not in Alphabetical order. I am working on the latest full license, WebApp is desktop. Could you please suggest any solutions? Thank you in advance. Kind Regards.
  9. Hello, Assigning OnGetText event of TField doesn't make any difference. In TuniDBGrid it shows correct, but in TUniDBTreeGrid it shows original value. Could you please suggest any solutions? Thank you in advance. Kind Regards
  10. Hello, I have found couple issue with Header grouping. Please see attached screen. First: You can see there is no vertical border on the last column if there is a group header and Theme is uni_emerald. Second: if you have three first columns with property Locked = True and also you assigned GroupHeder for them. These columns are loosing locked, like they are not locked anymore. You can easily replicate the issue on demo "Grid Column Locking - Header Grouping". (Desktop. the latest version 1.90.0.1551) Please see attached screens. Could you please suggest any way to work around this issue? I really need to use "uni_emerald" theme. Thank you in advance. Kind Regards
  11. It works, Great. Thank you very much for your help.
  12. Hi Sherzod, When I tried the solution, you provided, on the test project, firstly I put the follow code on OnCreate (form): with UniDBGrid1 do if DragDrop.Enabled then JSInterface.JSCall('getView().findPlugin("gridviewdragdrop").disable', []) //enable That did not work. Then I put the same code on onActivate and it started working. The thing is TUniFrame doesn't have OnActivate, so I do not know what correct place is to put this code for the TUniFrame. The test case would be difficult to create as it dynamically created Frame with data from SQL server. Maybe there is some trick/ jscode that I can use straight after: with UniDBGrid1 do if DragDrop.Enabled then JSInterface.JSCall('getView().findPlugin("gridviewdragdrop").disable', []); Thank you in advance and kind regards.
  13. Hi Sherzod, Thank you very much for your help. The solution works fine if you put it on button click event. I am wondering if you can advise me further as there is an issue with initial disabling Drag Drop. I have got an Structure Frame (TUniFrame) that is created at the runtime. It has toolbutton on top, and pageControl with up to 4 TabSheet, that each has a TUniDBGrid. Top Panel has a toolbuttons that switch Edit mode from False to True and from True to False. Initially, Drag&Drop should be disabled as it's readonly mode, but Drag&Drop is allowed, despite I put the code: procedure TStructureLevelFrame.InitDisableDragDropForDBGrid( ADGGrid: TUniDBGrid); begin if ADGGrid.DragDrop.EnableDrag then begin with ADGGrid do JSInterface.JSCall('getView().findPlugin("gridviewdragdrop").disable', []); end; end; I tried put this procedure in many place in my code: OnFrameCreate OnReady Some other procedures that run on load data But it refuses to work, I mean it allows draging rows. Then when I click on button that enable edit mode it switches runs: if DGGrid1.DragDrop.EnableDrag then begin with DGGrid1 do JSInterface.JSCall('getView().findPlugin("gridviewdragdrop").enable', []); end; and then when I end edit mode it runs: if DGGrid1.DragDrop.EnableDrag then begin with DGGrid1 do JSInterface.JSCall('getView().findPlugin("gridviewdragdrop").disable', []); end; After that the drag&drop works as designed. When Read only mode it does not allow drag&Drop and when edit mode it does. Could you please advise where to put procedure InitDisableDragDropForDBGrid for initial disabling when frame is loading on screen? Thank you in advance. Kind Regards
  14. Hello, I am using OnDropRowsEvent for moving rows inside the same Grid. It works nice and smooth. What issue I have got is if you assigned true to DragDrop.Enabled at design time it will always allow you to drag drop, despite I created a button with OnClick where there is a code: uniDBGrid1.DragDrop.Enabled := not uniDBGrid1.DragDrop.Enabled; Changing uniDBGrid1.DragDrop.Enabled at runtime doesn't make any difference. If it was False at design time or OnCreateForm it will always disallow to drag&drop and if True - always allows. Could you please advise how to work it around? Is there some trick to work around? Thank you in advance
×
×
  • Create New...