Currently, I am diving into the world of Ext.js and finding it to be quite distinct from the asp.net ajax library despite some initial similarities. My goal is to populate a grid with test data formatted in JSON.
The code snippet below illustrates my attempt to access the grid and its corresponding store, which are defined within the markup structure of my HTML form.
<div id="errormessage"></div>
<ext:GridPanel id="GridPanel1" runat="server" Frame="true" Title="Tasks Manager" Height="400" Width="500" StyleSpec="margin-top: 10px">
<BottomBar>
<ext:PagingToolbar runat="server" />
</BottomBar>
<Store>
... (omitted for brevity) ...
</GridPanel>
Here's the function I've written to load this setup, invoked within the Ext.onReady block of code.
loadGridStoreTestData: function (dataRec) {
... (omitted for brevity) ...
}//,
Despite trying various methods provided by the Ext.js library to access elements, I'm encountering difficulties in retrieving the grid's store element. Any guidance or insights on why I might be struggling to retrieve the store element using
*Ext.Store.Manage ..... *Ext.get(....).... *Ext.fly . . . . *gridInstance.getStore()
Any help would be greatly appreciated. Thank you!