By AmineBarzegar - Wed Sep 23, 2020 3:34 pm
- Wed Sep 23, 2020 3:34 pm
#828448
Hello;
In a dynaform (for example: called "Grid Form"), I created a grid consisting of 10 columns and I want to use this dynaform as a Sub-Form in other dynaforms.
In each of the other dynaforms - which I use the "Form Grid" Sub-Form - I need some of the "Form Grid" columns and I do not need the other columns for show. So for better display, I have to reduce or increase the width of the columns with JavaScript and hide the other columns that do not need to be displayed in current dynaform. And I do this, in another dynaform, for the other columns of that grid.
For example, in dynaform "001", the columns and their widths, should look like this:
1- Width of the first column: 10%
2- Width of the second column: 15%
3- Width of the third column: 30%
4- Width of the fourth column: 17%
5- The fifth column: hidden
6- Width of the sixth column: 22%
7- The seventh column: hidden
8- The eighth column: hidden
9- Ninth column: hidden
10- The tenth column: hidden
(Total column width: 94%)
And in dynaform "002", the columns and their widths, should look like this:
1- Width of the first column: 14%
2- The second column: hidden
3- The third column: hidden
4- Width of the fourth column: 17%
5- The fifth column: hidden
6- Width of the sixth column: 22%
7- Width of the seventh column: 24%
8- The eighth column: hidden
9- Width of the ninth column: 17%
10- The tenth column: hidden
(Total column width: 94%)
Similarly, in other dynaforms, the width of each column, as well as whether or not the columns are displayed, depends on the same dynaform and in JavaScript of that dynaform will specify.
I know how to hide columns By JavaScript. But I did not find a way to change the width of the columns of that grid, using JavaScript.
Friends, can anyone help me?
Thanks a lot.
In a dynaform (for example: called "Grid Form"), I created a grid consisting of 10 columns and I want to use this dynaform as a Sub-Form in other dynaforms.
In each of the other dynaforms - which I use the "Form Grid" Sub-Form - I need some of the "Form Grid" columns and I do not need the other columns for show. So for better display, I have to reduce or increase the width of the columns with JavaScript and hide the other columns that do not need to be displayed in current dynaform. And I do this, in another dynaform, for the other columns of that grid.
For example, in dynaform "001", the columns and their widths, should look like this:
1- Width of the first column: 10%
2- Width of the second column: 15%
3- Width of the third column: 30%
4- Width of the fourth column: 17%
5- The fifth column: hidden
6- Width of the sixth column: 22%
7- The seventh column: hidden
8- The eighth column: hidden
9- Ninth column: hidden
10- The tenth column: hidden
(Total column width: 94%)
And in dynaform "002", the columns and their widths, should look like this:
1- Width of the first column: 14%
2- The second column: hidden
3- The third column: hidden
4- Width of the fourth column: 17%
5- The fifth column: hidden
6- Width of the sixth column: 22%
7- Width of the seventh column: 24%
8- The eighth column: hidden
9- Width of the ninth column: 17%
10- The tenth column: hidden
(Total column width: 94%)
Similarly, in other dynaforms, the width of each column, as well as whether or not the columns are displayed, depends on the same dynaform and in JavaScript of that dynaform will specify.
I know how to hide columns By JavaScript. But I did not find a way to change the width of the columns of that grid, using JavaScript.
Friends, can anyone help me?
Thanks a lot.