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

Force grid to query after short time delay

4 Answers 282 Views
Grid
This is a migrated thread and some comments may be shown as answers.
PH
Top achievements
Rank 2
PH asked on 06 Apr 2009, 08:11 PM
Hello All,

Newbie alert! 

I am evaluating Telerik with Linq to Sql after a somewhat disappointing experience with another leading component suite in this area.  So far, so good.

However, there's just one thing I miss from the competitor's suite: is it possible to have the grid automatically execute a query after a short time delay after the user stops typing in query criteria in the filter row? (or when they tab out of a field).

Our users have become very used to this way of working, and I'm concerned some will sit staring at the grid after they've entered their search params wondering why it's not doing anything!  I've found myself doing just that, and it's a bit boring to have to set the comparison operator every time and it just doesn't feel very slick.

Ideally there'd be a property or two I can set - probably to set a time delay, default comparison operator for each field - that type of thing.

Is this possible without resorting to lots of Javascript?

Many thanks,
Peter Hearn

4 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 09 Apr 2009, 11:00 AM
Hello chairmaker,

While this functionality is not available out-of-the-box, it can be achieved via a relatively small amount of Js. For example, you can use the default postback on filter, which is a column property, and will trigger filtering with the default contains/equal options, once the user loses focus of the filter textbox.
Alternatively, you can use a client side onblur event, to make an AjaxRequest to the server, from where you can directly trigger the selection for the datasource control.
I hope this information gets you started properly.

Greetings,
Yavor
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
PH
Top achievements
Rank 2
answered on 14 Apr 2009, 12:13 PM
Dear Yavor,

Thanks for your reply.  The AutoPostBackOnFilter property is 99% of what I want here - having to click the filter menu, then choose an operator was too clunky for our everyday needs.  That said, the ability to do that to set special comparison operators if needed is a great feature, so best of both worlds there.  Nice one TeleRik!

Another question on grids, and it's probably another silly one at that...

When I create a templated edit form, what action should the "Save" and "Cancel" buttons perform to persist the data back to the database?  I tried entering a "CommandName" of "Update" but nothing happened.  I just know I'm going to say "doh!" when you tell me - assuming you do!

Thanks,
Peter
0
Yavor
Telerik team
answered on 17 Apr 2009, 07:59 AM
Hello chairmaker,

The following article contains additional information on the command names.
In addition to this, you need to keep in mind that triggering the command is only half the work - if you have not configured the control for automatic operations, you will need to update the contents manually.
I hope this information helps.

Sincerely yours,
Yavor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
PH
Top achievements
Rank 2
answered on 17 Apr 2009, 08:22 AM
Thanks Yavor - that's perfect. 

I'm very impressed with telerik's documentation.  Hopefully I can now complete our evalutaion successfully.

Appreciate it!
Peter
Tags
Grid
Asked by
PH
Top achievements
Rank 2
Answers by
Yavor
Telerik team
PH
Top achievements
Rank 2
Share this question
or