[CLOSED] Store Loaded and access data in Store from cs use sqldatasource

Page 1 of 2 12 LastLast
  1. #1

    [CLOSED] Store Loaded and access data in Store from cs use sqldatasource

    <ext:Store runat="server" ID="storeBirimler" DataSourceID="sdsBirimler">
                <Model>
                    <ext:Model runat="server" IDProperty="birimler_id">
                        <Fields>
                            <ext:ModelField Name="birimler_id" />
                            <ext:ModelField Name="iliski_id" />
                            <ext:ModelField Name="iliski_id_root" />
                            <ext:ModelField Name="birim_adi" />
                      </Fields>
                    </ext:Model>
                </Model>
            </ext:Store>
    When the store is loaded by the code needed to access the data in the store. How can I do this?
    Last edited by Daniil; Feb 17, 2015 at 11:39 AM. Reason: [CLOSED]
  2. #2
    Hi @siyahgul,

    You can submit submit a Store's/GridPanel's data to server. Here is a couple of examples.
    https://examples2.ext.net/#/GridPane...mit_to_Handler
    https://examples2.ext.net/#/GridPane...bmit_Two_Grids
  3. #3
    I don't want to use the grid panel.
  4. #4
    You can submit a Store's data.
  5. #5
    Can I access data in store by cs ? ex: storeBirimler.GetRange(0);
  6. #6
    A short answer is no. For details, please read this thread.
    http://forums.ext.net/showthread.php?10705
  7. #7
    Value="GridPanel1.getRowsValues()"
    this is examples use the grid panel. We disagree.
    Last edited by Daniil; Feb 11, 2015 at 10:45 AM. Reason: Please use [CODE] tags
  8. #8
    For a Store you can use
    store.getRecordsValues();
  9. #9
    scenario

    Click image for larger version. 

Name:	senaryo.png 
Views:	5 
Size:	30.2 KB 
ID:	20961
  10. #10
    //source side
    <ext:Button ID="btnTest" runat="server">
                                <Listeners>
                                    <Click Handler="
                                                App.direct.btnTestClick(App.storeBirimler.getRecordsValues(),
                                                {
                                                    eventMask: {
                                                        showMask: true,
                                                        minDelay: 500,
                                                        msg: '??leminiz yap?l?yor'
                                                    }
                                                });
                                         " />
                                </Listeners>
                            </ext:Button>
    
    //cs side
    [DirectMethod]
     public void btnTestClick(Dictionary<string, object>[] data)
    {
        foreach (Dictionary<string, object> item in data)
                    {
                        txtDragSonuc.Text += item["gnl_birimler_id"].ToString() + ",";
                    }
    }
    it's working thanks.

    2. question:

    store was loaded event ? (javascript side)
Page 1 of 2 12 LastLast

Similar Threads

  1. [CLOSED] Store in .aspx: Access to the Store from usercontrol
    By jamesand in forum 2.x Legacy Premium Help
    Replies: 9
    Last Post: Jan 17, 2014, 9:43 AM
  2. Access Store's Data From Code Behind
    By shaileshsakaria in forum 2.x Help
    Replies: 0
    Last Post: Feb 16, 2013, 7:23 AM
  3. [CLOSED] Store and SqlDataSource Rev >= 3986
    By Aurelio in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: May 06, 2012, 12:18 PM
  4. [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
  5. Replies: 1
    Last Post: May 18, 2009, 1:41 PM

Posting Permissions