4 Replies Latest reply on Jul 11, 2019 12:27 PM by MJavier

    Avoid resizing of grid columns

    MJavier

      Hi,

       

      Is there a way to avoid the users from resize the column width?

       

      Thanks,

      Javier

        • 2. Re: Avoid resizing of grid columns
          MJavier

          Thanks Oleh for the reference.  It works perfectly.

           

          I was able to use:

           

          function(config) {

              config.defaultGridViewOptions = {

                  resizeColumns: false

              }

              return config;

          }

           

          But if I use this to avoid resize and the reorder of columns I got nothing.  A blank page.

           

          function(config) {

              config.defaultGridViewOptions = {

                  reorderColumns: false

                  resizeColumns: false

              }

              return config;

          }

           

          The same with using it two times:

           

          function(config) {

              config.defaultGridViewOptions = {

                  reorderColumns: false

             }

              return config;

          }

           

          function(config) {

              config.defaultGridViewOptions = {

                  resizeColumns: false

              }

              return config;

          }

           

          How can I avoid the resize and reorder at the same time?

           

          Thanks for your help!

          • 3. Re: Avoid resizing of grid columns
            Oleh Tyshchenko

            Javier Porrata wrote:

             

            But if I use this to avoid resize and the reorder of columns I got nothing. A blank page.

             

            function(config) {

            config.defaultGridViewOptions = {

            reorderColumns: false

            resizeColumns: false

            }

            return config;

            }

             

            If this is exact the code you have tried then a comma after "reorderColumns: false" is missing:

            function(config) {
                config.defaultGridViewOptions = {
                    reorderColumns: false,
                    resizeColumns: false
                }
                return config;
            }
            
            
            • 4. Re: Avoid resizing of grid columns
              MJavier

              Thanks Oleh!


              That was it.