Add OnSubmitData event server side

  1. #1

    Add OnSubmitData event server side

    Hi,

    how can i add OnSubmitData event to the Store server side?


    I need to get:

    <ext:Store ID="StoreGrid" runat="server" OnSubmitData="exportGridPanelStore_Submit">
    After this:

    Store store = new Store();
    store.??
  2. #2
    No idea?

    Thanks
  3. #3
    Sig. Fabricio,

    I see that you answer quite quickly to all posts.

    In the past we had discussions, do you have any problems with us?


    Thank you
  4. #4
    SubmitData is an event handler, so you should be able to wire it up just like any other event handler in .NET.

    Something like the following should work:

    protected void Page_Load(object sender, EventArgs e)
    {
        Store store = new Store();
    
        store.SubmitData += exportGridPanelStore_Submit;
    }
    
    void exportGridPanelStore_Submit(object sender, StoreSubmitDataEventArgs e)
    {
        // Do something here
    }
    Hope this helps.
  5. #5
    Thank you so much Geoffrey!

    Always accurate and exhaustive.

Similar Threads

  1. [CLOSED] Direct Event arguments on server side
    By anup in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Aug 06, 2012, 8:25 PM
  2. Refresh treepanel from server side after event
    By MikeWallaroo in forum 1.x Help
    Replies: 3
    Last Post: Nov 28, 2011, 9:43 AM
  3. [CLOSED] Two column combobox server side event
    By rnachman in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Jun 17, 2011, 11:42 AM
  4. Server Side Event Handeler in gridpanel
    By mtskanso in forum 1.x Help
    Replies: 1
    Last Post: May 05, 2011, 8:50 AM
  5. Button and server side event handler
    By dan182 in forum 1.x Help
    Replies: 3
    Last Post: Jun 23, 2010, 1:06 PM

Posting Permissions