This is a migrated thread and some comments may be shown as answers.

Filter Between Dates on enter

1 Answer 62 Views
Filter
This is a migrated thread and some comments may be shown as answers.
Curt
Top achievements
Rank 1
Curt asked on 10 Mar 2011, 10:40 PM
Hi,

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. 

Thanks

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 16 Mar 2011, 10:42 AM
Hi Curt,

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

JS:
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!
Tags
Filter
Asked by
Curt
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or