[CLOSED] Item Count for Store - Server Side

  1. #1

    [CLOSED] Item Count for Store - Server Side

    What is the most efficient way to get the item count of a store on the server side. Don't want have to bind if the Products store is already loaded. Is there anyway to cast the Store to a DataTable to get item count.

    protected void BindProductsGrid()
        //Want to see what the item count is before binding
        this.Product.DataSource = Quote.QuoteUtil.GetProductsForPRP();
    <ext:Store ID="Product" runat="server" ShowWarningOnFailure="false"
            <ext:JsonReader ReaderID="atnProductVersionId">
                    <ext:RecordField Name="atnProductVersionId" Type="Int" />
                    <ext:RecordField Name="strProductVersionNumber" Type="String" />
                    <ext:RecordField Name="strProductName" Type="String" />
                    <ext:RecordField Name="strProductSize" Type="String" />
                    <ext:RecordField Name="strProductType" Type="String" />
                    <ext:RecordField Name="strProductVersionMessages" Type="String" />
                    <ext:RecordField Name="strProductVersionBackOrderMessage" Type="String" />
                    <ext:RecordField Name="bitHideBackProductVersion" Type="Boolean" />
  2. #2

    RE: [CLOSED] Item Count for Store - Server Side


    You have to pass store's count from client side. For example with ExtraParams of the AjaxEvent (or BaseParams of the Store)
    To get store's count use the following js code


Similar Threads

  1. Replies: 3
    Last Post: Dec 26, 2011, 1:32 PM
  2. Replies: 1
    Last Post: Dec 01, 2010, 5:14 PM
  3. Replies: 0
    Last Post: Oct 25, 2010, 9:49 AM
  4. How to fire server side event for menu item.
    By Satyanarayana murthy in forum 1.x Help
    Replies: 5
    Last Post: Dec 03, 2009, 10:55 AM
  5. multi select add selected item on server side
    By [WP]joju in forum 1.x Help
    Replies: 4
    Last Post: Jan 09, 2009, 7:01 AM

Posting Permissions