Menu

Two implementations

2007-07-16
2013-04-22
  • Ivo Baehr - IbTech

    Hello...

    I don't knhow if here is the place to put "sugestions", but let's go...

    I would like two implementations in the jst table.

    First:
    - When I am working with multi-select tables (the "check box" selection), I would like to have a flag to show or not the "all selection checkbox" (that check box that's show in the table head). Some times I don't want to allow the user to select all options.

    Second:
    - When I am working with multi-select tables (the "check box" selection), I would like to have a flag to indicate that a confirm message should be asked when the user unchek a row. Well, let's try explain: When a user uncheck a "row", he has to answer a confirm question: Do you really want uncheck this row? (something like this) . And only if the user confirm this message, then the value is unchecked.

    Well, I don't knhow if this implementations is possible or not, but for me, it's really importants.
    Thank's

     
    • Luis Fernando Planella Gonzalez

      Hi!
      Those two requests will be on the next version (2.1.6).
      By now, you can download the latest CVS version of JavaScripTable.js and set:

      table.showSelectAll = false; // The select all checkbox won't be displayed

      table.onSelectionChange = function (rowId, selected) {
          if (!selected && !confirm("Are you sure?")) {
              table.setSelection(rowId, true);
              return false;
          }
      }

      To download, use http://javascriptools.cvs.sourceforge.net/\*checkout*/javascriptools/javascriptools2/js/original/JavaScripTable.js?content-type=text%2Fplain

       
      • Ivo Baehr - IbTech

        Thank's Luis!!

        This is really important for my application!!

        I will get the new version!!!

        Ivo Baehr Junior...

         

Log in to post a comment.