[CLOSED] Is there any method to fetch previously loaded records along with the newly loaded records

  1. #1

    [CLOSED] Is there any method to fetch previously loaded records along with the newly loaded records

    Attached Thumbnails Click image for larger version. 

Name:	1.JPG 
Views:	29 
Size:	30.6 KB 
ID:	5869   Click image for larger version. 

Name:	2.JPG 
Views:	29 
Size:	33.1 KB 
ID:	5870  
    Last edited by Daniil; Mar 28, 2013 at 4:21 AM. Reason: [CLOSED]
  2. #2
    Hi Tarun Chand,

    Do you use the latest sources from the trunk?

    Recently, I worked on a similar issue and it appears to maintain selection fine across the pages if PruneRemoved="false".

    If you use the latest, please provide a full test case to reproduce.
  3. #3
    Attached Thumbnails Click image for larger version. 

Name:	SelectAllMissing.JPG 
Views:	26 
Size:	30.4 KB 
ID:	5879   Click image for larger version. 

Name:	CheckboxSelection1.JPG 
Views:	20 
Size:	36.6 KB 
ID:	5880   Click image for larger version. 

Name:	CheckboxSelection2.JPG 
Views:	23 
Size:	37.8 KB 
ID:	5881  
  4. #4
  5. #5
    Quote Originally Posted by Daniil View Post
    It forces to be false for a buffered store.

    Is it reproducible in all browsers? Could you provide a sample to reproduce?
    Hi Daniil, I tried in IE 8 and Mozilla Firefox , the same issue is occuring in both the browsers.

    PFA sample.
    Attached Files
  6. #6
    Thank you.

    Please post the sample directly here wrapping in [CODE] tags.

    Also please make a standalone ASPX page putting the code behind directly to ASPX page.
    Forum Guidelines For Posting New Topics

    No need to create a new post, please edit the existing one.
  7. #7
    Quote Originally Posted by Tarun Chand View Post
    Hi Daniil, as suggested by you, posting the sample directly here wrapping in [CODE] tags.

    PFA sample.
    public partial class Scrolling : System.Web.UI.Page
        protected void Page_Load(object sender, EventArgs e)
            Session["SummaryData"] = GetTabGridData();
        private void CreateColumns(DataTable dtTabs)
            for (int j = 0; j < dtTabs.Columns.Count; j++)
                Ext.Net.Column col = new Ext.Net.Column();
                col.ID = GridPanel1.ID + "_Col_" + j.ToString();
                col.Text = dtTabs.Columns[j].ToString();
                col.DataIndex = dtTabs.Columns[j].ToString();
        private void BindStore(DataTable dtTabs)
            JsonReader ar = new JsonReader();
            Store store = GridPanel1.GetStore();
            Model model = null;
            if (store.Model.Count > 0)
                model = store.Model[0];
                model = new Model();
                model.ID = "Model_" + store.ID;
            for (int i = 0; i < dtTabs.Columns.Count; i++)
                    ModelField mf = new ModelField(dtTabs.Columns[i].ToString());
        protected void Store_ReadData(object sender, StoreReadDataEventArgs e)
            Store store = (Store)sender;
            int start = e.Start,
                limit = e.Limit;
            Random randow = new Random();
            DateTime now = DateTime.Now;
            DataTable dtGridData = (Session["SummaryData"] != null) ? (DataTable)Session["SummaryData"] : GetTabGridData();
            Session["SummaryData"] = dtGridData;
            DataTable data = new DataTable();
            data = dtGridData.Clone();
            //for (int i = start + 1; i <= start + limit; i++)
            int indexLimit = (start + limit) > dtGridData.Rows.Count ? dtGridData.Rows.Count : start + limit;
            for (int i = start; i < indexLimit; i++)
                DataRow dr = dtGridData.Rows[i];
            store.Data = data;
            e.Total = dtGridData.Rows.Count;
        private DataTable GetTabGridData()
            DataTable dtTabs = new DataTable();
            for (int i = 0; i < 5000; i++)
                DataRow dr = dtTabs.NewRow();
                dr["Employee"] = "Employee_" + (i.ToString());
                dr["Department"] = (i % 2 == 0) ? true : false;
                dr["Area"] = "City_" + (i.ToString());
                dr["Country"] = "Country_" + (i.ToString());
            return dtTabs;


    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Scrolling.aspx.cs" Inherits="Scrolling" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <form id="form2" runat="server">
            <ext:ResourceManager ID="ResourceManager1" runat="server" />
            <ext:Window ID="Window1" runat="server" Title="Adding tab" Width="700" Height="600"
                Icon="Link" Layout="BorderLayout" MaskDisabled="false">
                <ext:Panel ID="pnl1" runat="server" Closable="false">
                                    <ext:GridPanel ID="GridPanel1" runat="server" Width="500" Height="500" DisableSelection="false">
                                            <ext:Store ID="store1" runat="server" Buffered="true" PageSize="50" TrailingBufferZone="10"
                                                LeadingBufferZone="10" OnReadData="Store_ReadData">
                                                            <ext:JsonReader Root="data" />
                                                    <ext:Model ID="Model1" runat="server">
                                                            <ext:ModelField Name="Employee" />
                                        <ColumnModel ID="ColumnModel1" runat="server">
                                                <ext:Column ID="Column1" runat="server" Text="Employee" DataIndex="Employee">
                                            <ext:GridFilters ID="gridFilter" runat="server" >
                                                    <ext:ListFilter DataIndex="Employee" StoreID="store1" LabelField="test">
                                        <ext:CheckboxSelectionModel runat="server" PruneRemoved="false"></ext:CheckboxSelectionModel>
  8. #8
    Thank, but seems you missed this comment.
    Quote Originally Posted by Daniil View Post
    No need to create a new post, please edit the existing one.
    Well, no problem, let's leave the things as they are.

    I am unable to reproduce the problem. I tested in FireFox and IE9. It allows to select/check rows without an error.

    Also to run your sample I had to remove the GridFilters because of its ListFilter throws the "this.store is undefined" JavaScript error.

    This leads me to assume that you are reproducing the problem with another sample (maybe, your real page). So, please ensure the sample you posted does reproduce the issue.

Similar Threads

  1. Replies: 2
    Last Post: Dec 08, 2011, 1:00 PM
  2. Replies: 5
    Last Post: Jun 14, 2011, 11:47 AM
  3. [CLOSED] Update records subcollection with set() method?
    By PatrikG in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Oct 26, 2010, 12:29 PM
  4. Replies: 3
    Last Post: Jun 29, 2010, 2:54 PM
  5. GridPanel Loaded
    By Dominik in forum 1.x Help
    Replies: 1
    Last Post: Mar 24, 2010, 11:25 AM

Posting Permissions