Jump to content

AlexForever

uniGUI Subscriber
  • Posts

    3
  • Joined

  • Last visited

AlexForever's Achievements

Newbie

Newbie (1/4)

0

Reputation

  1. I want load data to 2 and more grids parallel in different forms without block ui. Data is not loaded into other grids unless it is loaded into the first grid first. Sample projects attached. 1. Click Button1 and Button 2. (two forms will open) 2. Click Button1 on Form1 and after a second click Button1 on Form2. 3. Go to UniTabSheet3 and wait Caption Done. 3. The data will be loaded into the grid on Form1 but will not be loaded into the grid on Form2. UniMainModule.EnableSynchronousOperations := True; The main idea is that users can generate several reports in parallel on different forms. And they should be loaded into the grid as soon as requests are completed, so that the user can already work while others in the background are loaded. Forms can be placed on a PageControl and not visible if another tab is selected. But upon loading into the grid, the data should be displayed after switching to the appropriate tab. How i can designed this with unigui? UniGuiDemoGrids.zip
  2. UniDBGrid1.JSInterface.JSCallDefer('getSelectionModel().select', [5, false, false], 1); Thanks. It is working... Maybe consider an onafterload event after _clrcell_ P.S. Where i can read about and different JSCall, JSCallDefer, JSCallGlobal e.t.c. And may be with examples?
  3. procedure TMainForm.UniButton2Click(Sender: TObject); begin // WORKING UniDBGrid1.JSInterface.JSCall('getSelectionModel().select', [5]); end; procedure TMainForm.UniDBGrid1AfterLoad(Sender: TUniCustomDBGrid); begin // NOT WORKING if FDMemTable1.RecordCount > 0 then UniDBGrid1.JSInterface.JSCall('getSelectionModel().select', [5]); end; I want to select row (first or other) in runtime after data loading After some research i see _cgds_(O11,true);_gsr_(O1D,5,0,true);O11.getSelectionModel().select(5);_gsr_(O1D,29,0,true);_clrcell_(O11); I think problem in _clrcell_ 1.90.0.1564 GridAfterLoadNotWorking.zip
×
×
  • Create New...