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

Hide Panel of field data is null

5 Answers 1066 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Kaushal
Top achievements
Rank 1
Kaushal asked on 31 May 2011, 11:53 AM
Hi,

Here i need to hide the panel if some field data contains null value. I have tried by condition formatting and also from code behind on item data bound event but still its no give me desired result.

Please assist me for the same.

Thanks & Regards,

Kaushal Jani

5 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 31 May 2011, 05:40 PM
Hi Kaushal,

Generally to check for null our suggestion is to utilize IsNull(expression, ReplacementValue) as shown in the following formating rule.
 Expression  Operator  Value
=IIF(IsNull(Fields.MyValues,True),True,False)   = =True 

Give it a try and if you still experience any difficulties we will highly appreciate if you elaborate further on your scenario and the unexpected behavior you have experienced.

Kind regards,
Peter
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Kaushal
Top achievements
Rank 1
answered on 01 Jun 2011, 08:50 AM
Hi Peter,

Thanks for your quick response. As you told I applied same for the panel but panel gives me only conditional formatting not "Expression". Here I am going to attach image in which I have described my problem also for your better understanding.

Thanks again for your reply.

Thanks & Regards,

Kaushal Jani
0
Accepted
Peter
Telerik team
answered on 01 Jun 2011, 03:43 PM
Hi Kaushal,

The sample I have shared in my previous post represents the formatting rule dialog that has an expression column.

About your shrinking questions, generally report sections/items can't shrink but can grow. As a workaround our suggestion is to set the corresponding items height to small value in the report's constructor. This way the items/sections and their parent sections/items will grow only when necessary. Check out the following code snippet:

    public partial class Report1 : Telerik.Reporting.Report
    {
        public Report1()
        {
            //
            // Required for telerik Reporting designer support
            //
            InitializeComponent();
            this.detail.Height = Unit.Pixel(1);
        }
............

Best wishes,
Peter
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
karthik
Top achievements
Rank 1
answered on 18 Mar 2015, 11:15 AM
Hi,
   I generate a report design with 5 panels.these panels are should be populate depend up on the data.I done it it's looks good.But my problem is ex.(if i generate 2nd panel it's displays the 2nd panel but it occupy the whole report's (5 panels height) design hide reaming pages generated as blank pages).How can i handle this situation.

Thanks.
0
Nasko
Telerik team
answered on 21 Mar 2015, 08:13 AM
Hello Karthik,

Report items can be hidden or displayed by default, or displayed conditionally using Conditional Formatting or Bindings.
In reports with complex layout, changing the visibility of an item does not guarantee that the space it occupies would be filled in by the items below or to the right of it.
The visibility rules which apply when rendering report items can be found in the Design Considerations for Report Item Layout help article. Please check these rules and design your report accordingly.

Regards,
Nasko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
General Discussions
Asked by
Kaushal
Top achievements
Rank 1
Answers by
Peter
Telerik team
Kaushal
Top achievements
Rank 1
karthik
Top achievements
Rank 1
Nasko
Telerik team
Share this question
or