Telerik Forums
Community Forums Forum
1 answer
25 views

 

Hi Telerik Team,

I am designing a report using Telerik Report Designer and have connected multiple Web Service Data Sources that require 2-step authentication.

The reports are stored on the Telerik Report Server and are displayed in my ASP.NET MVC project using report server credentials and the report path (Category/ReportName). I have created the following function to connect to the report server:

using System.Web;
using System.Web.Mvc;
using Telerik.Reporting;
using Telerik.ReportViewer.Mvc;
using System.Collections.Generic;
using System;

namespace Project.Extensions
{
    public static class ReportExtension
    {
        public static IReportViewerBuilder GetReportViewerConfig(this HtmlHelper htmlHelper, string reportId, string reportSource, Dictionary<string, string> reportParams)
        {
            var uriReportSource = new UriReportSource
            {
                Uri = reportSource
            };

            foreach (var param in reportParams)
            {
                uriReportSource.Parameters.Add(param.Key, param.Value);
            }

            return htmlHelper.TelerikReporting().ReportViewer()
                .Id(reportId)
                .ReportServer(new ReportServer()
                {
                    Url = ReadConfigData.REPORT_SERVER_URL,
                    Username = ReadConfigData.REPORT_SERVER_USERNAME,
                    Password = ReadConfigData.REPORT_SERVER_PASSWORD
                })
                .ReportSource(uriReportSource)
                .ViewMode(ViewMode.Interactive)
                .ScaleMode(ScaleMode.FitPageWidth)
                .PersistSession(false)
                .SendEmail(new SendEmail { Enabled = true })
                .Parameters(new Parameters
                {
                    Editors = new Editors
                    {
                        MultiSelect = EditorTypes.ComboBox,
                        SingleSelect = EditorTypes.ComboBox
                    }
                })
                .EnableAccessibility(false);
        }
    }
}


Scenario: My API domain is https://abcapi.com, which is used in every report under the "Configure Data Retrieval" window of the Web Service Data Source.

My Requirement: If the domain name changes, I have to manually update the domain in every report and each Web Service Data Source, which is time-consuming and inefficient.

Question: Is there a way to set the domain name dynamically, so that I only need to update it in one place? Also, where is the configuration of each Web Service Data Source stored — is it in the database or somewhere else?

Regards,
Prabesh Shrestha

Petar
Telerik team
 answered on 09 Apr 2025
0 answers
15 views
how to add border in bottom all border are allready apply but bottom border not apply give me solution in this problem how to apply bottom boder
Priyanka
Top achievements
Rank 1
 asked on 28 Feb 2025
2 answers
64 views
Hello,

We are attempting to use the Telerik Report Server for our project. We have installed the Telerik control panel on the server and also hosted it. The Telerik Report Server is connected to our project in the .NET application. However, while building the project with the Telerik Report Server, we are unable to download the required nugget packages for the project. This issue was encountered on January 30, 2025.

What did we do?

Step 1. We managed the Telerik credentials in the NuGet config file, as mentioned in the following URL: https://docs.telerik.com/aspnet-core/installation/nuget-install. The configuration added is as follows:

<?xml version="1.0" encoding="utf-8"?>
    <configuration>
     <packageSources>
        <!--To inherit the global NuGet package sources remove the <clear/> line below -->
        <clear />
        <add key="nuget" value="https://api.nuget.org/v3/index.json" />
        <add key="telerik" value="https://nuget.telerik.com/v3/index.json" />
     </packageSources>
     <packageSourceCredentials>
        <telerik>
          <add key="Username" value="telerik account email" />
          <add key="ClearTextPassword" value="plain text password" />
       </telerik>
     </packageSourceCredentials>
    </configuration>

Note: We found no issues with the credentials.

Step 2. We are using Jenkins (auto-deployment) to download the NuGet packages for the project to build also. The following command was used, but it resulted in an error stating that the packages could not be downloaded from the source.
nuget.exe restore "source\Leslinq.sln"

Running the same command in the local command prompt results in the same error, as shown in the Jenkins console log.

Here is a sample of the error log, and the attached files contain additional details:
********************************************************
https://api.nuget.org/v3/index.json: Unable to load the service index for source https://api.nuget.org/v3/index.json.
  An error occurred while sending the request.
  Unable to connect to the remote server
  A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 103.211.149.24:443
  https://nuget.telerik.com/v3/index.json: Package 'SQLitePCLRaw.core.2.0.4' is not found on source 'https://nuget.telerik.com/v3/index.json'.
************************************************************

Step 3: We are unable to proceed due to the "service unavailable" error message.

Could you please advise on how we can use the Telerik Report Server with our .NET project and automatically build it using Jenkins?

Thanks!


Regards,
Prabesh Shrestha
Justin
Telerik team
 answered on 10 Feb 2025
0 answers
24 views

I’m working with a stock chart that has a navigator, but I’m running into two issues:

  1. The endpoints of the navigator are being cut off.
  2. The time intervals on the navigator appear uneven, even though I’ve set the baseUnit to "minutes" and the baseUnitStep to 30.

I’m not sure what’s causing these problems. Any help would be appreciated! Thanks!

Quang
Top achievements
Rank 1
 asked on 23 Jan 2025
1 answer
70 views
In our WPF project, we have an issue with the Telerik data grid that,
> We have implemented a cell style for setting the background colour based on condition by using the MultiValue Converter,

 

Style code:

<Style x:Key="AFLinkCellFGStyle" TargetType="telerik:GridViewCell" BasedOn="{StaticResource {x:Type telerik:GridViewCell}}">
                <Style.Resources>
                <local:AFCellLinkFGConverter x:Key="AFCellLinkFGConverter"/>
                </Style.Resources>
                <Setter Property="Background"> 
                    <Setter.Value>
                    <MultiBinding Converter="{StaticResource AFCellLinkFGConverter}">
                        <Binding RelativeSource="{RelativeSource Self}"/>
                        <Binding />
                    </MultiBinding>
                    </Setter.Value>
                </Setter>
                <Style.Triggers>
                    <Trigger Property="IsSelected" Value="True">
                        <Setter Property="Foreground" Value="Black"/>
                        <Setter Property="FontWeight" Value="ExtraBold"/>
                    </Trigger>
                </Style.Triggers>
            </Style>

 

Converter code:

 public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
        {
            if (values[1] is ArcFlashEvalRecord)
            {
                Efx.Assert(values[1] is ArcFlashEvalRecord && (values[1] as ArcFlashEvalRecord).pData != null, "FIX THIS - expecting ArcFlashEvalRecord and ArcBusData");
                GridViewCell cell = values[0] as GridViewCell;
                ArcFlashEvalRecord record = values[1] as ArcFlashEvalRecord;
                GridViewColumn column = cell.Column;
                if (column != null)
                {
                    AF_FieldType field_type = (AF_FieldType)column.GetValue(AttachedProp.TagProperty);
                    return AFCellInfo.GetCellInfo(field_type, record).BgBrush;
                }
            }
            return null;
        }

 

Issue: The issue is the background colour is not set properly for each cell.


Description: Initially the data is loaded and the Telerik data gets rendered in the display, we have more than 10 columns, and some of the last columns are hidden. Initially, the background colour worked properly for all cells. but when we horizontally scroll to the end of the data grid to see the hidden columns, at that time, the background of the cell is not set properly, it randomly sets the background colour for hidden column cells. it's changing every time we scroll.

Stenly
Telerik team
 answered on 31 May 2024
0 answers
61 views

Hi everyone!.

Im trying to put a "NumericTextBox" inside s "ForItem", cause i need extract some validation that i have in another file. and call some method that returns me a math result But when i try it, my proyect fails.

 

someone have  worked with something similar?

Jurgen
Top achievements
Rank 1
 updated question on 29 May 2024
1 answer
85 views
I m using kendo-treelist-checkbox-column component, can i  display this conditionally?.....i dont want to enable the check boxes for particular rows in treelist...is this possible ??
Missing User
 answered on 25 May 2024
2 answers
282 views

I am currently experiencing an I/O exception when trying to export the RadDocument to a byte array using the Telerik.Windows.Documents.FormatProviders.Pdf.PdfFormatProvider.

Here is a code snippet of how am I using the Provider:

PdfFormatProvider pdfProvider = new PdfFormatProvider();

_printReportByteArray = pdfProvider.Export(_printReportDocument);

using (var memoryStream = new MemoryStream(_printReportByteArray))
{
    this.PrintReportViewer.DocumentSource = new PdfDocumentSource(memoryStream);
}

The exception occurs at

pdfProvider.Export(_printReportDocument)

It appears that the provider is trying to load the font file from the Windows directory, but for some reason this particular file is causing the exception randomly on certain machines (not on all machines). I would like to know if there is a way to resolve this issue. Like loading the font file into the memory instead of relying on the Windows directory.

Note: the font file does exist at the provided path location, and is not missing.

Here is the full exception message:

System.IO.IOException: I/O error occurred while opening the file "C:\WINDOWS\FONTS\MSYH.TTC".
   at MS.Internal.FontCache.FileMapping.OpenFile(String fileName)
   at MS.Internal.FontCache.FontSource.GetUnmanagedStream()
   at System.Windows.Media.GlyphTypeface.ComputeSubset(ICollection`1 glyphs)
   at Telerik.Windows.Documents.FormatProviders.Pdf.Fonts.GlyphMappings.ComputeSubset(PdfFontKey key, ICollection`1 glyphs)
   at Telerik.Windows.Documents.FormatProviders.Pdf.RadPdf.PdfFontFile2.CreateFileFontFile()
   at Telerik.Windows.Documents.FormatProviders.Pdf.RadPdf.PdfFontFile2.WriteContents(PdfWriter writer)
   at Telerik.Windows.Documents.FormatProviders.Pdf.RadPdf.PdfStream.WriteToCore(PdfWriter writer)
   at Telerik.Windows.Documents.FormatProviders.Pdf.RadPdf.PdfObject.WriteTo(PdfWriter writer)
   at Telerik.Windows.Documents.FormatProviders.Pdf.RadPdf.PdfWriter.WritePdfObject(PdfObject obj)
   at Telerik.Windows.Documents.FormatProviders.Pdf.PdfDocumentExporter.Export()
   at Telerik.Windows.Documents.FormatProviders.Pdf.PdfFormatProvider.Export(RadDocument document, Stream output)
   at Telerik.Windows.Documents.FormatProviders.DocumentFormatProviderBase.Export(RadDocument document)
   at Cairful.Desktop.Module.Care.NursingReports.NursingReports.Dialogs.PrintReportsDialogVM.PrintReportDocument()
   at Cairful.Desktop.Module.Care.NursingReports.NursingReports.Dialogs.PrintReportsDialog.PrintReportsDialog_OnLoaded(Object sender, RoutedEventArgs e)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
   at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
   at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
   at MS.Internal.LoadedOrUnloadedOperation.DoWork()
   at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)


Dess | Tech Support Engineer, Principal
Telerik team
 answered on 22 Mar 2024
0 answers
121 views

I have a TelerikEditor and I have also a List-View, I want to insert in the TelerikEditor what is selected from List-View, similar to the Knedu-ui Editor. Is there any way to do this?

 

https://demos.telerik.com/kendo-ui/editor/snippets?_ga=2.185885487.768973806.1708748600-1556274050.1704398428&_gac=1.79606246.1707819915.Cj0KCQiAw6yuBhDrARIsACf94RW6QB0GISn8O6M41zw6097jzfLc0Pa7m07eijHkyh0eA-nEwbj6dVEaAr5LEALw_wcB&_gl=1*55bc3c*_ga*MTU1NjI3NDA1MC4xNzA0Mzk4NDI4*_ga_9JSNBCSF54*MTcwODc0ODU5OS4yNS4xLjE3MDg3OTQzNzUuMS4wLjA.*_gcl_aw*R0NMLjE3MDc4MTk5MTUuQ2owS0NRaUF3Nnl1QmhEckFSSXNBQ2Y5NFJXNlFCMEdJU244TzZNNDF6dzYwOTdqemZMYzBQYTdtMDdlaWpIa3loMGVBLW5Fd2JqNmRWRWFBcjVMRUFMd193Y0I.*_gcl_dc*R0NMLjE3MDc4MTk5MTUuQ2owS0NRaUF3Nnl1QmhEckFSSXNBQ2Y5NFJXNlFCMEdJU244TzZNNDF6dzYwOTdqemZMYzBQYTdtMDdlaWpIa3loMGVBLW5Fd2JqNmRWRWFBcjVMRUFMd193Y0I.*_gcl_au*MjAxMzkxMjIyNi4xNzA0Mzk4NDI3

Sua
Top achievements
Rank 1
 asked on 24 Feb 2024
1 answer
74 views

Hi ,

We are evaluating Telerik Reporting for our .NET 8 ERP application.

Could you please provide Win UI3 Example with Binding ObjectDataSource where Report is embedded in to the winui3 sample and bind local dto object and render also locally .

We tried from our end but  unable to use  binding ObjectDataSource.

We have attached sample for your reference.

 

 

Todor
Telerik team
 answered on 10 Jan 2024
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?