Skip to content

Infragistics Community Forum / Web / Ultimate UI for ASP.NET Web Forms / Data Filter on a right aligned column – want to left align just the filter cell

Data Filter on a right aligned column – want to left align just the filter cell

New Discussion
Colin
Colin asked on Apr 18, 2011 5:23 PM

The filter in the price column has a very cramped area to enter data

Try filtering prices greater than £100 and you can see why it may look a lot better if the filter itself was left aligned, whilst still leaving the rest of the column right aligned.

Or, maybe just give the user more space to enter the filter criteria.

 

Sign In to post a reply

Replies

  • 0
    [Infragistics] Aaron Marisi
    [Infragistics] Aaron Marisi answered on Oct 11, 2010 6:21 PM

    Hi Socrates,

    For this particular styling customization, you should set float:left; on the .igg_Office2007BlueFilterButton class found on the ig_dataGrid.css file

    If you wanted to avoid modifying the Infragistics styles, you could create your own css class and set it to the FilterButtonCssClass off of the Filtering behavior.

    Feel free to follow up with any further questions about this.

    • 0
      Colin
      Colin answered on Oct 13, 2010 7:30 PM

      Hi Aaron,

      I tried both methds and am pleased to say that they both work.

      I usually don't like to modify infragistics styles so this is what I did in the .aspx file:

                                      <ig:Filtering FilterButtonCssClass="LeftFilter">
                                      </ig:Filtering>

      and in my own style sheet:

       .LeftFilter{
          float:left;
       background-color:Transparent;
       border-style:solid;
       border-width:0px;
       height: 18px;
       }

      • 0
        [Infragistics] Aaron Marisi
        [Infragistics] Aaron Marisi answered on Oct 14, 2010 7:21 PM

        Awesome, thanks for sharing!

  • 0
    [Infragistics]SGowdra
    [Infragistics]SGowdra answered on Sep 22, 2010 9:29 PM

    Hello Socrates, Thank you for sharing the sample. It looks like, this issue is caused due to the CssClass property applied to Price column under 'BoundDataField' and 'Header' element. Please update or remove the CssClass as shown below in order to get this working.

    Hope this helps. Please let me know if you have any questions.

    Sincerely,

    Swetha

    <

     

     

     

    ig:BoundDataField DataFieldName="ProductPrice" Key="ProductPrice" DataFormatString="{0:c}" Hidden="False">

    <Header Text="Price" />

    </ig:BoundDataField>

  • 0
    Colin
    Colin answered on Sep 27, 2010 12:58 PM

    Hello Swetha,

    Yes, of course, removing the cssclass (from the ProductPrice data field) does indeed move the filter to the left and permit sufficient room for filter data to be entered.

    However, this completely misses the point!!!

    It is NORMAL practice to right align currency columns. So let us return to doing what is right.

    The Price Column needs to be right aligned, but we either need to left align the filter cell or find a way of permitting a larger sized input area for the filter data.

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Colin
Favorites
0
Replies
8
Created On
Apr 18, 2011
Last Post
14 years, 10 months ago

Suggested Discussions

Created by

Created on

Apr 18, 2011 5:23 PM

Last activity on

Feb 26, 2026 7:14 PM