Filter Between Dates on enter

2 posts, 0 answers
  1. Curt
    Curt avatar
    27 posts
    Member since:
    Jan 2011

    Posted 10 Mar 2011 Link to this post


    I am using an example of filtering between two dates in a radgrid. My issue is that when I enter the dates and click enter I get a postback and end up at my default.aspx. If I tab off I do get the desired effect of filtering of the grid and would like the same on clicking enter also. Im pretty new and could use any suggestions. 

  2. Maria Ilieva
    Maria Ilieva avatar
    4017 posts

    Posted 16 Mar 2011 Link to this post

    Hi Curt,

    Please try using the following approach:
    <ClientEvents OnCommand="GridCommand" />

    function GridCommand(sender, args) {  
        if (args.get_commandName() == "Filter") {  
            args.set_cancel(true); //stops the filter command   

    I hope this helps.

    Kind regards,
    Maria Ilieva
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  3. DevCraft R3 2016 release webinar banner
Back to Top