Find FilterCriteria clientside

2 posts, 0 answers
  1. Ahmed Ilyas
    Ahmed Ilyas avatar
    51 posts
    Member since:
    Feb 2010

    Posted 04 Apr 2012 Link to this post

    using RadControls I believe - how can I get the filter type chosen by the user on clientside, so I can do a filter based upon that.
    We hit a problem with date filtering so if we do an Equals, it will not find the date since the time is not considered when performing the filtering.


    telerik:GridDateTimeColumn FilterControlWidth="60px" AllowFiltering="true" AutoPostBackOnFilter="false"
                            CurrentFilterFunction="Contains" HeaderStyle-HorizontalAlign="Center" DataField="DateTime"
                            HeaderText="Date" SortExpression="DateTime" ShowFilterIcon="true" UniqueName="DateTime"
                            PickerType="DatePicker" DataFormatString="{0:g}" DataType="System.DateTime">
                            <HeaderStyle Width="100px" HorizontalAlign="center"></HeaderStyle>
                            <ItemStyle HorizontalAlign="center" Width="100px"></ItemStyle>

    So we have the datetimes showing.
    But at this point, how can I intercept the filtering on the clientside, so I can then also get the input they have entered to filter textbox/datepicker then append say "00:00:00" to that value, finally doing the filter.

    how can I do this?
  2. Pavlina
    Pavlina avatar
    6187 posts

    Posted 05 Apr 2012 Link to this post

    Hi Ahmed,

    I noticed that you have opened a duplicate post on the same matter. Please, refer to the other forum post for additional information.

    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top