Jan 09, 2013, 7:09 PM
[CLOSED] FireEvent('selectionchange')
I figured I could try to get a simple answer without a sample while driving home on my 2 hour commute. If need be I can work up an example tonight.
I have the following:
Second question:
What is the difference between adding a listener for the SelectionChange event to a RowSelectionModel vs a GridPanel?
I have the following:
...
<script type="text/javascript" >
function selectRequestRow(selectionModel, records) {
...
}
</script>
...
<ext:GridPanel ID="RequestGridPanel" runat="server" >
...
<SelectionModel>
<ext:RowSelectionModel runat="server" Mode="Single" AllowDeselect="true" />
</SelectionModel>
<Listeners>
<SelectionChange Fn="selectRequestRow" />
</Listeners>
</ext:GridPanel>
I would like to fire the SelectionChange event in a certain situation on the clientside. I thought all I had to do was: #{RequestGridPanel}.fireEvent('selectionchange');
and the default parameters would automatically be passed.Second question:
What is the difference between adding a listener for the SelectionChange event to a RowSelectionModel vs a GridPanel?
Last edited by Daniil; Jan 15, 2013 at 4:10 AM.
Reason: [CLOSED]