# GridColHeader´s Visibleprop issue

**URL:** <https://techcommunity.softwareag.com/t/gridcolheader-s-visibleprop-issue/198520>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, NaturalONE, Natural-for-AJAX\
**Created:** [March 13, 2018, 4:18pm UTC](https://techcommunity.softwareag.com/t/gridcolheader-s-visibleprop-issue/198520 "2018-03-13T16:18:14Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frederico\_Machado1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/frederico_machado1/32/1208_2.png) [@Frederico\_Machado1](https://techcommunity.softwareag.com/u/Frederico_Machado1)\
**Post date:** [March 13, 2018, 4:18pm UTC](https://techcommunity.softwareag.com/t/gridcolheader-s-visibleprop-issue/198520/1 "2018-03-13T16:18:14Z")

</div>

Hi everyone,

I am developing a page layout with a RowTableArea where one of it columns I wanna hiding and showing according to my need. For this, I am using the property VisibleProp of the GridColumnHeader. When i set this variable name and save the page layout, this variable not appears in the adapter. I´ve already tried everything to make it appears, no success. Any ideas? I am using Software AG Designer 1.10, Natural One 8.4.1, Natural Engineer 8.3.2

Is there a bug or something in this property?

---

<div class="post-metadata">

**Author:** ![Christine\_Zimmermann](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@Christine\_Zimmermann](https://techcommunity.softwareag.com/u/Christine_Zimmermann)\
**Post date:** [March 13, 2018, 10:00pm UTC](https://techcommunity.softwareag.com/t/gridcolheader-s-visibleprop-issue/198520/2 "2018-03-13T22:00:03Z")

</div>

Hi Frederico,

property names must start with a lower case character. The reason is that NJX must follow Java and XML naming rules because the data binding is implemented in Java and XML.

You’ll see a small error message in the status bar of your Eclipse. See screenshot.

Best Regards,  
Christine  
 ![Error.png](https://global.discourse-cdn.com/techcommunity/original/2X/f/fa7739dad22c7226d716639db2b8193a22fe6226.png)

---

<div class="post-metadata">

**Author:** ![Frederico\_Machado1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/frederico_machado1/32/1208_2.png) [@Frederico\_Machado1](https://techcommunity.softwareag.com/u/Frederico_Machado1)\
**Post date:** [March 14, 2018, 3:02pm UTC](https://techcommunity.softwareag.com/t/gridcolheader-s-visibleprop-issue/198520/3 "2018-03-14T15:02:40Z")

</div>

Hi Christine,

Thanks for your reply.

My bad, in my preview post I wrote "…When i set this variable name… " but I would mean "… When i set the value of this property, for instance visibleprop: w\_visible\_column … ". ( see figure 1 and 2)

The first character have been put in upper case just for highlight the properties and components from the rest of the words of my  
preview post.

Anyway, when i save the layout page, no error is triggered and the w\_visible\_column does not appear in the adapter. ( see figure 3)

Any idea what could be?

 ![figure2.png](https://global.discourse-cdn.com/techcommunity/original/2X/5/5a4f14682071fae1550071b7d0990d8a985d121f.png)  
 ![figure1.png](https://global.discourse-cdn.com/techcommunity/original/2X/6/6043c527963521cf84dcc9b58e9e1acf1ef8e3b9.png)

---

<div class="post-metadata">

**Author:** ![Frederico\_Machado1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/frederico_machado1/32/1208_2.png) [@Frederico\_Machado1](https://techcommunity.softwareag.com/u/Frederico_Machado1)\
**Post date:** [March 14, 2018, 3:04pm UTC](https://techcommunity.softwareag.com/t/gridcolheader-s-visibleprop-issue/198520/4 "2018-03-14T15:04:55Z")

</div>

I forgot the figure 3, here it goes.

 ![figure3.png](https://global.discourse-cdn.com/techcommunity/original/2X/f/f4e48d3bb61d8933d1287f0a7195881cfc7f1c26.png)

---

<div class="post-metadata">

**Author:** ![Christine\_Zimmermann](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@Christine\_Zimmermann](https://techcommunity.softwareag.com/u/Christine_Zimmermann)\
**Post date:** [April 6, 2018, 8:14am UTC](https://techcommunity.softwareag.com/t/gridcolheader-s-visibleprop-issue/198520/5 "2018-04-06T08:14:33Z")

</div>

Hi Frederico,

If you use visibleprop you need to add a propref for the gridcolheader as well.  
Could you please try if specifying a propref solves the issue?

Thanks + Best Regards,  
Christine

---

<div class="post-metadata">

**Author:** ![Frederico\_Machado1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/frederico_machado1/32/1208_2.png) [@Frederico\_Machado1](https://techcommunity.softwareag.com/u/Frederico_Machado1)\
**Post date:** [April 6, 2018, 9:44pm UTC](https://techcommunity.softwareag.com/t/gridcolheader-s-visibleprop-issue/198520/6 "2018-04-06T21:44:19Z")

</div>

Hi Christine,

I specified the propref and the issue was solved, finally the variable appeared in my adapter, but in the other hand, another issue has happened, now the column is not hidden when i run my app.

I set w\_visible\_column to false in my code but at runtime the column is not hidden. Any idea?

---

<div class="post-metadata">

**Author:** ![Christine\_Zimmermann](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@Christine\_Zimmermann](https://techcommunity.softwareag.com/u/Christine_Zimmermann)\
**Post date:** [April 12, 2018, 3:54pm UTC](https://techcommunity.softwareag.com/t/gridcolheader-s-visibleprop-issue/198520/7 "2018-04-12T15:54:34Z")

</div>

Hi Frederico,

some hints what you can check:

Did you specify firstrowcolwidths=“true” in the rowtablearea2 control?  
Did you specify a width for all your gridcolheader controls? If not, firstrowcolwidths=“true” will not be executed by the browser.

Have a look at the gridcolvisibility.xml layout of the NaturalAjaxDemos. To make hiding/showing columns work smoothly, only specify specific width for the gridcolheader and set firstrowcolwidths=“true”. The browser will render the grid just based on the column widths of the gridcolheaders. It will ignore the widths specified for the data in the repeat. The NJX framework controls the visibility via just controlling the visibility/width of the gridcolheader.

If this still does not help. Could you please attach the layout?

Thanks + Best Regards,  
Christine

---

<div class="post-metadata">

**Author:** ![Frederico\_Machado1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/frederico_machado1/32/1208_2.png) [@Frederico\_Machado1](https://techcommunity.softwareag.com/u/Frederico_Machado1)\
**Post date:** [April 18, 2018, 9:15pm UTC](https://techcommunity.softwareag.com/t/gridcolheader-s-visibleprop-issue/198520/8 "2018-04-18T21:15:30Z")

</div>

Hi Christine,

Thanks for your reply.

Yeap, I set firstrowcolwidths=“true” in the rowtablearea2 control and i set a integer value for all gridcolheader width, but still not solving my problem.

Fortunately, I had a look at the gridcolvisibility.xml as you previously mentioned and i compared it with my xml. I noticed the difference among them lay on the hdist(100%) after the last gridcolheader. That is the hack, we should place a hdist (100%) after all gridcolheaders. Issue solved at last !!! Thanks a lot for your help.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:40pm UTC](https://techcommunity.softwareag.com/t/gridcolheader-s-visibleprop-issue/198520/9 "2021-04-02T15:40:18Z")

</div>


