erich.wanker Posted February 27, 2017 Share Posted February 27, 2017 Hi .. i have a uniFrame .. on the Frame i have a lot of uniLabels and images and uniPanels and so on .. on the Bottom i have a small uniDBGrid ... If i create the uniFrame - the frame is allways scrolled down to the uniDBGrid .. very annoying ;-) How can i change this behavior? ThanX for suggestions Erich Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 27, 2017 Share Posted February 27, 2017 Hi, If it is not difficult for you, please make a test case. Best regards. Quote Link to comment Share on other sites More sharing options...
orvkis Posted April 4, 2017 Share Posted April 4, 2017 Hi, If it is not difficult for you, please make a test case. Best regards. Hi, the same problem. Example is in this topic http://forums.unigui.com/index.php?/topic/8293-unidbgrid-inside-uniscrollbox-bug/ Quote Link to comment Share on other sites More sharing options...
SMARAM Posted January 30, 2020 Share Posted January 30, 2020 I'm having the same problem. To reproduce the scenario, follow the steps below. My unigui version: 1.0.0.1416. 1) Create an empty project. 2) Put a UniSimplePanel with Align = alClient 3) Create an Unigui Frame 4) Put some simplepanels into the frame as Align = alTop and a unidbgrid below. 5) The dbgrid must be binded with a datasource and dataset to reproduce the scenario 6) Increase the height so that it will be greater than your screen 7) On FormCreate of MainForm, use the code below to create the frame. var Frame1: TUniFrame1; Frame1 = TUniFrame1.Create(Self); Frame1.Align := alClient; Frame1.Parent := UniSimplePanel1; 7) Run your code and see that your frame will be positioned on the dbgrid. Ps: It will only occurs when your dataset has result. Quote Link to comment Share on other sites More sharing options...
SMARAM Posted January 30, 2020 Share Posted January 30, 2020 I found a solution that is not so elegant. 1) set dbgrid with Visible = false. 2) On UniDBGrid AfterLoad put this code: UniSession.AddJS('ajaxRequest(frameName.FramePanel,"UniDBGrid1",[])'); 3) On UniFrame AjaxEvent put this code: if (EventName = 'UniDBGrid1') then begin UniDBGrid1.Visible := true; end; Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 31, 2020 Share Posted January 31, 2020 7 hours ago, SMARAM said: My unigui version: 1.0.0.1416. Hello, Can you check it with the latest build? Quote Link to comment Share on other sites More sharing options...
SMARAM Posted January 31, 2020 Share Posted January 31, 2020 11 hours ago, Sherzod said: Hello, Can you check it with the latest build? I can't right now. This is the current version on my company. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 31, 2020 Share Posted January 31, 2020 4 minutes ago, SMARAM said: I can't right now. This is the current version on my company. I think you can check it on the trial version... In any case, you can create a simple testcase and send to the support portal. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.