aggrid-groupingtable not readOnly

Forum to discuss the new web client version of Servoy.

aggrid-groupingtable not readOnly

Postby briese-it » Thu Oct 08, 2020 11:39 am

Hello,
Iam creating a new project for NG-client and have a problem with the aggrid-groupingtable.
We are using browse/edit mode and therefore it's necessarry to switch between readonly/readWrite at runtime.

The columns in my aggrid-groupingtable have an ID and editType and I want to make the whole table readonly based on the current status. Normally I use controller.readonly = true. This is working fine on detail forms with fields but the columns in the grid are still editable.
I tried setReadOnly on the columns, too, but nothing changed.

Is this a bug or what am I doing wrong?
Michael Harms
Briese Schiffahrts GmbH & Co.KG, Germany
- Servoy 2020.3.3.3565_LTS Running on Windows 2019 DataCenter - MSSQL2017 & PostGreSQL
User avatar
briese-it
 
Posts: 171
Joined: Mon Jun 20, 2011 1:50 pm
Location: Leer, Germany

Re: aggrid-groupingtable not readOnly

Postby Gabi Boros » Thu Oct 08, 2020 12:40 pm

hi,
use the setReadOnly api, see here: https://github.com/Servoy/aggridcompone ... -table-api
Gabi Boros
Servoy
Gabi Boros
 
Posts: 399
Joined: Tue Jun 26, 2007 4:03 pm
Location: Timisoara, Romania

Re: aggrid-groupingtable not readOnly

Postby briese-it » Thu Oct 08, 2020 1:15 pm

Hello Gabi,
it doesn't work as you can see in the attachments. :-(
Any ideas?

grid.png

grid2.png
You do not have the required permissions to view the files attached to this post.
Michael Harms
Briese Schiffahrts GmbH & Co.KG, Germany
- Servoy 2020.3.3.3565_LTS Running on Windows 2019 DataCenter - MSSQL2017 & PostGreSQL
User avatar
briese-it
 
Posts: 171
Joined: Mon Jun 20, 2011 1:50 pm
Location: Leer, Germany

Re: aggrid-groupingtable not readOnly

Postby Gabi Boros » Thu Oct 08, 2020 1:39 pm

just did a quick test, for me it works fine; can you replicate in a sample when it does not work?
Gabi Boros
Servoy
Gabi Boros
 
Posts: 399
Joined: Tue Jun 26, 2007 4:03 pm
Location: Timisoara, Romania

Re: aggrid-groupingtable not readOnly

Postby briese-it » Thu Oct 08, 2020 3:35 pm

Hi,
yes, I created a small sample solution. See the file attached.
You do not have the required permissions to view the files attached to this post.
Michael Harms
Briese Schiffahrts GmbH & Co.KG, Germany
- Servoy 2020.3.3.3565_LTS Running on Windows 2019 DataCenter - MSSQL2017 & PostGreSQL
User avatar
briese-it
 
Posts: 171
Joined: Mon Jun 20, 2011 1:50 pm
Location: Leer, Germany

Re: aggrid-groupingtable not readOnly

Postby Gabi Boros » Thu Oct 08, 2020 4:19 pm

I see the issue and created a ticket for this ( https://support.servoy.com/browse/SVY-15512 ) - it is a regression in 2.6.0 (2.5.1 should work fine)
Gabi Boros
Servoy
Gabi Boros
 
Posts: 399
Joined: Tue Jun 26, 2007 4:03 pm
Location: Timisoara, Romania

Re: aggrid-groupingtable not readOnly

Postby briese-it » Thu Oct 08, 2020 4:34 pm

Perfect, many thanks for your quick support.
Michael Harms
Briese Schiffahrts GmbH & Co.KG, Germany
- Servoy 2020.3.3.3565_LTS Running on Windows 2019 DataCenter - MSSQL2017 & PostGreSQL
User avatar
briese-it
 
Posts: 171
Joined: Mon Jun 20, 2011 1:50 pm
Location: Leer, Germany

Re: aggrid-groupingtable not readOnly

Postby Gabi Boros » Fri Oct 09, 2020 2:26 pm

the issue has been fixed in the just released version 2.6.2 of NG Grids
Gabi Boros
Servoy
Gabi Boros
 
Posts: 399
Joined: Tue Jun 26, 2007 4:03 pm
Location: Timisoara, Romania


Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 6 guests