CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

CGJQGrid: Automatically resize to browser window

General discussion

by ScottWGast » 15 Aug 2012 21:14

I have TIWCGJQGrid on a form and .Align := alClient, but the grid does not resize when the browser window is resized. If I refresh the grid (using a Button.OnClick), the grid will resize Horzontally, but not vertically. I would think that the grid would resize to fill in the "client" space.

If I want to use a specific theme, but don't want to allow the user to change the theme, what can I do?

Thanks,
Scott
ScottWGast
 
Posts: 875
Joined: 23 May 2012 11:02

by Jorge Sousa » 15 Aug 2012 23:12

Hello

Yesterday, we detected a problem in grid, in ajax event javascript response, when changing the properties of grid options and grid columns in ajax events, it was a breaking bug introduced since version 929, when we change property ajax response core.

We immedeatelly released version 1.0.932. Please update to check if the issue still remains, and sorry for the inconvinience, but we really had to operate a extended change in that area.

About

- "If I want to use a specific theme, but don't want to allow the user to change the theme, what can I do?"

As is in our forum documentation, you can use

ServerController or IWForm Filesheet property and set by FileName or by Url

const
myThemeFolder = 'start'; // can be any subfolder in ui-themes folder

FileSheet.Url := 'ui-themes\' + myThemeFolder + '\jquery-ui.css';

Best Regards

cgdevtools
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by Jorge Sousa » 16 Aug 2012 09:47

It's version 933 sorry
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by ScottWGast » 16 Aug 2012 17:50

Thank you for the pointer about setting the theme :)

For some reason my CGJQGrid is not maximizing even if I start with a maximized browser window, the grid maximizes horizontally (left to right), but it doesn't maximize vertically (top to bottom). The height actually stays the same no matter what size the browser window is. I have the grid.Align := alClient.

Scott
ScottWGast
 
Posts: 875
Joined: 23 May 2012 11:02

by Jorge Sousa » 16 Aug 2012 18:50

Hi Scott

Can you send us, by email, the grid dfm part or grid properties changed at run-time?

Regards

cgdevtools
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by ScottWGast » 16 Aug 2012 19:59

I have emailed a small .zip file containing the necessary files to duplicate the issue.

Thanks!
Scott
ScottWGast
 
Posts: 875
Joined: 23 May 2012 11:02

by Jorge Sousa » 16 Aug 2012 20:56

Scott

Damn bad news

The problem is IW , i just tested in 12.2.8

In IW11 works fine

If you use a region instead of the grid you'll see the same result.

Could you please confirm with a a simple region?

We'll see what is wrong in order to help Atozed fix this

Regards

cgdevtools
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by ScottWGast » 16 Aug 2012 21:27

Yes, I believe that I have already confirmed that the problem exists using a simple region... at least, I placed the CGJQGrid on a TIWRegion, hoping that would fix the problem, but it didn't.
Thanks for the confirmation, hopefully Atozed will be able to get it fixed.

Oh... do you want me to report it to Atozed, or will you do that?

Best,
Scott
ScottWGast
 
Posts: 875
Joined: 23 May 2012 11:02

by Jorge Sousa » 16 Aug 2012 21:59

ScottG said


Oh... do you want me to report it to Atozed, or will you do that?
Scott


I've already informed Atozed about the bug, I'm sure that will be fixed very soon.

However, this is a problem that we might fix and set permanentelly, on our side, setting the style to 100%, like it was supposed to be, in my opinion.

Btw, the OnSubGridExpanded it's ready and it's easy to work with, thanks for the suggestion.

And 12.2.8 too

We will try to fix Align in time for next release.

Best Regards

cgdevtools
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by ScottWGast » 16 Aug 2012 22:11

Awesome. I appreciate your willingness to try and incorporate suggestions/features that we can use out here in real-world development :-) It sure looks like I will be able to exclusively use CG Tools for all of my Intraweb development!

Thanks again for the great tools.

Scott
ScottWGast
 
Posts: 875
Joined: 23 May 2012 11:02

Next

Return to General - Archive

Who is online

Users browsing this forum: No registered users and 3 guests

Contact Us.