Cosmetic problems

5 posts, 2 answers
  1. Johnathan
    Johnathan avatar
    21 posts
    Member since:
    Jul 2010

    Posted 28 Jul 2010 Link to this post

    I have recently started using the Telerik reporting to make a multi-sourced complex report.  I have figured out how to fulfill most of my requirements, but I have two issues currently with the Telerik reporting that I have not been able to resolve.

    Issue #1:

    All of the paging/printing/exporting options at the top are doubled up.  (A colored icon and a greyed icon)  This happens regardless of the Skin that I tried.  Since the demos don't have a source option like the other Telerik controls, I have not been able to view how it was done in your demos to make the header look normal.  I have attached a small screenshot below.

    Report definition looks like this:
    <telerik:ReportViewer ID="ReportViewer1" Width="721px" Height="1100px" runat="server" 
        Report="NAVPass.Reports.AMRForm, NAVPass.Reports, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" 
        ProgressText="Generating AMR document..." Skin="Original">
    </telerik:ReportViewer>

    Issue #2:

    I have checkboxes attached to a data source.  They load correctly, but no matter what parameters I try in the properties, they always appear left justified, and I am trying to center them within the column.  I have tried the following properties:

    TextAlign : Center
    Padding->Left : [some value]
    CheckAlign : MiddleCenter
    Location->X : [some value]

    The two tables have data sources that are loaded in a fairly straightforward way:
    // Detail section
    ICollection<Inspection> inspectList = insRepo.GetInspectionsForAMR(ReportParameters["AMRID"].Value.ToString());
    tableInspections.DataSource = inspectList;
    ICollection<Equipment> equipList = equipRepo.GetEquipmentForAMR(ReportParameters["AMRID"].Value.ToString());
    tableEquipment.DataSource = equipList;

    From the designer.cs file:
    // 
    // cbRequired
    // 
    this.cbRequired.CheckAlign = System.Drawing.ContentAlignment.MiddleCenter;
    this.cbRequired.CheckedImage = ((object)(resources.GetObject("cbRequired.CheckedImage")));
    this.cbRequired.IndeterminateImage = ((object)(resources.GetObject("cbRequired.IndeterminateImage")));
    this.cbRequired.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(0.30000001192092896, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0, Telerik.Reporting.Drawing.UnitType.Inch));
    this.cbRequired.Name = "cbRequired";
    this.cbRequired.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(0.59999996423721313, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.24999998509883881, Telerik.Reporting.Drawing.UnitType.Inch));
    this.cbRequired.Style.BorderStyle.Top = Telerik.Reporting.Drawing.BorderType.Solid;
    this.cbRequired.Style.Padding.Left = new Telerik.Reporting.Drawing.Unit(0, Telerik.Reporting.Drawing.UnitType.Inch);
    this.cbRequired.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Center;
    this.cbRequired.Style.VerticalAlign = Telerik.Reporting.Drawing.VerticalAlign.Middle;
    this.cbRequired.StyleName = "";
    this.cbRequired.Text = "     ";
    this.cbRequired.UncheckedImage = ((object)(resources.GetObject("cbRequired.UncheckedImage")));
    this.cbRequired.Value = "=Fields.Required";

    Please let me know what I am doing wrong.  Thanks.
  2. Johnathan
    Johnathan avatar
    21 posts
    Member since:
    Jul 2010

    Posted 29 Jul 2010 Link to this post

    I have submitted this issue as support ticket #333497.
  3. DevCraft banner
  4. Answer
    Steve
    Admin
    Steve avatar
    10941 posts

    Posted 30 Jul 2010 Link to this post

    Hello Johnathan,

    The images from your post, lead us to think you've encountered the problem described in the following KB article: The styles of the web report viewer's toolbar are messed up.

    About the CheckBox troubles you are experiencing we will need more information in order to reproduce it. To avoid any confusion please check out the attached sample project. I have made the checkbox with the code you have provided, we would appreciate if you modify the attached project to reflect the problem.

    All the best,
    Steve
    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
  5. Johnathan
    Johnathan avatar
    21 posts
    Member since:
    Jul 2010

    Posted 30 Jul 2010 Link to this post

    Thanks.  The first problem with the styles at the top is fixed.  For the checkboxes, I didn't have to do anything to your files except add the report and the objects to my project and test it, and the problem was there immediately.  I broke it out into a new solution that had a page that displays nothing but the report and the collection of objects you created and the problem is there.

    I tried to attach a zip file to this post and I am getting the message "File is not of correct type. Try again."  I attached a "gif" with a screenshot of how it appears.  Let me know where to send the zip file.
  6. Answer
    Peter
    Admin
    Peter avatar
    1611 posts

    Posted 30 Jul 2010 Link to this post

    Hello Johnathan,

    Thank you for the screenshoot.

    We have reproduced the CheckBox item behavior you have described in  the HTML rendering (were using Image rendering where it is ok).
    Currently there is no out of the box way to change this behavior as it is by design following the HTML rendering patterns. As a workaround our suggestion is to nest the CheckBox in a Panel item as I have done in the attached sample report. Make sure it is the same size as the image used for it and align it at the position you want to (center in this case). This will force the CheckBox to keep its alignment settings.

    Sincerely yours,
    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
Back to Top
DevCraft banner