locked
store temporarily bulk data in browser while postback RRS feed

  • Question

  • User-257070954 posted

    Hi All,

                 Is there any way to store bulk data in browser while postback as JSON format temporarily?

    Thursday, September 5, 2019 8:55 AM

All replies

  • User753101303 posted

    Hi,

    You have maybe https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage depending on what is and how long you need this ("bulk data" and "while postback" is a bit vague).

    IMO just explain  what you are trying to do regardless of any technical consideration (or you are trying to preserve files selected using input type=file accross postbacks ???)

    Thursday, September 5, 2019 9:02 AM
  • User-257070954 posted

    When I click one menu JSON data will populate in the grid. when I click second menu I want to minimize first grid data and show second menu data. When I click minimized data first grid data I want to show that data again but no need to bring data from the database instead already loaded data need to populate.  This is trying to do

    Friday, September 6, 2019 8:26 AM
  • User753101303 posted

    It seems you are just hiding/showing UI elements and that it could be done without a full postback ? You could cache the http request. Or use local storage. If you really need caching could it be that it is costly because you are showing way too much data ?

    Edit: I don't find this but you posted previously about showing 9000 rows for importing bulk data ? I  never go through showing all those data on a single page when doing imports.

    Friday, September 6, 2019 8:36 AM
  • User61956409 posted

    Hi binustrat,

    binustrat

    When I click one menu JSON data will populate in the grid. when I click second menu I want to minimize first grid data and show second menu data. When I click minimized data first grid data I want to show that data again but no need to bring data from the database instead already loaded data need to populate.  This is trying to do

    If you store the data on client side in localStorage etc, on click event of your menu(s), you can determine which menu is clicked and dynamically generate/populate the grid using JavaScript based on the data that you stored in web browser client.

    Besides, you can try another approach: generate two gird based on returned data while page is ready, and dynamically control the visible of these two grid based on which menu is clicked.

    With Regards,

    Fei Han

    Friday, September 13, 2019 7:34 AM