Access to Store after PostBack...

  1. #1

    Access to Store after PostBack...

    Hi,

    Me again....

    Whenever I make a request to the server, whether by doing a PostBack or using an AjaxEvent, my Store goes null and so my Grid gets emptied of its rows upon return. The only way to solve this is to keep binding the data to the Store.

    I'm having a problem with that solution because there is a Form that is used to filter the records which are retrieved from the database and loaded in the Store. With the above solution I would have to use the details in the form to know what data to get, but the that information can be changed.

    I neet to be able to access the data that is in the Store on the server-side without me having to go back to the database. Is there a property or something that can solve this?
  2. #2

    RE: Access to Store after PostBack...

    Still no help?
  3. #3

    RE: Access to Store after PostBack...

    Did you try putting

    if (!IsPostBack && !Ext.IsAjaxRequest){}
    around the code that fills your store?
  4. #4

    RE: Access to Store after PostBack...

    I don't understand how that would help... I know I'm doing an AjaxRequest.

    The problem is that after I send the request and I attempt to access the DataSource of my store on the Server-Side, the DataSource is empty even if there were records in it before. I need to know whether or not its possible to make them remain there and if posible how.

    This is my exact scenario:
    I want to double click a row in a grid and show a window with additional information relating to that row. I'm doing it with AjaxEvent because I need data from other tables.


    In the interim I will load all the data that I require in the store and then create the window on the client, but this will result in a huge amount of records in the store which makes sorting that much slower.

Similar Threads

  1. Store OnLoad called on every postback
    By wexman in forum 1.x Help
    Replies: 1
    Last Post: Nov 17, 2011, 11:53 AM
  2. [CLOSED] Access Grid Data Store and manually store to database
    By macap in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Oct 05, 2011, 8:52 AM
  3. [CLOSED] Access Store of ComboBox
    By csharpdev in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Nov 16, 2010, 11:46 AM
  4. Store Object being set to null on postback
    By wh0urdady in forum 1.x Help
    Replies: 0
    Last Post: Jun 28, 2010, 6:20 PM
  5. [CLOSED] PostBack store
    By randy85253 in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: May 01, 2010, 9:58 AM

Posting Permissions