headercontextmenufilter + ListTextField

2 posts, 0 answers
  1. Lasly
    Lasly avatar
    115 posts
    Member since:
    Nov 2009

    Posted 05 Dec 2011 Link to this post

    I have the problem Filtering By ListTextField for GridDropDownColumn
    (http://www.telerik.com/help/aspnet/grid/grdfilteringbylisttextfieldforgriddropdowncolumn.html)
    but i use the HeaderContextMenu.


    i tryed  without  success


    Can you help me?


     
    switch (e.CommandName.ToLower())
               {
                   case  "headercontextmenufilter":
                       Triplet headercommand = (Triplet)e.CommandArgument;
                       Pair command = (Pair)headercommand.Second;
     
                       if (headercommand.First.ToString().ToLower() == "fg")
                   {
                       e.Canceled = true;
                      /// GridFilteringItem filter = (GridFilteringItem)e.Item;
                       GridHeaderItem filter= (GridHeaderItem)e.Item;

  2. Lasly
    Lasly avatar
    115 posts
    Member since:
    Nov 2009

    Posted 05 Dec 2011 Link to this post

    I reproduced the proposed solution for the filter context menu. ( GridHeaderItem )

    case "headercontextmenufilter":
                       
                       Triplet headercommand = (Triplet)e.CommandArgument;
                       Pair command = (Pair)headercommand.Second;
     
                       if (headercommand.First.ToString().ToLower() == "fg")
                       {
                            GridHeaderItem filter = (GridHeaderItem)e.Item;
     
                            ((filter["descrizione"].Controls[0]) as TextBox).Text = ((filter["fg"].Controls[0]) as TextBox).Text;
                            command.Second = "descrizione";
                            filter.FireCommandEvent("Filter", new Pair(command.First, "descrizione"));
                       }
     
                       break;

    but I can not apply this solutionbecause it slows

    thank you anyway

  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top