Hi
I earlier wrote a post on how to do what was almost a cross join and how to print this using Telerik Reporting, this was currently not very easy.
I figured that the best way simply was to load the data into a Object List and the bind the report to the list.
This all works very well however what iam wondering now is whether it is possible to call a function of the object from the report.
Currently iam using the two last functions to allow me access to the function from Telerik reporting, however this gives me quite some redundant code.
Is there any way to call this function directly or is this the only way ?
I earlier wrote a post on how to do what was almost a cross join and how to print this using Telerik Reporting, this was currently not very easy.
I figured that the best way simply was to load the data into a Object List and the bind the report to the list.
This all works very well however what iam wondering now is whether it is possible to call a function of the object from the report.
public string getDayShift(int mDay) |
{ |
foreach(shift mShift in myShifts) { |
if ((int)mShift.Start.DayOfWeek==mDay) { |
return mShift.ToString(); |
} |
} |
return ""; |
} |
public string getShift1 |
{ |
get { return getDayShift(1); } |
set { } |
} |
public string getShift2 |
{ |
get { return getDayShift(2); } |
set { } |
} |
Currently iam using the two last functions to allow me access to the function from Telerik reporting, however this gives me quite some redundant code.
Is there any way to call this function directly or is this the only way ?