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

Checking for Action triggers

1 Answer 42 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
DATEL
Top achievements
Rank 1
DATEL asked on 14 Feb 2013, 03:16 AM
Hi all. Basically the problem is that I'm trying to hide a detail if a certain field is zero. I tried using ConditionalFormatting but when I set the style to invisible, it doesn't work because the detail is invisible by default. The visibility of the detail is being controlled by an Action to toggle visibility in a textbox in another group. Is there an easy way to work around this?

I'm trying to use the Bindings property of the detail I want to hide on this condition. Here's what I'm trying to do:

=IIF(SUM(Fields.AnsweredCall) = 0, false, IIF(Telerik.Reporting.Processing.textBox49.Action = true, true, false))

How can I check from within this expression whether or not the textbox has been toggled to show the detail?

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 19 Feb 2013, 08:31 AM
Hello Steve,

Bindings are reevaluated on every collapse/expand action, so if you use binding to set the detail section visibility, or use the data binding events or other binding to set the DisplayExpandedMark property of the item having the toggle action, on every collapse/expand you will need to remember the items states - visibility or DisplayExpandedMark, in order to change only the desired one.
If you need such functionality, our Rad Grid control would be a better choice.

If you have further questions, please elaborate on the user case.

All the best,
Stef
the Telerik team

HAPPY WITH REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

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