[CLOSED] GridPanel Selected Items Limit

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [CLOSED] GridPanel Selected Items Limit

    Another case where I'm probably just missing something obvious ...

    Is there a practical limit as to how many items in a grid panel can be selected at one time? I'm stress testing my application, which has a grid panel with a store on it. I am using something like this

    function DeleteSelection() {
        var selectedItemsList;
        selectedItemsList = App.MyGridPanel.getRowsValues({ selectedOnly: true});
        Ext.each(selectedItemsList, function(item){
            myRecord = App.MyStore.getAt(App.MyStore.findExact("MyID",item.MyID));
            App.MyStore.remove(myRecord)
        });
        App.MyStore.commitChanges();
    }
    to remove selected items from a store like this:

    <ext:GridPanel ID="MyGridPanel" runat="server" ClientIDMode="Static" AutoScroll="true" MaxHeight="300" Title="My Items" ContextMenuID="MyContextMenu" StoreID="MyStore">
        <ColumnModel>
            <Columns>
                 <ext:Column runat="server" ID="MyIDColumnName" DataIndex="MyID" />
            </Columns>
        </ColumnModel>
        <SelectionModel>
            <ext:RowSelectionModel runat="server" ID="MySelectionModel" Mode="Multi" />
        </SelectionModel>
        <BottomBar>
            <ext:Toolbar runat="server">
                <Items>
                    <ext:Button runat="server" ID="DeleteButton">
                        <Listeners>
                            <Click Fn="DeleteSelection" />
                        </Listeners>
                    </ext:Button>
                </Items>
            </ext:Toolbar>
        </BottomBar>
    </ext:GridPanel>
    When I have about 350 items in the grid panel, and try to select a large fraction of them (usually around 40 or so), I start seeing anomalies in how the selection is highlighted. I'm also having trouble selecting the last item in the grid.

    Am I missing something obvious?

    Thanks!

    PTR
    Last edited by Baidaly; Oct 17, 2013 at 11:21 PM. Reason: [CLOSED]

Similar Threads

  1. [CLOSED] MenuPanel dymanic items are not selected
    By ermanni.info in forum 2.x Legacy Premium Help
    Replies: 6
    Last Post: May 03, 2013, 12:19 AM
  2. Drag selected items
    By Dominik in forum 1.x Help
    Replies: 1
    Last Post: Apr 11, 2012, 9:50 AM
  3. Recover values in selected items GridPanel
    By Dominik in forum 1.x Help
    Replies: 2
    Last Post: Jun 22, 2010, 8:19 AM
  4. Replies: 0
    Last Post: Feb 01, 2010, 12:42 PM
  5. Replies: 0
    Last Post: Jun 03, 2009, 5:30 PM

Tags for this Thread

Posting Permissions