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 ???
5 Answers, 1 is accepted
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 Bind to a BusinessObject help article.
Regards,
Nasko
Telerik
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 ?????
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