Jun 12, 2009, 4:38 AM
GridPanel Selection Ajax Event
Hi There,
I have a GridPanel that is contained within a Panel:
The problem is that this AJAXEvent seems to be firing at around 10 times a second. This keeps going and never stops. I have looked over the example GridPanel and Form combination that you have in the examples but I cannot see any difference.
Any help would be greatfully recieved
Thanks
Sam
I have a GridPanel that is contained within a Panel:
<ext:GridPanel TrackMouseOver="true" ID="GridPanel1" StoreID="strCampaignStore" runat="server" StripeRows="true" Height="200">
<ColumnModel ID="ColumnModel2" runat="server">
<Columns>
<ext:Column ColumnID="CampaignName" DataIndex="CampaignName" Header="Campaign Name" Width="130">
</ext:Column>
<ext:Column ColumnID="CampaignDescription" DataIndex="CampaignDescription" Header="Campaign Description" Width="260">
</ext:Column>
<ext:Column ColumnID="CampaignBody" DataIndex="CampaignBody" Header="Campaign Body" width="410">
</ext:Column>
</Columns>
</ColumnModel>
<BottomBar>
<ext:PagingToolBar ID="PagingToolBar1" runat="server" PageSize="10" StoreID="strCampaignStore" />
</BottomBar>
<SelectionModel>
<ext:RowSelectionModel runat="server" SingleSelect="true">
<AjaxEvents>
<RowSelect OnEvent="RowSelect">
<EventMask ShowMask="true" Target="CustomTarget" CustomTarget="#{pnDetails}" />
<ExtraParams>
<ext:Parameter Name="CampaignID" Value="this.getSelected().id" Mode="Raw" />
</ExtraParams>
</RowSelect>
</AjaxEvents>
</ext:RowSelectionModel>
</SelectionModel>
</ext:GridPanel>
It has an AJAX selection model that fires when a row has been selected. This AJAX method then fires on the serverside to populate a form with the details supplied from the GridPanel.The problem is that this AJAXEvent seems to be firing at around 10 times a second. This keeps going and never stops. I have looked over the example GridPanel and Form combination that you have in the examples but I cannot see any difference.
Any help would be greatfully recieved
Thanks
Sam