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

how to make filter from aspx screen

5 Answers 59 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mohammed
Top achievements
Rank 2
Mohammed asked on 18 Feb 2013, 09:59 AM
Hi team,
1-I want to have a rad ajax combobox and date picker in my aspx screen as input parameters for my report, how can I do that ? 
2- kindly let me know if I can have link buttons inside the report itself so when the user click on that link button he will go to another report in details. 
Regards,
Mohammed

5 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 19 Feb 2013, 12:52 PM
Hi Mohammed,

Up to your questions:
  1. As shown in the Using Report Parameters programmatically help article, you could assign a value to a report parameter directly like this:
    //Report1 is an instance of the report class you have created
    Report1 report = new Report1();
    report.ReportParameters["ManagerID"].Value = RadCombobox1.SelectedValue;
  2. Yes,  the functionality you describe is drill-through and you can find more information how to do it in the following help articles:
Greetings,
Steve
the Telerik team

HAPPY WITH REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

0
Mohammed
Top achievements
Rank 2
answered on 19 Feb 2013, 02:39 PM
Dear Steve,
thanks for your answer.
for the first point, I am already inside the aspx code behind and using the selected index change event for the combobox
 protected void RadComboBox1_SelectedIndexChanged(object sender, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e) {
}

i gave a report to the report parameter already and now I want to give the report parameter to the report viewer control and refresh the report.

how can i do something like that.

Regards,
Mohammed
0
Mohammed
Top achievements
Rank 2
answered on 19 Feb 2013, 02:51 PM
I did it in that way
{
var report = new Reports.SuperAccountsDetails();
        report.ReportParameters[0].Value = e.Value;
        ReportViewer1.ReportSource = report;
}
is that the best way to do it, or there another way ?

Regards,
Mohammed
0
Steve
Telerik team
answered on 19 Feb 2013, 05:17 PM
Hello Mohammed,

That seems to be a valid solution, another one would be to get the Combobox.SelectedValue from the sender object.

All the best,
Steve
the Telerik team

See what's new in Telerik Reporting Q1 2013. Register for the March 4 webinar to witness the impressive new visualizations in Telerik Reporting. Just for fun, 10 webinar attendees will be randomly selected to win a Telerik T-shirt and a $50 Gift Certificate to ThinkGeek. Register now! Seats are limited!

0
Mohammed
Top achievements
Rank 2
answered on 23 Feb 2013, 05:52 PM
Thanks very much
Regards,
Mohammed
Tags
General Discussions
Asked by
Mohammed
Top achievements
Rank 2
Answers by
Steve
Telerik team
Mohammed
Top achievements
Rank 2
Share this question
or