Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TIWjQDBGrid changing UI
#18
(08-04-2021, 05:57 AM)Alexandre Machado Wrote: BTW, all you need to do in order to render CDN files for IWBS is calling

procedure TIWServerController.IWServerControllerBaseConfig(Sender: TObject);
begin
  IWBSLibSetCDNS;
end;

It will set all the links to the correct URL.

Ok, thanks!

(08-04-2021, 05:34 AM)Alexandre Machado Wrote: Your test application doesn't work as you expect, but it is nothing related to the version of JavaScript files, nor their URLs.

It doesn't work because you are creating the grid at runtime and rendering it parented to a IWBS region/Frame. IWBS handles things in a "hacky" way which won't work as expected in this case. It works like that because it was developed when IW wasn't able to render controls dynamically created during an async call, so IWBS implemented its own mechanism.

I'll see what can be done in this case and let you know
On Form1 I'm not creating the grid at runtime at all, I'm just creating the form, that's it. And the behaviour is not what expected. I'm only using BS components.

On Form2, Yes, the grid it's on a region/Frame.

Just to help, if I set IWjQDBGrid.RenderCDNFiles to False and load the grid's css and js at runtime in ServerController:
  ContentFiles.Add('https://cdnjs.cloudflare.com/ajax/libs/free-jqgrid/4.15.5/css/ui.jqgrid.min.css');
  ContentFiles.Add('https://cdnjs.cloudflare.com/ajax/libs/free-jqgrid/4.15.5/jquery.jqgrid.min.js');
  ContentFiles.Add('https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.11.4/themes/blitzer/jquery-ui.min.css');

everything works like a charm, as it should, as expected, both Form1 and Form2 before and after open/close the modal form. 
Something to investigate.
Reply


Messages In This Thread
TIWjQDBGrid changing UI - by Comograma - 07-15-2021, 03:51 PM
RE: TIWjQDBGrid changing UI - by Comograma - 07-15-2021, 05:03 PM
RE: TIWjQDBGrid changing UI - by Comograma - 07-19-2021, 05:32 PM
RE: TIWjQDBGrid changing UI - by Comograma - 07-27-2021, 09:47 AM
RE: TIWjQDBGrid changing UI - by Comograma - 07-27-2021, 02:30 PM
RE: TIWjQDBGrid changing UI - by Comograma - 07-30-2021, 10:45 AM
RE: TIWjQDBGrid changing UI - by Comograma - 08-03-2021, 09:35 AM
RE: TIWjQDBGrid changing UI - by Comograma - 08-02-2021, 11:48 AM
RE: TIWjQDBGrid changing UI - by Comograma - 08-04-2021, 09:18 AM
RE: TIWjQDBGrid changing UI - by Comograma - 08-04-2021, 02:04 PM
RE: TIWjQDBGrid changing UI - by Comograma - 08-09-2021, 11:15 AM
RE: TIWjQDBGrid changing UI - by Comograma - 08-13-2021, 10:03 AM
RE: TIWjQDBGrid changing UI - by Comograma - 08-13-2021, 11:33 AM
RE: TIWjQDBGrid changing UI - by Comograma - 08-13-2021, 03:39 PM
RE: TIWjQDBGrid changing UI - by Comograma - 09-01-2021, 11:23 AM
RE: TIWjQDBGrid changing UI - by Comograma - 09-01-2021, 03:31 PM
RE: TIWjQDBGrid changing UI - by Comograma - 09-09-2021, 01:48 PM
RE: TIWjQDBGrid changing UI - by Comograma - 09-15-2021, 09:26 AM

Forum Jump:


Users browsing this thread: 11 Guest(s)