Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to Bind Store in GridPanel
    primarykey
    data
    text
    <p>i am newbie in EXT.NEt control .... i hv created a gridpanel during the design time and after that i hv created one Ext.data.Store in javascript at run time and fill the data. now how can i bind this store to gridpanel in javascript.</p> <p>GridPanel during the design time....</p> <pre><code> &lt;ext:GridPanel ID="gridpanel" runat="server" MinWidth="1000" MinHeight="400" ForceFit="true"&gt; &lt;TopBar&gt; &lt;ext:Toolbar ID="Toolbar1" runat="server"&gt; &lt;Items&gt; &lt;ext:ToolbarFill ID="ToolbarFill1" runat="server" /&gt; &lt;ext:Button ID="Button3" runat="server" Text=" Export" Icon="PageExcel"&gt; &lt;Listeners&gt; &lt;Click Handler="submitValue(#{gridpanel}, #{FormatType}, 'xls');" /&gt; &lt;/Listeners&gt; &lt;/ext:Button&gt; &lt;/Items&gt; &lt;/ext:Toolbar&gt; &lt;/TopBar&gt; &lt;ColumnModel&gt; &lt;Columns&gt; &lt;ext:Column ID="Col8" runat="server" Text="Project" DataIndex="Project"&gt;&lt;/ext:Column&gt; &lt;/Columns&gt; &lt;Columns&gt; &lt;ext:Column ID="Col1" runat="server" Text="Parcel" DataIndex="Parcel"&gt;&lt;/ext:Column&gt; &lt;/Columns&gt; &lt;/ColumnModel&gt; &lt;/ext:GridPanel&gt; </code></pre> <p>Now i create store in javascript</p> <pre><code> var store = Ext.create('Ext.data.Store', { storeId: 'mapList', fields: ['project', 'parcel'], autoLoad: true, pageSize: 10, data: listdata, proxy: { type: 'memory', reader: { type: 'json', root: 'items' } } }); var ExtGridPanel = Ext.getCmp('ContentPlaceHolder1_gridpanel'); </code></pre> <p>Now how can i bind this store to our gridPanel</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload