This is a migrated thread and some comments may be shown as answers.

FireCommandEvent for client side

4 Answers 151 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sanjeev
Top achievements
Rank 1
Sanjeev asked on 10 Mar 2010, 09:59 AM
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

Sort by
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.

fireCommand

-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:
 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
Tags
Grid
Asked by
Sanjeev
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Sanjeev
Top achievements
Rank 1
Princy
Top achievements
Rank 2
Share this question
or