Telerik Forums
UI for WPF Forum
2 answers
847 views

I am running into this issue: "Startxref keyword cannot be found". 

I was referencing the information in the link below, and it did not solve my problem. My PDF does not have a blank space at the end, and using the code in the link didn't make the error go away. What other possible causes for this issue are there? I am unable to provide the document that is having issues because the document is confidential. 

http://www.telerik.com/support/kb/winforms/pdf-viewer/details/notsupportedexception-startxref-keyword-cannot-be-found-when-loading-pdf-file-in-radpdfviewer-for-winforms

Thanks,

Bryand

Bryand
Top achievements
Rank 1
 answered on 30 Jun 2016
5 answers
884 views

Hello Telerik,

 

I am trying to pre-group my Gridview on the start of the page (page load)

so i saw a very interesting documentation you have called "programmatic grouping", which has the following block of code i would need to use inside my XAML

<telerik:GroupDescriptor Member="Country"
SortDirection="Ascending"
DisplayContent="Country Group" />

 

My question is: where exactly is this GroupDescriptor? It doesn't seem to recognize the tag at all. Can you provide me a sample or something that uses it? I couldn't find one in your demos tool.

 

thank you.

Dilyan Traykov
Telerik team
 answered on 30 Jun 2016
1 answer
1.1K+ views

I'm using MVVM with property "IsBusy", set the DataContext to this property and change it when needed.

The problem is that in some cases the BusyIndicator (BI) is not visible.

Here is how the BI configured:

<telerik:RadBusyIndicator x:Name="CashierBusyIndicator" IsBusy="{Binding IsBusy}" >                 <Style TargetType="telerik:RadBusyIndicator">

The view model seems like that:

public class CashierStationMainWindowModel : INotifyPropertyChanged
    {
 
        private bool _IsBusy;
 
        public bool IsBusy
        {
            get
            {
                return _IsBusy;
            }
            set
            {
                _IsBusy = value;
                OnPropertyChanged("IsBusy");
            }
        }
 
        #region INotifyPropertyChanged implementation
        public event PropertyChangedEventHandler PropertyChanged;
 
        private void OnPropertyChanged(string propertyName = "")
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
        #endregion
    }

The method that change the BI is:

protected void EnableDisableBusyIndicatorAsync(bool enable)
    {
CashierStationMainWindow.GetInstance().CashierStationWindowModel.IsBusy = enable;    
 }

Simple not working example, this block is a button press implementation:

EnableDisableBusyIndicatorAsync(true);
 
System.Threading.Thread.Sleep(5000);
 
EnableDisableBusyIndicatorAsync(false);

Some more info:

* The BI located at RadWindow object.

* The not working block run from a RadPage located inside the RadWindow

* Other RadPages call the EnableDisableBusyIndicatorAsync method and it works fine.

 

Thanks in advanced,

Eliran

 

Nasko
Telerik team
 answered on 30 Jun 2016
2 answers
500 views

Hi there,

I use a RadGridView with ColumnGroups and I just can't find out how to make the column group headers as well as the regular column headers height smaller than the default size. My font size is quite small and the headers are using up much more space than required. If I increase the font size to let's say 30 the headers grow in height accordingly but shrinking only works to some point. Looks like there is some min height configured anywhere but I can't find it.

If I try to adjust the row header height through the HeaderRowStyle and set the height to some smaller value, the headers just get cut off which is not what I want... I use the Windows 8 Theme by the way...

Thanks for any kind of help on this topic.

Marcel

Stefan Nenchev
Telerik team
 answered on 30 Jun 2016
2 answers
137 views

Hello,

You can see a screen about my window contening RadGridViews. So, I've a got a line above each header of each GridView, and I don't found how I can hide it.

Can you help me ? Thanks.

Valentin
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 30 Jun 2016
1 answer
582 views

I am seeing some significant performance problem when using implicit styles that are marked as resource (build action).

Opening a dialog takes 5 second when the xaml (fo ex: Telerik.Windows.Controls.Data.xaml) files are marked as resource for build action, if i mark them as page the dialog opens up in a second.

I am developing and add-in project, basically my project is being hosted inside another WPF application, because of that I do not have an App.xaml file. I am referencing to no xaml binaries and have added all the telerik xaml files to my project.

Because I do not have app.xaml I am merging the xaml files in my dialog window. Not sure if this will cause the performance issue.

<Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="../../Themes/Custom/Common.xaml"/>
                <ResourceDictionary Source="../../Themes/Custom/RadTabControlStyle.xaml"/>
                <ResourceDictionary Source="../../Themes/Custom/RadButtonStyle.xaml"/>
                <ResourceDictionary Source="../../Themes/Custom/RadTimePickerStyle.xaml"/>
                <ResourceDictionary Source="../../Themes/Custom/RadMaskedNumericInputStyle.xaml"/>
            </ResourceDictionary.MergedDictionaries>
            <conv:EnumDescriptionConverter x:Key="enumDescriptionConverter"/>
            <conv:EnumFilterConverter x:Key="enumFilterConverter"/>
            <conv:ReverseBooleanConverter x:Key="reverseBooleanConverter"/>
        </ResourceDictionary>
    </Window.Resources>

 


 

Masha
Telerik team
 answered on 30 Jun 2016
7 answers
173 views

Hi,

I'd like to know if it is possible to create a custom ScatterAreaSeries like the one shown in the attached image.

I'd like to indicate some point and only the area between the line and that point to be colored.

Thanks,

Alberto

Benny
Top achievements
Rank 1
 answered on 30 Jun 2016
1 answer
299 views
 For medium to larger size files (10k words to 100k words) I'm having trouble with performance. CPU usage is actually quite low, but the control is under performing the larger the files become.  For example:

 

I have a 10k word file. Search is lightning faster (fantastic), but replacing is horribly slow, ~10 inserts per second (this gets worse as the file grows). I've wrapped the replace process in a Begin and EndUndoGroup, but that seems a nominal improvement. (see pseudo-snippet below) 

I also have a 100k word file that is essentially unusable in the control. It is plain text, no images or extraneous formatting. It takes 1-5 seconds for keystrokes to register. I've throttled documentchanged event to 10 seconds. After importing the same document into the Telerik demo project (TelerikEditorDemo_WPF) I'm noticing the same performance issue. Again, cpu usage is quite low.

Is there any optimizations that can be done to help with these issues?

 

With UI virtualization is it normal to see 1G+ memory usage by opening up a ~100k word document (700KB file)?

My grid containing the control (row 1)...

<Grid.RowDefinitions>
            <RowDefinition
                Height="117" />
            <RowDefinition
                Height="*" />
            <RowDefinition               
                Height="20" />
        </Grid.RowDefinitions>

 

// Replace functionality below

Editor.BeginUndoGroup();

foreach (TextRange range in Results)

{

    RadDocument.Selection.Clear();                
    RadDocument.CaretPosition.MoveToPosition(range.StartPosition);
    RadDocument.Selection.AddSelectionStart(range.StartPosition);
    RadDocument.Selection.AddSelectionEnd(range.EndPosition);

    Editor.Insert(replaceText);

}

Editor.EndUndoGroup("Replace"); 

Petya
Telerik team
 answered on 29 Jun 2016
3 answers
414 views
Hi,

I want to use the VirtualizingWrapPanel for a thumbnail view (similar to the File explorer view) that I'm building. However the thumbnails that the panel holds will not all be of the same size. Now the problem I'm facing is that the VirtualizingWrapPanel requires me to specify the ItemWidth. I cannot provide the ItemWidth because the width of the thumbnails are not always the same.. Is there any way to provide something similar to "auto" for ItemWidth? Any suggestions?

Currently I'm using the WPF VirtualizingStackPanel and it seems to work great but I'm wasting a lot of UI space and therefore want to use VirtualizingWrapPanel instead.

Thank you,
Rajani.
Yoan
Telerik team
 answered on 29 Jun 2016
1 answer
148 views
Importing large-ish docx files that have been exported using the DocxFormatProvider hangs on provider.Import(stream);  The same document imported directly from word works fine. Exporting the document as html then importing works fine. Only when exporting as docx, then importing again does it hang.
 
Seems to either be an issue with a high number of spans or images as I can export and import documents of far greater size as long as it is plain text without a lot of embedded links.

 

Easy to replicate:

1) Create a new document, copy the contents of the wiki page https://en.wikipedia.org/wiki/Parthian_Empire (high number of formatting changes and images)

2) Paste into document and export to docx

3) Try to import

 

The exact same document created directly in word and imported to RadRTB imports fine (2-3 seconds)

Mihail
Telerik team
 answered on 29 Jun 2016
Narrow your results
Selected tags
Tags
+? more
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?
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?