Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TIWjQDBGrid changing UI
#26
(08-12-2021, 11:21 PM)Alexandre Machado Wrote: > Even if I set IWjQDBGrid.RenderFileCDNFiles is set to False and load jQGrid files in ServerController.OnConfig like this:
>  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');

You shouldn't be doing this. If you set RenderCDNFiles to False you just need to add the files to your wwwfolder and that's it. You don't render them yourself. If you render them yourself you are duplicating files in the final HTML File, possibly with different versions and addresses. The result is unpredictable


I don't want or have the needs to change RenderCDNFiles to False, I just want it to work.
I understand what you said here and did it like you said.
Just to try/test what you said, I Changed RenderCDNFiles to False and put ui.jqgrid.min.css, jquery.jqgrid.min.js and jquery-ui.min.css in www folder, removed the 3 ContentFiles.Add lines, and the grids do not render, do not show at all and the label at the top where it says "Picking de entrada", are rendered with incorrect font, ignoring my-label-title css that is on my personal css file files/styles.css. Also these files (ui.jqgrid.min.css, jquery.jqgrid.min.js and jquery-ui.min.css) aren't beeing loaded, because I change jquery.jqgrid.min.js to translate the pager labels to Portuguese and it isn't happening, they are still in English.

And like I said previously, leaving RenderCDNFiles to True, the same label is displayed incorrectly in Form2, where it hasn't a IWjQDBGrid component. It isn't using my-label-title css that resides in files/styles.css. And also like I said, after open and close modal form in Form2, the parent's form (Form2) will be changed. Please try this, Alexandre.
Am I missing something here?

PS: Attached again the test case. Pay atention to the "Picking de entrada" label. It isn't in correct font/size, it's ignoring my-label-title class. Grids not rendered/presented.
Change also RenderCDNFiles to True and see what happens to that same label and after you open/close modal form on Form2. Try clicking on the IWBSSelect components after closing the modal window. Nothing happens.


Attached Files
.zip   TestCase.zip (Size: 614.99 KB / Downloads: 2)
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: 17 Guest(s)