Want to handle Report Parameters server side after Report Loads(on Preview/other buttons click)

2 posts, 0 answers
  1. Adit
    Adit avatar
    14 posts
    Member since:
    Mar 2015

    Posted 08 May 2015 Link to this post

    I am using MVC Demo for Telerik Reporting. I have few questions which I really want to know before start working with Telerik Reporting.

     1.) I am binding Report Data source dynamically from code behind(on Report's Code page). Initially Report is Loading fine. What I want, when user enter value into report parameter and click on preview button.... Is that possible to handle those parameters and update object data source and update reporting from code side? Actually I don't want get whole data at time.Right now I don't find any event that give me report parameters value on Preview Button click.

     

     2.) Initially if I don't come on Report Page with whole data, Is that possible to update data-source programaticaly later. Like on Preview Button click, or any other button click out side Report  Viewer. Because I want to add one functionality  where I would have one button on Page and on click of that button I would read report Parameters and save into DB. But right now I am not able to read Report Parameters server side once Report Loaded.

     

    3.) I have added One Report parameter and trying to just display it on Designer nothing else but It is just render with initial value.Later if I change parameter to any value it doesn't reflect. Is there any problem in setting report viewer. I have checked Telerik Example and Report Parameter value get update there. So that I am sure I m missing some thing but not able to found it. 

     

     

     

     

  2. Nasko
    Admin
    Nasko avatar
    1045 posts

    Posted 13 May 2015 Link to this post

    Hello Adit,

    1. Passing report parameter values to the ObjectDataSource can be achieved using the ObjectDataSource.Parameters collection. For more information, please refer to the Using Parameters with the ObjectDataSource Component help article.

    2. To read the report parameter values programmatically you need to send these values to a user function and execute your programming logic there. For more information on the topic, please check the User Functions help article.

    3. We will need additional information about your setup in order to advise further. Note that there is a known issue when using some older versions of Newtonsoft.Json with the HTML5 Report Viewer, which will prevent the report parameter values from updating. In case you are using the HTML5 Report Viewer, please update Json.NET to the latest version and verify if it resolves the issue.


    Regards,
    Nasko
    Telerik
    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? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top