No data showing

  1. #1

    No data showing


    I have pretty much copied your FormPanel Basic example but supplying a objectDatasource instead of the sample one. I have changed the reader, the column model and TextFields to match the columns returned from my datasource, the datasource is correct, everything should be fine, but I am getting the right amount of rows but no data is showing.

    Tearing my hair out...

    I have made this code sample as simple as possible to align with your FormPanel example ...,

    <form id="Form1" runat="server">
            <ext:ResourceManager ID="ResourceManager1" runat="server" />
             <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
                OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" 
                <asp:Parameter DefaultValue="3" Name="SpecTypeId" Type="Int32" />
                <asp:Parameter DefaultValue="4" Name="Modelers_WspId" Type="Int32" />
            <ext:Store ID="Store1" runat="server">
                            <ext:RecordField Name="SpecVnId" />
                            <ext:RecordField Name="Spec"/>
                            <ext:RecordField Name="Description"/>
            <ext:Panel ID="Panel1" runat="server" Width="1000" Height="300">
                    <ext:BorderLayout ID="BorderLayout1" runat="server">
                                <ColumnModel ID="ColumnModel1" runat="server">
                                        <ext:Column ColumnID="SpecVnId" Header="SpecVnId" Width="160" DataIndex="SpecVnId" />
                                        <ext:Column Header="Spec" Width="75" DataIndex="Spec"/>
                                        <ext:Column Header="Description" Width="75" DataIndex="Description"/>
                              <ext:FormPanel ID="FormPanel1" runat="server" Title="Form Panel" Padding="5" ButtonAlign="Right">
                                    <ext:TextField ID="SpecVnId" DataIndex="SpecVnId" runat="server" FieldLabel="SpecVnId" AnchorHorizontal="95%" />
                                    <ext:TextField ID="Spec" DataIndex="Spec" runat="server" FieldLabel="Spec" AnchorHorizontal="95%" />
                                    <ext:TextField ID="Description" DataIndex="Description" runat="server" FieldLabel="Description" AnchorHorizontal="95%" />

    Code behind:
    protected void Page_Load(object sender, EventArgs e)
                if (!X.IsAjaxRequest)
                    System.Data.DataView dv = new System.Data.DataView();
                    ObjectDataSource1.SelectParameters["SpecTypeId"].DefaultValue = "3";
                    ObjectDataSource1.SelectParameters["Modelers_WspId"].DefaultValue = "4";
                    dv = (System.Data.DataView)ObjectDataSource1.Select();
                    this.Store1.DataSource = dv;
    Last edited by Daniil; Mar 22, 2012 at 8:47 AM. Reason: Please use [CODE] tags
  2. #2

    Please see the example how to use ObjectDataSource with Store.
  3. #3
    Quote Originally Posted by Daniil View Post

    Please see the example how to use ObjectDataSource with Store.
    Thanks Daniil,

    I did have a look at the ObjectDataStore sample but I hadn't noticed it was using a JsonReader rather than an ArrayReader... that did the trick.


Similar Threads

  1. Linked combo boxes not showing data
    By reezvi in forum 1.x Help
    Replies: 2
    Last Post: Aug 03, 2011, 8:33 AM
  2. GridPanel showing only one column of data
    By HexElffilter in forum 1.x Help
    Replies: 2
    Last Post: Jan 27, 2011, 4:42 PM
  3. GridPanel not showing all data
    By iltwams in forum 1.x Help
    Replies: 1
    Last Post: Oct 01, 2010, 7:09 PM
  4. Grid Panel not showing complete data
    By Nagaraj K Hebbar in forum 1.x Help
    Replies: 2
    Last Post: Aug 17, 2009, 11:42 AM
  5. GridPanel not showing data with ajaxMethod
    By fabiomarcos in forum 1.x Help
    Replies: 3
    Last Post: Aug 12, 2009, 8:50 PM

Posting Permissions