Feb 06, 2009, 11:17 AM
How to clean (really) a SelectionModel ?
Hi, friends
I am in trouble and I need help, please.
I have a screen with a TabPanel. In that, there are 2 Tabs called "List" and "Edit".
When I select one row in the GridPanel of the "List", the Tab "Edit" is actived with all the fields of the form loaded to be edited or deleted. After executed a changing, deleting or inserting, the tab "List" is actived again and refreshed (with AjaxEventArgs ever).
My problem is that when I back to "List", I want <U>ever</U> clean the SelectedRecordID of the SelectionModel, because I already tried unsuccessfully:
My ASPX
My biggest problem is after a deleting, because the sm.SelectedRecordID doen't get cleaned
sm.SelectedRows.Clear() or sm.SelectedRow = (New SelectedRow())
even trying select another row in the list!
<DIV id=result_box dir=ltr style="TEXT-ALIGN: left">How to clean effectively the SelectionModel ?
<DIV id=result_box dir=ltr style="TEXT-ALIGN: left">I hope you understood my problem (and my English), sorry.
<DIV id=result_box dir=ltr style="TEXT-ALIGN: left">Thank you very much !
Eliézer
I am in trouble and I need help, please.
I have a screen with a TabPanel. In that, there are 2 Tabs called "List" and "Edit".
When I select one row in the GridPanel of the "List", the Tab "Edit" is actived with all the fields of the form loaded to be edited or deleted. After executed a changing, deleting or inserting, the tab "List" is actived again and refreshed (with AjaxEventArgs ever).
My problem is that when I back to "List", I want <U>ever</U> clean the SelectedRecordID of the SelectionModel, because I already tried unsuccessfully:
Dim sm As RowSelectionModel = Me.grdListar.SelectionModel.Primary
sm.SelectedRow = (New SelectedRow())
sm.UpdateSelection()
andDim sm As RowSelectionModel = Me.grdListar.SelectionModel.Primary
sm.SelectedRows.Clear()
sm.UpdateSelection()
My ASPX
<SelectionModel>
<ext:RowSelectionModel ID="RowSelectionModel1" runat="server" SingleSelect="true">
<AjaxEvents>
<RowSelect OnEvent="SelecionaLinha">
<EventMask ShowMask="true" Msg="Carregando..." />
</RowSelect>
</AjaxEvents>
</ext:RowSelectionModel>
</SelectionModel>
(...)My biggest problem is after a deleting, because the sm.SelectedRecordID doen't get cleaned
Dim sm As RowSelectionModel = Me.grdListar.SelectionModel.Primary
Dim intCod As Integer = CType(sm.SelectedRecordID, Integer)
even using before: sm.SelectedRows.Clear() or sm.SelectedRow = (New SelectedRow())
even trying select another row in the list!
<DIV id=result_box dir=ltr style="TEXT-ALIGN: left">How to clean effectively the SelectionModel ?
<DIV id=result_box dir=ltr style="TEXT-ALIGN: left">I hope you understood my problem (and my English), sorry.
<DIV id=result_box dir=ltr style="TEXT-ALIGN: left">Thank you very much !
Eliézer