how to make filter from aspx screen

6 posts, 0 answers
  1. Mohammed
    Mohammed avatar
    87 posts
    Member since:
    Aug 2011

    Posted 18 Feb 2013 Link to this post

    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
  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 19 Feb 2013 Link to this post

    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!

  3. DevCraft banner
  4. Mohammed
    Mohammed avatar
    87 posts
    Member since:
    Aug 2011

    Posted 19 Feb 2013 Link to this post

    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
  5. Mohammed
    Mohammed avatar
    87 posts
    Member since:
    Aug 2011

    Posted 19 Feb 2013 Link to this post

    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
  6. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 19 Feb 2013 Link to this post

    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!

  7. Mohammed
    Mohammed avatar
    87 posts
    Member since:
    Aug 2011

    Posted 23 Feb 2013 Link to this post

    Thanks very much
    Regards,
    Mohammed
Back to Top
DevCraft banner