Sunday 29 June 2014

Telerik Reporting using objectDataSource

Create a Class Library name: MyClassT
Open Class file, change ckass name: Address
Add below code
namespace MyClassT
{
public class Address
{
string _Address1 = "My Address";
public string Address1
{
get
{
return _Address1;
}
set
{
_Address1 = value;
}
}
}
}
Add new item
Select Reporting
Select Telerik reportiing
Open tool box
select telerik reporting Q3
Select ObjectDataSource
Drag into report design
You will gt : objectDataSource1
Right click on : objectDataSource1
Click on COnfigure
You will get prompt
Select Available data source types
expand MyClassT
Select : Address
Click Next
Select : No data source number
Click Finish
Now you will have all variables in objectDataSource1
In Visual Studio-->Telerik (in top menu..)-->Reporting-->Data expolrer
Select Field Drag in the design...
Click on Preview...
That's it...............