Results 1 to 5 of 5

Thread: How to add column in AJAX gridpanel ext.Net on the click of 'Add column' option?

  1. #1
    Sencha User
    Join Date
    Dec 2011
    Posts
    6
    Vote Rating
    0
      0  

    Default How to add column in AJAX gridpanel ext.Net on the click of 'Add column' option?

    How to add column in AJAX gridpanel ext.Net on the click of 'Add column' option?
    The grid data is coming from DB.
    Please provide the code for the same.

  2. #2
    Sencha User tobiu's Avatar
    Join Date
    May 2007
    Location
    Munich (Germany)
    Posts
    2,751
    Answers
    130
    Vote Rating
    129
      0  

    Default

    these are the ext js 4 forums, if your question is not only related to the JS part (clientside) and to ext 4, it might make more sense to use the ext.net forums. at least i am not familiar with their framework & changes they have made.
    Best regards
    Tobias Uhlig

  3. #3
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,171
    Answers
    3985
    Vote Rating
    1437
      0  

    Default

    After an Ajax call... you should be able to build a new columns Array and use reconfigure on the grid.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  4. #4
    Sencha User
    Join Date
    Jun 2010
    Location
    Buenos Aires, Argentina
    Posts
    213
    Answers
    2
    Vote Rating
    10
      0  

    Default

    yourGridInstance.headerCt.add({xtype: 'gridcolumn', .......});

  5. #5
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,171
    Answers
    3985
    Vote Rating
    1437
      0  

    Default

    Quote Originally Posted by ldonofrio View Post
    yourGridInstance.headerCt.add({xtype: 'gridcolumn', .......});
    Good luck now with hiding columns. reconfigure needs to be used, not just simply adding it to the headerCt.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •