Hi RICHARD FRIEND,
Indeed, during a Load On Demand request each control on the page is in its initial state. Additionally the ItemsRequested server-side event fires after the DataSource has been asked for data, so you cannot use this event to set control parameters even if you have their new values.
In your case, the proper solution would be the following:
- Set EnableLoadOnDemand to true and EnableAutomaticLoadOnDemand to false.
- Handle the client-side ItemsRequesting event and use the Context object to supply all of the ControlParameter's values.
- Handle the server-side ItemsRequested event and use the values in the Context object, and either supply them to the Controls, which properties are used in the ControlParameters of the data source and call its Select method or simply construct your custom query to the underlying data source by using the parameter values from the client.
I hope this helps.
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Public Issue Tracking
system and vote to affect the priority of the items