Remove GridDateTimeColumn DateRange filter when both date pickers are blank

4 posts, 0 answers
  1. Guillermo
    Guillermo avatar
    3 posts
    Member since:
    May 2014

    Posted 19 Aug 2015 Link to this post

    Hello, I'm trying to do something pretty straightforward, I'd like to remove the filter parameters from my grid results when clearing the two datepickers from the griddatetime column daterange filter. Example (From: 01/01/2015 To: 02/01/2015....results in data between that date range, If I were to clear the two datepickers, the grid does not return ALL records nor does it even do a postback like any other filter types that get cleared.

     

    Here is my markup.

    <telerik:GridDateTimeColumn DataField="AssignedDate" DataType="System.DateTime"   DataFormatString="{0:d}" FilterControlAltText="Filter AssignedDate column" HeaderText="Assigned Date" SortExpression="AssignedDate" EnableRangeFiltering="true" PickerType="DatePicker" UniqueName="AssignedDate" ShowFilterIcon="false" AutoPostBackOnFilter="true" >
     <HeaderStyle  HorizontalAlign="Center" Width="300px" />
    <ItemStyle   HorizontalAlign="Center" />
    </telerik:GridDateTimeColumn>

  2. Eyup
    Admin
    Eyup avatar
    3690 posts

    Posted 24 Aug 2015 Link to this post

    Hello Guillermo,

    I've already replied to your query in your formal support ticket with ID:964007. I suggest that we continue our conversation on the mentioned thread.

    Regards,
    Eyup
    Telerik
    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. Guillermo
    Guillermo avatar
    3 posts
    Member since:
    May 2014

    Posted 24 Aug 2015 in reply to Eyup Link to this post

    Thank you Eyup for your reply and the posted solution. I was able to find something very similar in that you would need to add a clear button to clear the filters however, for the purpose of consistency, I'd like to see how we could clear the filter automatically when both date pickers get cleared. I'll be waiting for your reply.

    Thanks and regards,

    Guillermo

  4. Eyup
    Admin
    Eyup avatar
    3690 posts

    Posted 27 Aug 2015 Link to this post

    Hi Guillermo,

    I believe the matter is resolved in the mentioned support ticket thread. If new questions arise, I suggest that you post them there.

    Regards,
    Eyup
    Telerik
    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
Back to Top