Page 1 of 1

JQRegion visibility

PostPosted: 23 Sep 2014 16:53
by MarcoRu
Hi all,
I'm having a problem with a JQMemo. I want to make it visible at runtime, but I am not succeeding. I have a region with a memo in it. The region is on a JQgrid (see attached picture).

Immagine.jpg


In IWCGJQFrameCreate I set IWCGJQRegionMemo.Visible := false. What should I do to make it visible and hide it at runtime? I try to set IWCGJQRegionMemo.Visible := true but doesen't work, it works only if in IWCGJQFrameCreate I set IWCGJQRegionMemo.Visible := true, but I don't want to see it on form create.

Thanks

Re: JQRegion visibility

PostPosted: 23 Sep 2014 17:05
by Jorge Sousa
you must set the parent's RenderInvisibleControls=True of that JQRegion

only in new IW 14.0.33, RenderInvisibleControls=True is by default, in fact this was our suggestion.

for all the previous versions RenderInvisibleControls=False, which means that it doesn't render the region, and since is not rendered you cannot turn it visible because it's not there, in the html.

Re: JQRegion visibility

PostPosted: 23 Sep 2014 17:22
by MarcoRu
The parent's RenderInvisibleControls is set to true (of gridFatture), but don't work :roll:

Re: JQRegion visibility

PostPosted: 23 Sep 2014 17:39
by Jorge Sousa
Hi again

What's the parent of IWCGJQRegionMemo? What's its RenderInvisibleControls value?

Can you send me that form by email or here? t.i.a.

Re: JQRegion visibility

PostPosted: 24 Sep 2014 08:25
by MarcoRu
Hi, the parent of IWCGJQRegionMemo is gridFatture, and his RenderInvisibleControls is set to true. In attach the .pas and .dfm files.

Thanks

Re: JQRegion visibility

PostPosted: 24 Sep 2014 10:44
by Jorge Sousa
Hello

The problem is that your IWCGJQRegionMemo is over the Grid, and this make the region appears on bottom of the grid, did you noticed?

Recheck the attached files with our changes.

Btw, could you please tell us what are the IW and CG versions that you've installed?

Re: JQRegion visibility

PostPosted: 24 Sep 2014 12:34
by Jorge Sousa
Btw

Use Grid.OnSort instead of JqGridOptions.OnSortCol

Re: JQRegion visibility

PostPosted: 24 Sep 2014 14:01
by MarcoRu
Thanks,
I'm using IW 14.0.32 and CG 2.1.0.3701