Report preview not showing the table data

6 posts, 0 answers
  1. rambo
    rambo avatar
    4 posts
    Member since:
    Jun 2016

    Posted 18 Jun Link to this post

    hi,I.m trying to create a Report for My application . i'm using telerik Reporting R2 2016.

    Actually i add the New item telerik reporting R2 2016(blank) in  my  project . After i create an object data source and i choose the data Source member as a class Constructor. And i add a Table Wizard in detail section (report) and i Choose the Field also . The probelm is preview of report is not showing the table ( i mean it 's empty ) .Why ???

     

  2. Nasko
    Admin
    Nasko avatar
    909 posts

    Posted 22 Jun Link to this post

    Hello Rambo,

    The ObjectDataSource component can work with the object types listed in the Supported object types section. To use the class constructor, the class itself should implement a required interface or inherit one of the supported types. For example:
    public class Cars : List<Car>
    {
        public Cars()
        {
            Car car;
            car = new Car("Honda", "NSX GT", 2003 });
            this.Add(car);
     
            car = new Car("Nissan", "Skyline R34 GT-R", 2005 });
            this.Add(car);
        }
    }

    Otherwise, you will need to create a data retrieval method. For more information, please refer to the How to: Bind to a BusinessObject help article.

    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
  3. DevCraft banner
  4. rambo
    rambo avatar
    4 posts
    Member since:
    Jun 2016

    Posted 23 Jun Link to this post

    Hi Nasko ,
            Thanks a lot .. for the response,

           I'm struggling one more problem ,that's in Telerik reporting Graph. Actually i'm using object data source as a DataSource. the Data Source member has   datetime data type and Double data type. My problem in,  graph is not  populate the data.

    i Set the Coordniate System  property  has  Cartesian Coordniate System and   X  Axis- DateTime , Y Axis - Numerical value..

    Actually i do know why the graph is not populating  ?????
     

  5. rambo
    rambo avatar
    4 posts
    Member since:
    Jun 2016

    Posted 23 Jun Link to this post

    when i create graph wizard the graph is looking somwe raw value ??? Why ?
  6. rambo
    rambo avatar
    4 posts
    Member since:
    Jun 2016

    Posted 23 Jun in reply to rambo Link to this post

    When i set the X axis as date Time , the graph is showing some raw chunk data in the graph . the graph picture in above .
  7. Nasko
    Admin
    Nasko avatar
    909 posts

    Posted 24 Jun Link to this post

    Hello Rambo,

    The XAxis should be configured to use a DateTime scale. In this scenario, you will need to set the DateTimeScale properties such as BaseUnit and LabelUnit. If you do not set these properties, the graph might display too many axis labels and fill the whole graph with the raw chunk of data you are observing. For example, if you have data for a time span of a couple of years but the label unit and base unit are set to display every single hour on the axis, you will get so many axis labels that the graph won't be readable.

    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
DevCraft banner