I want to display value of textbox like treeview in table report item. I am using one database field to set the left padding. But it does not work. If I use html preview it shows as expected but not in normal preview / silverlight application.
This is what i am doing:
in textbox bindings property I added one new binding with the following:
Property Path : Style.Padding.Left
Expression: = GetLeftPadding(CDbl(Fields.Lvl))
What could the reason? Any help would be appreciated.
Thanks
This is what i am doing:
public
static
Telerik.Reporting.Drawing.Unit GetLeftPadding(
double
lvl)
{
if
(lvl <= 1)
return
Telerik.Reporting.Drawing.Unit.Pixel(0);
else
return
Telerik.Reporting.Drawing.Unit.Pixel(lvl * 15);
}
in textbox bindings property I added one new binding with the following:
Property Path : Style.Padding.Left
Expression: = GetLeftPadding(CDbl(Fields.Lvl))
What could the reason? Any help would be appreciated.
Thanks