Filter with DatePicker formatting

2 posts, 0 answers
  1. Samuel
    Samuel avatar
    1 posts
    Member since:
    Mar 2014

    Posted 06 Nov 2015 Link to this post

    I have a RadGrid with a GridDateTimeColumn, with a DatePicker filter.   The From & To inputs with calendar popup appear in the filter row.   I would like to have this split across 2 lines as it makes the column very wide - and it's a waste of space.    I have tried setting the FilterControlWidth and that just changes the size of the input text box.    Here is the aspx code for the column and a pic of the column:  

                        <telerik:GridDateTimeColumn  DataField="CreateDate" SortExpression="create_dt" UniqueName="CreateDate" 
                            PickerType="DatePicker" DataType="System.DateTime" DataFormatString="{0:MMM d, yyyy}"
                            EnableRangeFiltering="true" FilterDateFormat="MMM d, yyyy" 
                            HeaderStyle-Wrap="true" FilterControlWidth="120px">
                                <HeaderStyle Width="100px" Wrap="true"></HeaderStyle>     


    How do I go about getting the filter row to wrap or split across 2 lines?





  2. Maria Ilieva
    Maria Ilieva avatar
    4017 posts

    Posted 11 Nov 2015 Link to this post

    Hello Samuel,

    Unfortunately the required functionality can not be achieved with the range filtering feature. In this case I would suggest you to create a Filter Template with two date picker control to implement the range filtering and also achieve the required rendering.

    I hope this helps.

    Maria Ilieva
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft R3 2016 release webinar banner
Back to Top