Apr 27, 2009, 4:44 AM
[CLOSED] Focus removing on Grid
Hi,
I'm using gridpanel which has row selection. when i select a row the selected row record value is taken and its works fine but when i click new button in toolbar i want to clear the focus of grid row selection .. i need this urgent...
I'm using gridpanel which has row selection. when i select a row the selected row record value is taken and its works fine but when i click new button in toolbar i want to clear the focus of grid row selection .. i need this urgent...
<ext:GridPanel ID="GrdPnl1" Height="505" TrackMouseOver="true" AutoScroll="true" runat="server" StoreID="Store1">
<ColumnModel> </ColumnModel>
<SelectionModel>
<ext:RowSelectionModel ID="RowSelectionModel1" runat="server" SingleSelect="true">
<Listeners>
<RowSelect Handler="b(GrdPnl1,rowIndex,b)" />
</Listeners>
</ext:RowSelectionModel>
</SelectionModel>
</ext:GridPanel>
<script type="text/javascript">
function b(value, meta, record) {
var LV_User = GrdPnl1.getSelectionModel().getSelections();
document.getElementById("H_Btn_User").value = LV_User;
Coolite.AjaxMethods.bindUser();
}
</script>
i use like this... plz help in this how to remove focus on new button click...