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

[Solved] Pattern for searching data (HELP)

1 Answer 81 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jamy
Top achievements
Rank 1
Jamy asked on 21 Apr 2011, 03:41 PM
Someone please give answer... Admin?

I have asked this similar question many times and never receive any answers from this forum. Can an admin please answer this question. It can not be such an uncommon request. Even a source example from somewhere or an alternative method would be nice.

Simple scenario...

I am using a grid which does not receive data during server side binding. I have it set to use ajax binding. In my controller I use linq to sql to pull my data records by the date and time field on the records. The range I pull by is currently hardcoded in the controller. I want this to be sent from the UI obviously. 

I would like to use datetimepicker controls. One for the start date and one for the end date.

Can the grid send the values of the datetimepickers during it's ajax call to the controller?

If so, does this need to be done using a button to trigger, or can it be done when a datetimepicker value changes?

If the grid is able to refresh this way how is paging affected? If it was already sitting on page 2, will it then be sitting on page 2 of the new set of data?

Are the controls able to support this or is there a different way to accomplish the same thing using just the grid or embedded datetimepicker controls inside the grid.

SOMEONE PLEASE GIVE A LITTLE INSIGHT

1 Answer, 1 is accepted

Sort by
0
Gunnar
Top achievements
Rank 1
answered on 27 Apr 2011, 08:57 AM
Hi,

Having the same problem, I came across this:
http://stackoverflow.com/questions/2587066/passing-parameters-to-telerik-asp-net-mvc-grid

Another alternative that might be worth looking into is using Web Services.

Having previously worked with Teleric .NET ASPX, I must say that the MVC implementation seems limited in comparison, no AjaxManager etc., but with Telerik there usually is a way to be found on how to do things and this, sending search parameters, is IMHO a very basic requirement ... also think that more "true to the real" world  examples would make  the Telerik experience less frictional :)
Tags
General Discussions
Asked by
Jamy
Top achievements
Rank 1
Answers by
Gunnar
Top achievements
Rank 1
Share this question
or