Hide Panel of field data is null

6 posts, 1 answers
  1. Kaushal
    Kaushal avatar
    47 posts
    Member since:
    Sep 2010

    Posted 31 May 2011 Link to this post

    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
  2. Peter
    Admin
    Peter avatar
    1611 posts

    Posted 31 May 2011 Link to this post

    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
  3. DevCraft banner
  4. Kaushal
    Kaushal avatar
    47 posts
    Member since:
    Sep 2010

    Posted 01 Jun 2011 Link to this post

    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
  5. Answer
    Peter
    Admin
    Peter avatar
    1611 posts

    Posted 01 Jun 2011 Link to this post

    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
  6. karthik
    karthik avatar
    1 posts
    Member since:
    Mar 2015

    Posted 18 Mar 2015 Link to this post

    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.
  7. Nasko
    Admin
    Nasko avatar
    909 posts

    Posted 21 Mar 2015 Link to this post

    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.

     
Back to Top
DevCraft banner