Central alignment of filter control

5 posts, 0 answers
  1. Indranik
    Indranik avatar
    40 posts
    Member since:
    Nov 2008

    Posted 06 Dec 2008 Link to this post

    How to align a filter control centrally?
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 07 Dec 2008 Link to this post

    Hi,

    You can set the HorizontalAlignment of the FilteringItem as shown below.

    ASPX:
      <FilterItemStyle  HorizontalAlign="Center" /> 



    Shinu.
  3. jfkrueger
    jfkrueger avatar
    269 posts
    Member since:
    Jul 2012

    Posted 05 Mar 2009 Link to this post

    This property no longer exists and I cannot get my filter textbox to be any larger or to be left-aligned. Any suggestions?
  4. Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 06 Mar 2009 Link to this post

    Hi Joe,

    Attached to this message, is a small application, which handles the functionality in question.
    I hope it helps.

    Sincerely yours,
    Yavor
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  5. stephane
    stephane avatar
    1 posts
    Member since:
    Oct 2016

    Posted 29 Jul Link to this post

    Use this

     

    protected void RadGrid1_ItemCreated(object sender, Telerik.Web.UI.GridItemEventArgs e) 
        { 
            if (e.Item is GridFilteringItem) 
            { 
                GridFilteringItem item = e.Item as GridFilteringItem; 
                item["MyColumnUniqueName"].HorizontalAlign = HorizontalAlign.Right; 
            } 
        } 

Back to Top