Introduce an easy way to export a Gridpanel without hidden columns by removing from XML nodes

  1. #1

    Introduce an easy way to export a Gridpanel without hidden columns by removing from XML nodes

  2. #2
    I guess that you use the following sample as base
    https://examples1.ext.net/#/GridPane...ort_Data_Ajax/

    If replace 'submitValue' function by this
    
    var submitValue = function (grid, hiddenFormat, format) {  hiddenFormat.setValue(format);  grid.submitData({visibleOnly : true});};
    then hidden columns will be excluded

    Another possible options
    // config:
        //   - selectedOnly,
        //   - visibleOnly
        //   - dirtyCellsOnly
        //   - dirtyRowsOnly
        //   - currentPageOnly
        //   - excludeId
        //   - encode
        //    - filterRecord - function (record) - return false to exclude the record
        //    - filterField - function (record, fieldName, value) - return false to exclude the field for particular record
  3. #3
    Hi Vladimir,
    I used the sample with postback.
    https://examples1.ext.net/#/GridPane...Data_PostBack/

    Also in my case I have to make store dynamically, so Ajax method does not work correctly.

Similar Threads

  1. [CLOSED] Removing BufferView HeaderRow's columns in code behind
    By deejayns in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Jan 17, 2012, 12:38 PM
  2. Export only visible columns - Gridpanel + Store
    By moth1 in forum Examples and Extras
    Replies: 3
    Last Post: Jan 11, 2011, 5:25 PM
  3. [CLOSED] TreeGrid not rendering correctly after nodes/columns change
    By jmcantrell in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jul 07, 2010, 6:52 PM
  4. [CLOSED] Hidden Columns in GridPanel?
    By state in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 02, 2009, 2:52 PM
  5. [CLOSED] Grid adding removing columns in codebehind
    By methode in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Feb 24, 2009, 2:51 AM

Tags for this Thread

Posting Permissions