Telerik Forums
Reporting Forum
1 answer
62 views
Hello

I've got a problem while using ChartSeriesItem.ActiveRegion. I do generate the items programmatically and add them to a series.
foreach (var a in b)
{
    ChartSeriesItem objItem = new ChartSeriesItem();
    objItem.YValue = 1;
    objItem.Name = "test";
    objItem.ActiveRegion.Click += new RegionClickEventHandler(ActiveRegion_Click);
    objItem.ActiveRegion.Attributes = "onclick:alert('test')";
    objItem.ActiveRegion.Tooltip = "test";
    objItem.ActiveRegion.Url = "www.google.com";
    objSeries.Items.Add(objItem);
}

void ActiveRegion_Click(object sender, RegionClickEventArgs args)

{

 

throw new NotImplementedException();

}

But the handler is not getting fired nor the alert is shown..

Is there something i miss?

Thanks and best regards

Steve
Telerik team
 answered on 07 Nov 2012
0 answers
68 views
Hi,
I
am using the Telerik Reporting v: 5.0.11.316 in WebApp
When I close my report
The server memory is not empty

why?
Hossein
Top achievements
Rank 1
 asked on 07 Nov 2012
4 answers
317 views
I'm new to reporting so maybe I'm missing something basic here.

I have a .NET web application. I have a ReportViewer tied to a Report on a page. At runtime I want to programatically assign a LinqToSql query to the report control. I've tried doing this (see code) but I get the following error on the report viewer:
An error has occurred while processing Report 'ARQSort': Cannot access a disposed object. Object name: 'DataContext accessed after Dispose.'.


namespace CMS
{
    public partial class ARQSort : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            CMS.Reports.ARQSort report1 = new CMS.Reports.ARQSort();
 
            using (CMSDatabaseDataContext myCMSDataContext = new CMSDatabaseDataContext())
            {
 
                IEnumerable<arq_recipient> arqSortQuery = (from a in myCMSDataContext.arq_recipients
                                                      where a.fdc_accepted == true
                                                      select a);
 
             
                // Assigning the ObjectDataSource component to the DataSource property of the report.
                report1.DataSource = arqSortQuery;
                 
                Telerik.Reporting.InstanceReportSource instanceReportSource = new Telerik.Reporting.InstanceReportSource();
                instanceReportSource.ReportDocument = report1;
                ReportViewer1.ReportSource = instanceReportSource;
 
            }
 
        }
   }
}


What am I missing?
Randy
Top achievements
Rank 1
 answered on 06 Nov 2012
0 answers
76 views

When trying to use Telerik Report Wizard to connect to an objectdatasource, I get the error "An error occurred while invoking data retrieval method"  Try restarting VisualStudio."

Please can someone help me troubleshoot this. I am using version Q3_2012_v6_2_12_1017.

Thanks.
nikky
Top achievements
Rank 1
 asked on 06 Nov 2012
1 answer
150 views
Hi there,

I'm trying to build an official sort of government form, and we need to be able to print an ID number in 'blocks'.
So I'm wondering if there is a way to display a single report field approx 13 characters long, with borders between each character, or perhaps set the text spacing and overlay it on top of such blocks.
What would be the best way to approach this issue?

I've attached a screen clipping of the block I need to show.

Thanks!
Stephen
Steve
Telerik team
 answered on 06 Nov 2012
3 answers
267 views

How do we set the binding for height. I keep getting the Binding error .
Any help is appreciated.

Steve
Telerik team
 answered on 06 Nov 2012
3 answers
824 views
Hi
I've got a multi column report that is used for address labels. I'm configuring the height of the individual labels programmatically and I'm also adding textboxes programmatically.
How can I ensure that the details area does not grow if the contained textboxes use too much height? I want the textboxes that do not fit inside the details section's height just to be cut.
I've tried with a panel and setting it's height and adding the textboxes to that panel but the panel also grows automatically just like the details section.
Can please anybody tell me how to accomplish fixed height of labels?

Best regards

Christian
IvanY
Telerik team
 answered on 05 Nov 2012
5 answers
818 views
Hi,

I have a report with a lot of texboxes like this:

labelTextBox1    valueTextBox1
labelTextBox2    valueTextBox2
labelTextBox3    valueTextBox3
and so on...

If the value of a textbox is an empty string (or some other condition) I wan't to hide that textbox and the corresponding labelTextBox AND make the following labels and textboxes shift up filling the empty space.

Let's say valueTextBox2 is empty what I wan't it to like is this:

labelTextBox1    valueTextBox1
labelTextBox3    valueTextBox3

and NOT like this (with an empty line):

labelTextBox1    valueTextBox1

labelTextBox3    valueTextBox3

I just upgraded to version 2.5.8.519 from version 1.1.0.0 where this worked fine. How can I make this look like in version 1.1.0.0?

Thanks,
Brian
Petio Petkov
Telerik team
 answered on 05 Nov 2012
1 answer
69 views
We have a dynamic report object builder.

Within the building report method, I create a Formatting Rule as per:  http://www.telerik.com/help/reporting/faq-alternating-style.html  I then add that formatting rule to the table on the report.

However when I try to view any reports I see the following error:  Aggregate node 'LeafNumber(Const(RowNumber))' not found.

I'm wondering before I create a test project if anything like this has been seen before.  I did see this forum thread:   http://www.telerik.com/community/forums/reporting/telerik-reporting/error-expression-contains-undefined-function-call-leafnumber.aspx  However, it doesn't seem applicable and doesn't appear to have gone anywhere.

Thanks for any insight or help.
Steve
Telerik team
 answered on 05 Nov 2012
2 answers
270 views
I have a report with multiple checkboxes. The checkboxes look fine inside Visual Studio and inside the Report Viewer. However, when I print the report, the checkboxes do not print at the correct size. It looks like they are expanding to their original size and I am only seeing the top left-hand corner. I tried to use the default images and I also created my own checkbox images and it does not seem to make any difference. Please let me know if there is a value that I am not setting correctly or if there is something else I need to do in order for these checkboxes to print correctly. 

I have attached three images. 
1. printedversion - The printed result with the checkbox not sized correctly.
2. reportviewerversion - How it looks in the webpage via the report viewer. 
3. vseditor - how it looks in Visual Studio with the current properties. 

Thank you,
Shawn
Shawn
Top achievements
Rank 1
 answered on 05 Nov 2012
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?