Oct 16, 2013, 8:59 PM
[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
Am I missing something obvious?
Thanks!
PTR
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]