Telerik Forums
UI for Silverlight Forum
2 answers
182 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
4 answers
150 views
Hi all.
I'm using the QueryableCollectionView to filter mu RadChart. With this class i'm able to retrieve the original collection of data (using the SourceCollection property). But, how i can retrieve the filtered collection of data?
Thanks in advance
George
Top achievements
Rank 1
Iron
 answered on 25 Nov 2021
7 answers
1.3K+ views
Getting error like "The tag 'RadComboBox' does not exist in XML namespace 'http://schemas.telerik.com/2008/xaml/presentation" this.

This is my coding


xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
    mc:Ignorable="d"
    x:Class="Splendid.testing.StatusMap.UserControl1"
    d:DesignWidth="640" d:DesignHeight="480">

    <Grid x:Name="LayoutRoot">
        <telerik:RadComboBox Margin="276,0,201,194" VerticalAlignment="Bottom">
            <telerik:RadComboBoxItem Content="RadComboBoxItem" Height="100" Width="100"/>
            <telerik:RadComboBoxItem Content="RadComboBoxItem" Height="100" Width="100"/>
        </telerik:RadComboBox>
    </Grid>
Christy
Top achievements
Rank 1
Iron
 answered on 01 Sep 2021
1 answer
36 views

I have tried to implement a line chart along with Notes,. but the problem arises when 2 notes are very close to each other they overlap and are not readable. I tried adding margin but could not achieve a good result even with rotation it looks very absurd. 

I am trying to figure out a way where I can display the notes in one series alternatively top or down. But I can't find anything. I only got an option to display notes top or down per series. Need help with this?

Or if any other way I can achieve it with a readable format

Dinko
Telerik team
 answered on 08 Jul 2021
5 answers
312 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");
                                 
                            }
                        }
                    }


 		    


Deepak
Top achievements
Rank 1
Iron
 answered on 05 May 2021
14 answers
340 views
While viewing a virtual collection in the gridview if I load the first page, select a row, then move down to a page after the second page and attempt to close the multi selection with the shift key (multi-select across pages) the following error is thrown, any way to prevent this short of removing extended selection from the grid (currently have functionality tied to multiselect), maybe reset selection when page moves?:

System.ArgumentException: Cell is not valid  Parameter name: cellInfo    
at Telerik.Windows.Controls.GridView.Selection.CellInfoCollection.Contains(GridViewCellInfo cellInfo)    
at Telerik.Windows.Controls.GridView.Selection.RowTrackingRootSelectionStateChanger.UpdateCellsSelectionState(DataCellsPresenter cellsPresenter, CellInfoCollection cells, Boolean isSelected)    
at Telerik.Windows.Controls.GridView.Selection.RowTrackingRootSelectionStateChanger.UpdateCellSelectionState(LinkedList`1 trackingRoot, CellInfoCollection cells, Boolean isSelected)    
at Telerik.Windows.Controls.GridView.Selection.RowTrackingRootSelectionStateChanger.UpdateCellSelectionState(CellInfoCollection cells, Boolean isSelected)    
at Telerik.Windows.Controls.GridView.Selection.CellSelectionHandler.SetSelectionState(CellInfoCollection cellsCollection, Boolean isSelected)    
at Telerik.Windows.Controls.GridView.Selection.CellSelectionHandler.EndAllowedSelection()    
at Telerik.Windows.Controls.GridView.Selection.CellSelectionHandler.EndPendingSelection()    
at Telerik.Windows.Controls.GridView.Selection.CellSelectionHandler.EndSelection()    
at Telerik.Windows.Controls.GridView.CellSelectionChange.Dispose()    
at Telerik.Windows.Controls.GridView.Selection.CompositeSelectionHandler.Items_CollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)    
at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)    
at Telerik.Windows.Data.DataItemCollection.OnCollectionChanged(NotifyCollectionChangedEventArgs e)    
at Telerik.Windows.Data.DataItemCollection.OnCollectionViewCollectionChanged(NotifyCollectionChangedEventArgs e)    
at Telerik.Windows.Data.DataItemCollection.Telerik.Windows.Data.IWeakEventListener<System.Collections.Specialized.NotifyCollectionChangedEventArgs>.ReceiveWeakEvent(Object sender, NotifyCollectionChangedEventArgs e)    
at Telerik.Windows.Data.WeakEvent.WeakListener`1.Handler(Object sender, TArgs args)    
at Telerik.Windows.Data.QueryableCollectionView.OnCollectionChanged(NotifyCollectionChangedEventArgs args)    
at Telerik.Windows.Data.VirtualQueryableCollectionView.OnCollectionChanged(NotifyCollectionChangedEventArgs args)    
at Telerik.Windows.Data.QueryableCollectionView.ProcessSynchronousCollectionChangedWithAdjustedArgs(NotifyCollectionChangedEventArgs originalArguments, Int32 adjustedOldIndex, Int32 adjustedNewIndex)    
at Telerik.Windows.Data.QueryableCollectionView.ProcessAsynchronousCollectionChanged(NotifyCollectionChangedEventArgs args)    
at Telerik.Windows.Data.QueryableCollectionView.ProcessCollectionChanged(NotifyCollectionChangedEventArgs args)    
at Telerik.Windows.Data.VirtualQueryableCollectionView.ProcessCollectionChanged(NotifyCollectionChangedEventArgs args)    
at Telerik.Windows.Data.QueryableCollectionView.OnSourceCollectionChanged(Object sender, NotifyCollectionChangedEventArgs args)    
at Telerik.Windows.Data.QueryableCollectionView.Telerik.Windows.Data.IWeakEventListener<System.Collections.Specialized.NotifyCollectionChangedEventArgs>.ReceiveWeakEvent(Object sender, NotifyCollectionChangedEventArgs args)    
at Telerik.Windows.Data.WeakEvent.WeakListener`1.Handler(Object sender, TArgs args)    
at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)    
at Telerik.Windows.Data.RadObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)    
at System.Collections.ObjectModel.ObservableCollection`1.SetItem(Int32 index, T item)    
at System.Collections.ObjectModel.Collection`1.set_Item(Int32 index, T value)    
at System.Collections.ObjectModel.Collection`1.System.Collections.IList.set_Item(Int32 index, Object value)    
at Telerik.Windows.Data.VirtualQueryableCollectionView.LoadItems(Int32 startIndex, IEnumerable items)    
at Telerik.Windows.Data.VirtualQueryableCollectionView.<>c__DisplayClass26.<Load>b__25()
Chris
Top achievements
Rank 1
Iron
 answered on 27 Apr 2021
8 answers
131 views
Hi,

I have a grid with a lot of columns (20+) and when you sort on the column the horizontal scroll bar resets to the left most position which often hides the column you just sorted (or filtered) on.  I read this was fixed in the Q3 2010 build which we have installed, but the problem persists.  Note, we also freeze several of the columns.

jerry
Stone
Top achievements
Rank 1
 answered on 24 Mar 2021
5 answers
185 views
I am hoping you have some examples of using the Stacked Bar Chart with databinding in XAML to a MVVM Property.  What I am trying to do is create a chart with "Month" along the horizontal access and to series ("Planned" & "Actual") and then stack the values by the "GroupLvl" Column


GroupLvl Xcat Planned Actual
CENTRAL NOV 30 45
CENTRAL OCT 0 1
CENTRAL SEP 0 0
CENTRAL YTD 0 1
SOUTHEAST APR 0 1
SOUTHEAST AUG 1 0
SOUTHEAST DEC 1173 6840
TENNESSEE/KENTUCKY NOV 3560 3231
TENNESSEE/KENTUCKY OCT 2126 3869
TENNESSEE/KENTUCKY SEP 2756 2174
TENNESSEE/KENTUCKY YTD 1537 2634

here is what I have been trying in XAML, but I am still far from the desired mark.

 

 

 

 

<telerik:RadChart x:Name="CxPerformance"
                            ItemsSource="{Binding CurrentCXCompletedProjectPerformances, Mode=TwoWay}"
                            VerticalAlignment="Top" 
                            Margin="2" 
                            Grid.Column="0" 
                            telerik:StyleManager.Theme="Windows7">
                            <telerik:RadChart.DefaultView>
                               <telerik:ChartDefaultView>
                                   <telerik:ChartDefaultView.ChartTitle>
                                       <telerik:ChartTitle Content="Project Performance" />
                                   </telerik:ChartDefaultView.ChartTitle>
                               </telerik:ChartDefaultView>
                           </telerik:RadChart.DefaultView>
  
                            <telerik:RadChart.SeriesMappings>
                                <telerik:SeriesMapping>
                                    <telerik:SeriesMapping.SeriesDefinition>
                                        <telerik:BarSeriesDefinition ShowItemLabels="True" StackGroupName="{Binding GroupLvl}"/>
                                    </telerik:SeriesMapping.SeriesDefinition>
                                    <telerik:SeriesMapping.ItemMappings>
                                        <telerik:ItemMapping FieldName="Planned" DataPointMember="YValue"/>
                                        <telerik:ItemMapping FieldName="GroupLvl" DataPointMember="LegendLabel"/>
                                        <telerik:ItemMapping FieldName="Xcat" DataPointMember="XCategory"/>
                                    </telerik:SeriesMapping.ItemMappings>
                                </telerik:SeriesMapping>
                                <telerik:SeriesMapping>
                                    <telerik:SeriesMapping.SeriesDefinition>
                                        <telerik:BarSeriesDefinition ShowItemLabels="True" StackGroupName="Actual"/>
                                    </telerik:SeriesMapping.SeriesDefinition>
                                    <telerik:SeriesMapping.ItemMappings>
                                        <telerik:ItemMapping FieldName="Actual" DataPointMember="YValue"/>
                                        <telerik:ItemMapping FieldName="GroupLvl" DataPointMember="LegendLabel"/>
                                        <telerik:ItemMapping FieldName="Xcat" DataPointMember="XCategory"/>
                                    </telerik:SeriesMapping.ItemMappings>
                                </telerik:SeriesMapping>
                            </telerik:RadChart.SeriesMappings>
                        </telerik:RadChart>

 

 




any help you can provide would be greatly appreciated.

Martin Ivanov
Telerik team
 answered on 16 Mar 2021
1 answer
46 views
Hi guys just want to introduce me, I'm Morgan
Martin
Telerik team
 answered on 12 Mar 2021
2 answers
43 views

Hi,

Is it possible to retrieve the position of the mouse on the ruler? I would like to display it in decimal in my control.

 

Best Regards,

Michael

Loic
Top achievements
Rank 1
 answered on 01 Mar 2021
Top users last month
Richard
Top achievements
Rank 2
Iron
Iron
Iron
Bernd
Top achievements
Rank 3
Iron
Iron
Iron
Matthias
Top achievements
Rank 5
Bronze
Bronze
Iron
Benedikt
Top achievements
Rank 3
Iron
Iron
Iron
CHIHPEI
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?