Store in MasterPage problem

  1. #1

    Store in MasterPage problem

    I canīt make that Store control work inside MasterPages! itīs me or the control??
    Thanks for your help!!

    Ariel
    Argentina
  2. #2

    RE: Store in MasterPage problem

    Hi Ariel,

    Can you post a really simplify stripped down version of how you have your pages configured and showing the relationship between the <ext:Store> and other controls (GridPanel?)?


    This might be an issue with just setting the ID of the control because in a MasterPage, the server-side ID will be different than the client-side (browser) ID. The .ClientID is always used in the JavaScript configuration. 


    Geoffrey McGill
    Founder & CEO
  3. #3

    RE: Store in MasterPage problem

    Here has the same problem in MasterPage ...

            <ext:Store ID="Store1" runat="server" OnRefreshData="MyData_Refresh">
                <Reader>
                    <ext:ArrayReader>
                        <Fields>
                            <ext:RecordField Name="company" />
                            <ext:RecordField Name="price" Type="Float" />
                            <ext:RecordField Name="change" Type="Float" />
                            <ext:RecordField Name="pctChange" Type="Float" />
                            <ext:RecordField Name="lastChange" Type="Date" DateFormat="Y-m-dTh:i:s" />
                        </Fields>
                    </ext:ArrayReader>
                </Reader>
            </ext:Store>        
            
            <ext:GridPanel 
                ID="GridPanel1" 
                runat="server" 
                StoreID="Store1" 
                StripeRows="true"
                Title="Array Grid" 
                Width="600" 
                Height="290"
                AutoExpandColumn="Company">
                <ColumnModel ID="ColumnModel1" runat="server">
                    <Columns>
                        <ext:Column ColumnID="Company" Header="Company" Width="160" Sortable="true" DataIndex="company" />
                        <ext:Column Header="Price" Width="75" Sortable="true" DataIndex="price">
                            <Renderer Format="UsMoney" />
                        </ext:Column>
                        <ext:Column Header="Change" Width="75" Sortable="true" DataIndex="change">
                            <Renderer Fn="change" />
                        </ext:Column>
                        <ext:Column Header="Change" Width="75" Sortable="true" DataIndex="pctChange">
                            <Renderer Fn="pctChange" />
                        </ext:Column>
                        <ext:Column Header="Last Updated" Width="85" Sortable="true" DataIndex="lastChange">
                            <Renderer Fn="Ext.util.Format.dateRenderer('G:i:s')" />
                        </ext:Column>
                    </Columns>
                </ColumnModel>
                <SelectionModel>
                    <ext:RowSelectionModel ID="RowSelectionModel1" runat="server" />
                </SelectionModel>
                <LoadMask ShowMask="true" />
                <BottomBar>
                    <ext:PagingToolBar ID="PagingToolBar1" runat="server" PageSize="10" StoreID="Store1" />
                </BottomBar>
            </ext:GridPanel>
    The GridPanel is function work, but the "ClientID" of "Store1" has the prefix like "ctl00_MainContent_Store1"...
    How do i set the javascript correct?
    Thanks a lot.
  4. #4

    RE: Store in MasterPage problem

    Is this the same problem I experienced with Store in contentpage when layout controls are used?

    http://forums.ext.net/showthread.php...ght=masterpage

    If so, you will have to create another content placeholder and put the store there.

Similar Threads

  1. [CLOSED] store.insert method + store page size problem
    By mcfromero in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Aug 12, 2012, 6:34 AM
  2. Problem With ScriptManager on MasterPage
    By reiben in forum 1.x Help
    Replies: 1
    Last Post: Jun 12, 2010, 8:53 PM
  3. Implementation of MasterPage
    By thchuong in forum 1.x Help
    Replies: 0
    Last Post: Apr 20, 2010, 12:14 AM
  4. [CLOSED] Problem with ajaxmethod on masterpage
    By LeeTheGreek in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jan 12, 2009, 12:39 PM
  5. Replies: 3
    Last Post: Nov 03, 2008, 1:35 PM

Posting Permissions