This is a migrated thread and some comments may be shown as answers.

Edit Binding for a cell

1 Answer 158 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Derek
Top achievements
Rank 1
Derek asked on 23 Aug 2012, 04:57 PM
Hello All,

There is a column named "levelID", which is prepared by my DB and return to my report. The values range from 0 to 4.
Now I setup the left Padding in the cell "binding" as Style.padding.left=CStr(0.1*Fields.levelID)+'in'.which does not work.
Then i removed the "in", just setup the padding as 0.1* fields.levelID, but still not working.

Who can share some ideas on this?
Thanks in advance

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 28 Aug 2012, 02:11 PM
Hi Derek,

Paddings expect a value of Telerik.Reporting.Drawing.Unit type, which obviously cannot be set directly. You can create an User Function that returns appropriate padding value based on your levelID field and then set this user function as Expression for the Style.padding.left binding.

Kind regards,
Steve
the Telerik team

BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

Tags
General Discussions
Asked by
Derek
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or