Results 1 to 7 of 7

Thread: Exporting Grid Panel content to xml (Server Side)

  1. #1
    Sencha User
    Join Date
    Nov 2012
    Posts
    4
    Vote Rating
    0
      0  

    Default Answered: Exporting Grid Panel content to xml (Server Side)

    Hello Everyone,

    I'm developping a web application using ExtJS 4.1 components, I want to extract the content of Grid Panel to Excel format or something readable like Excel. The server side is coded with c#.
    I searched for threads in this forum, but they don't seem to work with ExtJS 4.1 version.

    Any help would be appreciable !

  2. You send the filters with the request of course and you extract the data from the database according to these filters.

    I think there are not much example found where griddata (that comes from a server) is send back to that server. Just make a request with the filters and the desired dataset and pull that data out of the database.

  3. #2
    Ext JS Premium Member tvanzoelen's Avatar
    Join Date
    Apr 2008
    Location
    Groningen - Netherlands
    Posts
    1,199
    Answers
    87
    Vote Rating
    44
      0  

    Default

    Where is the data from the grid coming from? From the server or is it user input?

  4. #3
    Sencha User
    Join Date
    Nov 2012
    Posts
    4
    Vote Rating
    0
      0  

    Default

    Quote Originally Posted by tvanzoelen View Post
    Where is the data from the grid coming from? From the server or is it user input?
    Thanks for your attention.
    It's coming from the server, specifically from a SQL database. So the server will generate the xls file and send a link to the client !

  5. #4
    Ext JS Premium Member tvanzoelen's Avatar
    Join Date
    Apr 2008
    Location
    Groningen - Netherlands
    Posts
    1,199
    Answers
    87
    Vote Rating
    44
      0  

    Default

    In that case why you don't generate a xml file directly from the database data?

    I think the best way to do it is post a request to your server (from a button in the grid or something), generate xml in stead of json and serve the file.

    Serving a file you can do with a hidden iframe

  6. #5
    Sencha User
    Join Date
    Nov 2012
    Posts
    4
    Vote Rating
    0
      0  

    Default

    The problem , is that I have a filter beside the datagrid, so i'm not willing to export the whole database, just the lines resulting from a search with this filter, unless the client chose to export all the data. So I'm guessing the whole work will be server side (c#) , I think that there are solutions to do such thing, I just can't find the right one.

  7. #6
    Ext JS Premium Member tvanzoelen's Avatar
    Join Date
    Apr 2008
    Location
    Groningen - Netherlands
    Posts
    1,199
    Answers
    87
    Vote Rating
    44
      0  

    Default

    You send the filters with the request of course and you extract the data from the database according to these filters.

    I think there are not much example found where griddata (that comes from a server) is send back to that server. Just make a request with the filters and the desired dataset and pull that data out of the database.

  8. #7
    Sencha User
    Join Date
    Nov 2012
    Posts
    4
    Vote Rating
    0
      0  

    Default

    Quote Originally Posted by tvanzoelen View Post
    You send the filters with the request of course and you extract the data from the database according to these filters.

    I think there are not much example found where griddata (that comes from a server) is send back to that server. Just make a request with the filters and the desired dataset and pull that data out of the database.
    I'll take a look at that ! thanks for the quick answer ! Have a nice day !

Posting Permissions

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