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

Fields value in code

1 Answer 280 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
David Hosey
Top achievements
Rank 1
David Hosey asked on 26 Sep 2008, 04:10 PM
Hello,

When I use expression to bound a value to a textbox I would have something like this:
this.textBox2.Value = "=Fields.JobID";
Now, how can I access this value in the code.
I tried:
string str = textbox2.value.ToString();
but I got "=Fields.JobID" which I expected to get an integer number.
I also tried string str = "=Fields.JobID" and it didn't work either.
How can I get this fields value in the code.

Many thanks

1 Answer, 1 is accepted

Sort by
0
Hrisi
Telerik team
answered on 29 Sep 2008, 02:37 PM
Hello David Hosey,

Please take into account that report events are raised during processing stage of the report and you should use Telerik.Reporting.Processing namespace. In the ItemDataBinding event you can modify the expression trough Value property and in ItemDataBound you can get value of the evaluated expression.

All the best,
Hrisi
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
David Hosey
Top achievements
Rank 1
Answers by
Hrisi
Telerik team
Share this question
or