3 Replies Latest reply on Jan 10, 2012 4:51 AM by mcmurdosound

    disable rearrange columns of rich:extendedDT

    nimo22

      How can I disable the ability to rearrange the columns of a rich:extendedDatatable.

       

      I cannot find a property for that.

        • 1. Re: disable rearrange columns of rich:extendedDT
          mcmurdosound

          Which version of richfaces are you using?

           

          in rf3.3.x you can override the default ExtendDataTableRenderer (by editting the faces-config.xml)

           

          Removing the following block:

          writer.startElement("script", component);

                      getUtils().writeAttribute(writer, "type", "text/javascript" );

                     

          writer.writeText(convertToString("//"),null);

           

               writer.write("<![CDATA[");

               writer.write(convertToString("\n            " + convertToString(encodeDragDropChildScripts(context,component)) + ";\n            //"));

               writer.write("]]>");

           

          writer.endElement("script")

           

          should be enough!

           

           

          (But I haven't tried this before)

           

           

          This will disabled the drag and drop feature for every extendedDataTable in your project!

          • 2. Re: disable rearrange columns of rich:extendedDT
            nimo22

            Thanks for the workaround, but it should exist a property called rearrangeMode=none, for example.

            • 3. Re: disable rearrange columns of rich:extendedDT
              mcmurdosound

              I think there is currently no such property