10 Answers, 1 is accepted
Currently the only way to pass value from the Silverlight client to the report which resides on the server is described in the Programmatic Initialization of Report Parameter Values in Telerik Reporting Silverlight Viewer.
All the best,
the Telerik team
So, currently this function not working? What will happened with this parameters passed to this function? Is it possible to "catch" them before report is built?
If this isn't possible, how can I have a user press a button on a silverlight web front end, and have the server render and save a report based upon the information that the user was viewing on the silverlight front end.
I suppose I must use the report viewer on my client side?
It seems that you had used the Report Parameter definition item instead of the processing counterpart. The definition report parameter value is actually the default value. However the sender of the event is always the processing counterpart of the data item and you can use it to access the processing report parameter that exposes the processing value.
Generally the report parameters are optimized for use in expressions. Still if you have to access the report parameter value in code we highly recommend to review the Using Report Parameters programmatically help article.
the Telerik team
As in the thread I am using below code to send report parameters
But in my report even if I try to look at processing report params, I do not get any value back. Please let me know how I can get the parameter values back in the report? I am not using Telerik report viewer.
You can access the parameter values with expression:
If you want to access the value from event:
I need those params to query the database and bind the data to my report. I have tried both:
private void Report_NeedDataSource(object sender, EventArgs e)
but both are coming as null. Can you please put some insight on this.
Your code seems correct but have in mind that the keys are case sensitive. I have noticed that once you refer the parameter as AgentID and the second time you use for key AgentId.