Hi,
Basically i want to fire the following server side code
GridFilteringItem filterItem = (GridFilteringItem)((RadComboBox)o).NamingContainer;filterItem.FireCommandEvent("Filter", new Pair("Contains", this.UniqueName));
form client side when we press the enter key at the input box having the autocomplete enable in the grid.
Thanks in advance,
Sanjeev
4 Answers, 1 is accepted
0
Shinu
Top achievements
Rank 2
answered on 10 Mar 2010, 10:26 AM
Hello Sanjeev,
You can invoke trigger specific command for the grid using fireCommand from client side. The method is called for the GridTableView client instance.
Refer the following documentation for more information about using fireCommand from client side.
-Shinu.
0
Sanjeev
Top achievements
Rank 1
answered on 10 Mar 2010, 12:29 PM
thanks for the help, i tried the
fireCommand("Filter", "OrderID", 10255, Telerik.Web.UI.GridFilterFunction.Contains)
but it always shows error for index out of range....
Thanks,
Sanjeev
0
Princy
Top achievements
Rank 2
answered on 11 Mar 2010, 08:02 AM
Hi,
Try the js below to filter from the client side :
JS:
Thanks,
Princy
Try the js below to filter from the client side :
JS:
function FilterColumn() { |
var masterTable = $find("<%= RadGrid1.ClientID %>").get_masterTableView(); |
masterTable.filter("ProductName", "Maruti", Telerik.Web.UI.GridFilterFunction.Contains,true); |
return false; |
} |
Thanks,
Princy
0
Sanjeev
Top achievements
Rank 1
answered on 23 Mar 2010, 12:17 PM
Hi,
Thanks it's working for me.
Thanks,
Sanjeev