Telerik Forums
Reporting Forum
11 answers
576 views

Hello. I have big problem with reportViewer. I try to put it on RadDocumentPane like this:

<telerikDocking:RadDocumentPane x:Class="Gcg.Olb.Client.ReportModule.Views.ReportDocumentPane"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                                        xmlns:telerikDocking="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Docking"
                                xmlns:tr="http://schemas.telerik.com/wpf"
                                mc:Ignorable="d"
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <tr:ReportViewer/>
         
    </Grid>
</telerikDocking:RadDocumentPane>

WHen I try to add this pane to docking control I receive 2 Object null refence errors and ReportView is not displaing. I need to move my application window to display it. And in output window I have many errors:

System.Windows.Data Error: 40 : BindingExpression path error: 'NavigateBackCommand' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=NavigateBackCommand; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadButton' (Name=''); target property is 'Command' (type 'ICommand')

System.Windows.Data Error: 40 : BindingExpression path error: 'NavigateForwardCommand' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=NavigateForwardCommand; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadButton' (Name=''); target property is 'Command' (type 'ICommand')

System.Windows.Data Error: 40 : BindingExpression path error: 'StopRenderingCommand' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=StopRenderingCommand; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadButton' (Name=''); target property is 'Command' (type 'ICommand')

System.Windows.Data Error: 40 : BindingExpression path error: 'RefreshReportCommand' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=RefreshReportCommand; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadButton' (Name=''); target property is 'Command' (type 'ICommand')

System.Windows.Data Error: 40 : BindingExpression path error: 'MoveToFirstPageCommand' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=MoveToFirstPageCommand; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadButton' (Name=''); target property is 'Command' (type 'ICommand')

System.Windows.Data Error: 40 : BindingExpression path error: 'MoveToPreviousPageCommand' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=MoveToPreviousPageCommand; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadButton' (Name=''); target property is 'Command' (type 'ICommand')

System.Windows.Data Error: 40 : BindingExpression path error: 'IsMoveToPageEnabled' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=IsMoveToPageEnabled; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'TextBoxEx' (Name=''); target property is 'IsEnabled' (type 'Boolean')

System.Windows.Data Error: 40 : BindingExpression path error: 'PageNumberModel' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=PageNumberModel; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'TextBoxEx' (Name=''); target property is 'Text' (type 'String')

System.Windows.Data Error: 40 : BindingExpression path error: 'NavigateToSpecificPageCommand' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=NavigateToSpecificPageCommand; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'TextBoxEx' (Name=''); target property is 'Command' (type 'ICommand')

System.Windows.Data Error: 40 : BindingExpression path error: 'TextResources' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=TextResources.LabelOf; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'TextBlock' (Name=''); target property is 'Text' (type 'String')

System.Windows.Data Error: 40 : BindingExpression path error: 'PageCount' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=PageCount; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'TextBlock' (Name=''); target property is 'Text' (type 'String')

System.Windows.Data Error: 40 : BindingExpression path error: 'MoveToNextPageCommand' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=MoveToNextPageCommand; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadButton' (Name=''); target property is 'Command' (type 'ICommand')

System.Windows.Data Error: 40 : BindingExpression path error: 'MoveToLastPageCommand' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=MoveToLastPageCommand; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadButton' (Name=''); target property is 'Command' (type 'ICommand')

System.Windows.Data Error: 40 : BindingExpression path error: 'PageSetupCommand' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=PageSetupCommand; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadButton' (Name=''); target property is 'Command' (type 'ICommand')

System.Windows.Data Error: 40 : BindingExpression path error: 'TogglePrintPreviewCommand' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=TogglePrintPreviewCommand; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadToggleButton' (Name=''); target property is 'Command' (type 'ICommand')

System.Windows.Data Error: 40 : BindingExpression path error: 'IsPrintPreviewChecked' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=IsPrintPreviewChecked; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadToggleButton' (Name=''); target property is 'IsChecked' (type 'Nullable`1')

System.Windows.Data Error: 40 : BindingExpression path error: 'PrintReportCommand' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=PrintReportCommand; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadButton' (Name=''); target property is 'Command' (type 'ICommand')

System.Windows.Data Error: 40 : BindingExpression path error: 'RenderingExtensions' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=RenderingExtensions; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadComboBox' (Name=''); target property is 'ItemsSource' (type 'IEnumerable')

System.Windows.Data Error: 40 : BindingExpression path error: 'SelectedRenderingExtension' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=SelectedRenderingExtension; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadComboBox' (Name=''); target property is 'SelectedItem' (type 'Object')

System.Windows.Data Error: 40 : BindingExpression path error: 'IsExportEnabled' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=IsExportEnabled; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadComboBox' (Name=''); target property is 'IsEnabled' (type 'Boolean')

System.Windows.Data Error: 40 : BindingExpression path error: 'IsDocumentMapVisible' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=IsDocumentMapVisible; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadToggleButton' (Name=''); target property is 'IsChecked' (type 'Nullable`1')

System.Windows.Data Error: 40 : BindingExpression path error: 'HasDocumentMap' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=HasDocumentMap; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadToggleButton' (Name=''); target property is 'Visibility' (type 'Visibility')

System.Windows.Data Error: 40 : BindingExpression path error: 'IsParametersAreaVisible' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=IsParametersAreaVisible; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadToggleButton' (Name=''); target property is 'IsChecked' (type 'Nullable`1')

System.Windows.Data Error: 40 : BindingExpression path error: 'HasParameters' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=HasParameters; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadToggleButton' (Name=''); target property is 'Visibility' (type 'Visibility')

System.Windows.Data Error: 40 : BindingExpression path error: 'IsParametersAreaVisible' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=IsParametersAreaVisible; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'Border' (Name='ParametersAreaPane'); target property is 'Visibility' (type 'Visibility')

System.Windows.Data Error: 40 : BindingExpression path error: 'VisibleParameterModels' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=VisibleParameterModels; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'ReportParametersControl' (Name=''); target property is 'ItemsSource' (type 'IEnumerable')

System.Windows.Data Error: 40 : BindingExpression path error: 'PreviewReportCommand' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=PreviewReportCommand; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadButton' (Name=''); target property is 'Command' (type 'ICommand')

System.Windows.Data Error: 40 : BindingExpression path error: 'TextResources' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=TextResources.PreviewButtonText; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadButton' (Name=''); target property is 'Content' (type 'Object')

System.Windows.Data Error: 40 : BindingExpression path error: 'IsPreviewButtonVisible' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=IsPreviewButtonVisible; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadButton' (Name=''); target property is 'Visibility' (type 'Visibility')

System.Windows.Data Error: 40 : BindingExpression path error: 'IsUpdatingParameters' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=IsUpdatingParameters; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'DialogBox' (Name='UpdateParametersDialog'); target property is 'Visibility' (type 'Visibility')

System.Windows.Data Error: 40 : BindingExpression path error: 'UpdateParametersProgress' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=UpdateParametersProgress; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'TextBlock' (Name=''); target property is 'Text' (type 'String')

System.Windows.Data Error: 40 : BindingExpression path error: 'IsUpdatingParameters' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=IsUpdatingParameters; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadProgressBar' (Name=''); target property is 'IsIndeterminate' (type 'Boolean')

System.Windows.Data Error: 40 : BindingExpression path error: 'DocumentMapWidth' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=DocumentMapWidth; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'ColumnDefinition' (HashCode=28417134); target property is 'Width' (type 'GridLength')

System.Windows.Data Error: 40 : BindingExpression path error: 'IsDocumentMapVisible' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=IsDocumentMapVisible; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'Border' (Name='DocumentMapPane'); target property is 'Visibility' (type 'Visibility')

System.Windows.Data Error: 40 : BindingExpression path error: 'SelectedDocumentMapNode' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=SelectedDocumentMapNode; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadTreeView' (Name='DocumentMapTreeView'); target property is 'SelectedItem' (type 'Object')

System.Windows.Data Error: 40 : BindingExpression path error: 'DocumentMapNodes' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=DocumentMapNodes; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadTreeView' (Name='DocumentMapTreeView'); target property is 'ItemsSource' (type 'IEnumerable')

System.Windows.Data Error: 40 : BindingExpression path error: 'IsDocumentMapVisible' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=IsDocumentMapVisible; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'GridSplitter' (Name=''); target property is 'Visibility' (type 'Visibility')

System.Windows.Data Error: 40 : BindingExpression path error: 'IsInProgress' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=IsInProgress; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'DialogBox' (Name='ViewerProgressMessage'); target property is 'Visibility' (type 'Visibility')

System.Windows.Data Error: 40 : BindingExpression path error: 'ProgressMessage' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=ProgressMessage; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'TextBlock' (Name=''); target property is 'Text' (type 'String')

System.Windows.Data Error: 40 : BindingExpression path error: 'IsInProgress' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=IsInProgress; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadProgressBar' (Name=''); target property is 'IsIndeterminate' (type 'Boolean')

System.Windows.Data Error: 40 : BindingExpression path error: 'Error' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=Error; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'TextBox' (Name=''); target property is 'Text' (type 'String')

System.Windows.Data Error: 40 : BindingExpression path error: 'HasError' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=HasError; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'TextBox' (Name='ViewerError'); target property is 'Visibility' (type 'Visibility')

System.Windows.Data Error: 40 : BindingExpression path error: 'ShowExportDialog' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=ShowExportDialog; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'DialogBox' (Name='ExportDialog'); target property is 'Visibility' (type 'Visibility')

System.Windows.Data Error: 40 : BindingExpression path error: 'ExportProgress' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=ExportProgress; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'TextBlock' (Name=''); target property is 'Text' (type 'String')

System.Windows.Data Error: 40 : BindingExpression path error: 'ShowExportDialog' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=ShowExportDialog; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadProgressBar' (Name=''); target property is 'IsIndeterminate' (type 'Boolean')

System.Windows.Data Error: 40 : BindingExpression path error: 'CancelExportCommand' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=CancelExportCommand; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadButton' (Name=''); target property is 'Command' (type 'ICommand')

System.Windows.Data Error: 40 : BindingExpression path error: 'TextResources' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=TextResources.CancelButtonText; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadButton' (Name=''); target property is 'Content' (type 'Object')

System.Windows.Data Error: 40 : BindingExpression path error: 'Zoom' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=Zoom; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadSlider' (Name=''); target property is 'Value' (type 'Double')

System.Windows.Data Error: 40 : BindingExpression path error: 'AvailableZoomValues' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=AvailableZoomValues; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadComboBox' (Name=''); target property is 'ItemsSource' (type 'IEnumerable')

System.Windows.Data Error: 40 : BindingExpression path error: 'ZoomText' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=ZoomText; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadComboBox' (Name=''); target property is 'Text' (type 'String')

Stef
Telerik team
 answered on 08 Apr 2015
1 answer
452 views

hi,

we're struggled quite a lot with building telerik reports using the new Q1 2015 report builder and are hopefully at the final hurdle.

We've built a report using an entitydatasource pointed at a function written in the DbContext project, GetOrderById(int id). This produces an invoice output which now works in the designer.

When we run it in our application using the webforms report viewer (for compatability purposes) it keeps trying to create a local database instead of reading the sql server connection of the context we've passed in to it.

 

Here is the runtime code that i've bound to the page_load event of a page (for getting it working purposes)

Dim source = New Telerik.Reporting.UriReportSource()
        source.Uri = "web/apps/shared/InvoiceReport2.trdx"
 
 
        Dim report = New Telerik.Reporting.Report
 
        Dim ds As New EntityDataSource()
        Dim context = New DataContext(connectionString) // passed in as a text string and is 100% valid
 
        ds.Context = context
        ds.ContextMember = "GetOrderForReports"
        ds.Parameters.Add("OrderId", GetType(Integer), 89720)
 
        report.DataSource = ds
        ReportViewer1.ReportSource = source
        ReportViewer1.RefreshReport()

the error we get is as below. any help would be great, cheers.

An error has occurred while processing Report 'invoicereport2': An error occurred while invoking data retrieval method. ------------- InnerException ------------- Exception has been thrown by the target of an invocation. ------------- InnerException ------------- Directory lookup for the file "D:\xxxxxx\WebSites\xxxxx\App_Data\xxxxx.mdf" failed with the operating system error 2(The system cannot find the file specified.). CREATE DATABASE failed. Some file names listed could not be created. Check related errors. 

Stef
Telerik team
 answered on 08 Apr 2015
3 answers
112 views

Hi,

I was trying out with Reporting and added report viewer to the project. But i'm not able to add any other items as all the items are seems to be locked. Check out the screen shots attached to get better idea on what i'm talking about.

 If we enable show all. All the items are seen but locked. Only report viewer is enabled.

 If you guys have an answer please reply to this thread.

 

Thanks in advance.

 

Swaroop

Suresh Krishna
Top achievements
Rank 1
 answered on 07 Apr 2015
3 answers
578 views
Hello,
I am using Telerik Reporting for web to create shipping labels and it looks great to print out one label at a time but if I want to print in a different position based on a parameter. I am using Avery label (template number is 5264) and it has 6 (2x3) labels on a sheet. Currently the label is a static design

How can I do it? 

For example,
----------
| A | B |
| C | D |
| E | F |
---------

Thanks
Nasko
Telerik team
 answered on 06 Apr 2015
1 answer
157 views
Hello,

I am using a formula that should be pretty straightforward in a cross tab field.

= IIf((Exec("rowGroup1", Sum(Fields.Field1)) - RunningValue("rowGroup1", Sum(Fields.Field1))) = 0, 0, (Exec("rowGroup1", Sum(Fields.Field2)) - RunningValue("rowGroup1", Sum(Fields.Field2))) / (Exec("rowGroup1", Sum(Fields.Field1)) - RunningValue("rowGroup1", Sum(Fields.Field1))))

The idea is that we are taking the sum of all values and dividing it but the running total. In most scenarios, this is running correctly and the last value is 0 because the running total is equal to the sum of all values. However, in a couple of instances, a negative number is produced and I can't figure out what's going on. I have checked the values of the sum of all vs the running total and it appears that it should calculate to 0. I'm coming close to a deadline and hoping the community may be able to help.

Thanks
Nasko
Telerik team
 answered on 03 Apr 2015
3 answers
897 views
Dear Telerik Team,

I have a problem.

"An error has occurred while processing Report 'theReport':
Unable to establish a connection to the database. Please, verify that
your connection string is valid. In case you use a named connection
string from the application configuration file, make sure the name is
correct and the connection string settings are present in the
configuration file of your application.
"

I'm
1. Using Telerik Report Q2 2014
2. Designing report using Report Designer (.TRDX)
3. implementing report using ASP.NET v.4 (VB)
4. confuse, it works when i click preview from report designer, but it wont work (saying the above error message) when running it using ASP.NET

the code behind:
Dim uriReportSource As New UriReportSource()
uriReportSource.Uri = Server.MapPath("~/Report/") & "theReport.trdx"
uriReportSource.Parameters.Add(New Telerik.Reporting.Parameter("ID", Request("ID")))
ReportViewer1.ReportSource = uriReportSource


The ConnectionString:
1. in Report Designer/TRDX file, "MyCS"
2. in Web.Config, "MyCS"
3. the same connection string value and the same named connectionString.

Can you help me with this? how can i run my report using asp.net.

Thank you


Nasko
Telerik team
 answered on 03 Apr 2015
2 answers
99 views
How can I display headers in crosstab?
Hoàng
Top achievements
Rank 1
 answered on 03 Apr 2015
1 answer
151 views
Hi,

I have a stacked bar chart and a line chart, both are grouped by a property but i want the grouping label to be displayed lower than the label and also delimiting every group by a line. I have added 2 images which will explain what i want better (the file names are suggestive).
Nasko
Telerik team
 answered on 02 Apr 2015
1 answer
299 views
Hi All

I am using a crosstab for generating a report. Now there is a new requirement, based on the users input there are some columns to be hide. I did follow some approaches and end up with the same problem.

1. Use bindings for the column and set visible false. Resulting column not visible but still white space is still there. (this happens only for grouped columns)
2. Set width to be 0 for the column index. Columns are hidden but space for the header still there and last column header of the grouping is missing

Is there a way to hide any column including header of the crosstab according to the index of the column from left.

following is the code i used for set width of columns

            
int count = 0;
var rowGroups = this.crosstab1.RowGroups;
while (rowGroups != null)
{
    foreach (var group in rowGroups)
    {
        if (hideColumnIndexes.Contains(count))
        {
            group.ReportItem.Width = new Telerik.Reporting.Drawing.Unit(0.000000,
                Telerik.Reporting.Drawing.UnitType.Inch);
        }
    }
    if (rowGroups.Any())
    {
        rowGroups = rowGroups[0].ChildGroups;
    }
    else
    {
        rowGroups = null;
    }
    count++;
}



Nasko
Telerik team
 answered on 02 Apr 2015
1 answer
324 views
I'm using the Standalone report viewer as I'm not a developer, though I can muddle through some stuff. I am writing a report where 95% of the data is in a customer database. 

There is a database that contains the database name of the available customer databases. At run time, the user would select the customer to run the report for, and the report would retrieve the database name from this master database.

I then have two other parameters that the user would need to select based on values in the customer database for the selected customer. I want to generate a list of available values, but to do so, I need to use the first parameter to retrieve the database name, then change the connection string of the second parameter. Once the user selects these values, I can then pass them to the subreports that make up the reports and use them to update the connection strings.

I  have written a custom library using the examples found here so I can change the connection string and it works for the sub reports.

However, I'm trying to figure out a way to do the same for the parameters.  I tried putting my custom function call into the ConnectionString parameter in place of the defined connection that is selected in the Report Viewer but that didnt seem to work, or I didn't do it correctly.

Is there a way to do what I need to here?

Nasko
Telerik team
 answered on 02 Apr 2015
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?