[CLOSED] Infinite Scrolling with MVC

Page 2 of 2 FirstFirst 12
  1. #11
    I provided an example in the first post of this thread. I mentioned that it does not work ("The control with ID '_str' not found") when i use PageProxy. After investigating better i think that i found a bug in ComponentLoader.ToJason:
    {
        store: {
            model: Ext.define(Ext.id(), {
                extend: "Ext.data.Model",
                fields: [{
                    name: "ID"
                }, {
                    name: "Name"
                }],
                idProperty: "ID"
            }),
            storeId: "_str",
            proxy: {
                type: "page",
                reader: {
                    type: "json",
                    root: "data",
                    totalProperty: "total"
                },
                url: "/Example/Test/"
            },
            buffered: true
        },
        id: "_grd",
        height: 200,
        xtype: "grid",
        title: "example",
        columns: {
            items: [{
                id: "ID",
                dataIndex: "ID",
                text: "_clnID"
            }, {
                id: "Name",
                dataIndex: "Name",
                text: "_clnName"
            }]
        },
        viewConfig: {
            xtype: "gridview",
            trackOver: false
        },
        listeners: {
            afterrender: {
                delay: 100,
                fn: function (item) {
                    var me = this;
                    me.store.prefetch({
                        start: 0,
                        limit: 0
                    });
                }
            }
        }
    }
    in the code above the storeId is the defined as "_str" but ComponentLoader did not set the id of the store.
    Last edited by Daniil; Apr 12, 2012 at 1:39 PM. Reason: Please use [CODE] tags
  2. #12
    There is
    storeId: "_str"
    in the script you posted. It's the ID that you set up.

    There is another problem. The Exception you mentioned means that a Store instance cannot be found on server side. And, really, there is no Store instance on server side, because you render it within a controller action.

    Generally, PageProxy should not be used with MVC at all.
  3. #13
    I´ve just updated from svn and it still does not work.

    i´m running the example with the following dlls references

    Ext.Net 2.0.4449.39235
    Ext.Net.Utilities 2.0.0.189
    Newtonsoft.Json 4.0.8.0
    Transformer.NET 2.0.0.3590

    any suggestion?
  4. #14
    You should update Ext.NET from:
    http://svn.ext.net/premium/branches/2.0/Ext.Net/
  5. #15
    thank you .. please mark it as solved
Page 2 of 2 FirstFirst 12

Similar Threads

  1. [CLOSED] Infinite Scrolling
    By rnachman in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Aug 09, 2012, 5:03 PM
  2. [CLOSED] Infinite Scrolling Grid with GridFilter feature - JavaScript Error
    By MacGarnicle in forum 2.x Legacy Premium Help
    Replies: 8
    Last Post: Apr 04, 2012, 2:06 PM
  3. [CLOSED] Infinite Scrolling
    By rnachman in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 09, 2011, 6:15 PM
  4. [CLOSED] Tab Content Scrolling
    By rcaunt in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Sep 02, 2009, 1:21 PM
  5. [CLOSED] Tab Scrolling
    By Immobilmente in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Dec 23, 2008, 5:09 PM

Posting Permissions