FireCommandEvent for client side

5 posts, 0 answers
  1. Sanjeev
    Sanjeev avatar
    17 posts
    Member since:
    Jun 2007

    Posted 10 Mar 2010 Link to this post

    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
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 10 Mar 2010 Link to this post

    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.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Sanjeev
    Sanjeev avatar
    17 posts
    Member since:
    Jun 2007

    Posted 10 Mar 2010 Link to this post

    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


  5. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 11 Mar 2010 Link to this post

    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
  6. Sanjeev
    Sanjeev avatar
    17 posts
    Member since:
    Jun 2007

    Posted 23 Mar 2010 Link to this post

    Hi,
    Thanks it's working for me.

    Thanks,
    Sanjeev
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017