Telerik Forums
UI for Silverlight Forum
0 answers
8 views

Hi Telerik,

I used the old Telerik Silverlight UI to create a simple *.exe file that creates an excel file.   The *.exe uses .NET framework 4 and references the below libraries from the 2017 Telerik Silverlight UI:

using Telerik.Windows.Documents.Spreadsheet;

using Telerik.Windows.Documents.Spreadsheet.FormatProviders.OpenXml.xlsx;

This old *.exe no longer works when run on newer Windows 64-bit consoles with .NET 4.5 Framework installed.  The *.exe terminates with the below error stacktrace:

----------------------------

Could not load file or assembly 'System.Windows, Version=5.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. The system cannot find the file specified.

   at Telerik.Windows.Documents.Spreadsheet.Model.Workbook..ctor()
   at OracleExcelExport.Program.ProcessConfigFile(String configFile) in C:\Users\183639\Documents\Visual Studio 2010\Projects\OracleExcelExport\OracleExcelExport\Program.cs:line 61
   at OracleExcelExport.Program.Main(String[] args) in C:\Users\183639\Documents\Visual Studio 2010\Projects\OracleExcelExport\OracleExcelExport\Program.cs:line 30

------------------------------

I am thinking it maybe 32-bit to 64-bit compatibility problem.  Either way, there is bad reference from Telerik.Windows.Documents.Spreadsheet.Workbook..ctor()

Let me know if you can help.

Winston
Top achievements
Rank 1
 asked on 10 Mar 2023
21 answers
245 views
What is the suggested way to use the built-in localization for separate nuget packages. I can't find any localization dll inside.

If i would use the big single nuget package the dll for my language is included. By the way, this is not an option to me.

Kind regards,

Enrico
Alexander
Top achievements
Rank 1
Iron
 updated answer on 30 Jan 2023
2 answers
51 views

Hi,

 We've been using a RadTreeView to display a RadGridView as one of its items, recently we updated to the latest Telerik Silverlight controls and there is a major delay in showing the RadGridView (previously it was pretty instant).  

 

<telerik:RadTreeView Name="AlertTree" 
                                     HorizontalAlignment="Left"
                                     Margin="0,0,0,0"
                                     VerticalAlignment="Top"
                                     IsVirtualizing="True"
                                     telerik:TreeViewPanel.IsVirtualizing="True"
                                     telerik:TreeViewPanel.VirtualizationMode="Standard">

The RadGridView only has 100 rows - it loads at normal speeds into the tree when collapsed (i.e. not visible).   The problem occurs when the tree is expanded to display the RadGridView.  The UI appears to freeze and to display the 100 rows with 6 columns takes a minimum of 10 seconds (previously 1 or 2).  The memory also jumps considerably when RadGridView finally becomes visible.

// Create the grid view
RadGridView aGridView= new RadGridView();
aGridView.ItemsSource = new Telerik.Data.DataTable(e.Result);

// Attach the grid view to the Tree 
RadTreeViewItem aItem = new RadTreeViewItem();
aItem .Header = " Header Info";
aItem .Items.Add(aGridView);

 As mentioned before, this was working fine previously.  

Thanks
Oliver

 

Anatoly
Top achievements
Rank 1
Iron
 answered on 03 Dec 2022
14 answers
935 views
The TextBox control has a useful property called MaxLength which limits how many characters you can enter in it.

There does not seem to be an obvious/simple way to do the same thing with a GridViewDataColumn.

The way I got this to work was:

<Controls:GridViewDataColumn DataMemberBinding="{Binding ProductCode,Mode=TwoWay}" Header="Product Code" Width="150">
  <Controls:GridViewDataColumn.CellEditTemplate>
    <DataTemplate>
      <TextBox Text="{Binding ProductCode,Mode=TwoWay}" MaxLength="50"/>
    </DataTemplate>
   </Controls:GridViewDataColumn.CellEditTemplate>
</Controls:GridViewDataColumn>

Is there a better/simpler/less verbose way of achieving this?
John
Top achievements
Rank 1
Iron
 answered on 12 Aug 2022
6 answers
184 views
I read somewhere that you are going to implement 2d barcodes

do you have an ETA for this

we are looking for a tool to create 'user definable' barcode layouts for test tubes, slides etc but definately require slides to have 2d barcodes due to the limitaions of the size of the barcodes

we use your tools for our client, so hoped we could create a barcode designing/printing solution too but definately require 2d

thx
Damian
Top achievements
Rank 1
Iron
 answered on 02 May 2022
1 answer
130 views

Hi.  I have an old Silverlight application that uses the Telerik Silverlight Map control using the Microsoft Bing Map provider.  Silverlight is obsolete, but we are trying to keep it running for as long as we can.

The Telerik Silverlight Bing Map stopped working.  The map control loads, but no map is being displayed.  A http packet trace shows an HTTP 404 error against http://dev.virtualearth.net when requesting clientaccesspolicy.xml.  See screenshot:

Is there a way to fix this?

Petar Mladenov
Telerik team
 answered on 26 Apr 2022
1 answer
102 views

Hello,

I have an old Silverlight application using the `Windows 7` theme.

In this application, I'm using many controls and the `app.xaml` file contains the following theme files:

      <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="/VisManager;component/Themes/Themes/Windows7/System.Windows.xaml" />
        <ResourceDictionary Source="/VisManager;component/Themes/Themes/Windows7/Telerik.Windows.Controls.Docking.xaml" />
        <ResourceDictionary Source="/VisManager;component/Themes/Themes/Windows7/Telerik.Windows.Controls.GridView.xaml" />
        <ResourceDictionary Source="/VisManager;component/Themes/Themes/Windows7/Telerik.Windows.Controls.ImageEditor.xaml" />
        <ResourceDictionary Source="/VisManager;component/Themes/Themes/Windows7/Telerik.Windows.Controls.Input.xaml" />
        <ResourceDictionary Source="/VisManager;component/Themes/Themes/Windows7/Telerik.Windows.Controls.Navigation.xaml" />
        <ResourceDictionary Source="/VisManager;component/Themes/Themes/Windows7/Telerik.Windows.Controls.RibbonView.xaml" />
        <ResourceDictionary Source="/VisManager;component/Themes/Themes/Windows7/Telerik.Windows.Controls.RichTextBoxUI.xaml" />
        <ResourceDictionary Source="/VisManager;component/Themes/Themes/Windows7/Telerik.Windows.Controls.xaml" />
        <ResourceDictionary Source="/VisManager;component/Themes/Themes/Windows7/Telerik.Windows.Documents.xaml" />
      </ResourceDictionary.MergedDictionaries>

After installation Ui for Silverlight R1 2022 SP1, the application no more starts: it complains about a referenced static resource that is missing, in the `Telerik.Windows.Controls.RichTextBoxUI.xaml` file.

Replacing this file with the one from version R1 2022 makes it work again.

You should really test Silverlight application while you're adding new functions!

 

Patrick
Top achievements
Rank 2
Iron
Iron
Iron
 updated question on 28 Mar 2022
1 answer
146 views

Hello,

I have an old Silverlight application with the following in the App.xaml file:

      <Style TargetType="tk:GridViewCell" BasedOn="{StaticResource GridViewCellCoreStyle}" />

After updating to the latest, the application no more works: it crashes as soon it displays a GridView control, without any useful error message. It takes me a long time to find the error because I can no more run the application with a debugger and I have no useful error message.

As the application was running fine before I updated Telerik UI for Silverlight, I suppose that the above line is the culprit. Unfortunately, I don't know the previous version of Telerik UI for Silverlight that was used for the application.

I hope this is enough for you to find the bug.

 

Best regards

Patrick
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 22 Feb 2022
7 answers
1.3K+ views
I am zipping the file using the Telerik.Windows.Zip. When i extract the zip file manually using winzip, it throws the below error

!   C:\Users\Public\Music\Sample Music\New folder\3.zip: CRC failed in 3.zip.xml. The file is corrupt.

It does work sometime.

using (Stream stream = viewModel.OpenStream())
                    {
                        if (stream != null)
                        {
                            using (ZipPackage zipPackage = ZipPackage.Create(stream))
                            {
                                zipPackage.AddStream(new MemoryStream(GetXmlData(tutorial)),viewModel.Filename+".xml");
                                 
                            }
                        }
                    }


 		    


Dawn
Top achievements
Rank 1
Iron
 answered on 16 Feb 2022
2 answers
380 views
I'm using RadPdfViewer control, and it works correctly if I write my code like this:

var stream = Application.GetResourceStream(new Uri("SampleData/doc.pdf", UriKind.Relative)).Stream;
pdfViewer.DocumentSource = new PdfDocumentSource(stream);

But I want to load files that are hosted on a server (within the same network). I tried this:

Stream stream = File.OpenRead(@"\\192.168.1.100\pdf$\doc.pdf");              
pdfViewer.DocumentSource = new PdfDocumentSource(stream);

As a test, I try a local file

Stream stream = File.OpenRead(@"C:\pdf\doc.pdf");              
pdfViewer.DocumentSource = new PdfDocumentSource(stream);

Is there a way to do it?

PS: All the files have read permissions are published
Ephraïm
Top achievements
Rank 1
Iron
 answered on 30 Nov 2021
Top users last month
Torben
Top achievements
Rank 2
Iron
Scott Waye
Top achievements
Rank 2
Veteran
Iron
alex
Top achievements
Rank 2
Iron
Iron
Iron
Chris
Top achievements
Rank 1
Iron
Mohamad Javad
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?