Telerik Forums
UI for WPF Forum
3 answers
125 views

Is there any example which demonstrates how to create and work with a custom third-party spell checker using Open Office?

I tried https://github.com/telerik/xaml-sdk/tree/8a76eafd48278d8278b4b61d1c2aeb3c0ac8750d/RichTextBox/NHunspellSpellChecking, but it is not working properly (all words are marked as incorrect). I used en_US.aff and en_US.dic files from en_us.oxt (http://extensions.openoffice.org/en/project/us-english-spell-checking-dictionary).

Thanks

Beata

Boby
Telerik team
 answered on 25 Oct 2016
2 answers
206 views
Is it possible to use your components are free for individual developers like syncfusion? For example WPF. Not everyone can buy these components to create a small application.
Seth
Telerik team
 answered on 24 Oct 2016
0 answers
110 views

Hello Telerik,

 

I want to display a ToolTip when mouse passing on specific cell (pink background cell), but I don't find the corresponding event.

 

I tried to use the CurrentCell but it's every time null. After, I tried to use the casted row to use its Properties Item CurrentCell to get attribut ('IsDiscontinuite') but the result it's every time true.

My work :

//Every Time null
if (((RadGridView)sender).CurrentCell.Background == new SolidColorBrush(Color.FromArgb(255, 255, 0, 255)))
 
//Every Time "True"
if (((MesureDynamicRow)((RadGridView)sender).CurrentCellInfo.Item).Properties.First().CoupureHisto)

 

So, I want to know what is the find event for this problem ?

 

Thank you very much !

 

Valentin.

Valentin
Top achievements
Rank 2
Iron
Iron
Iron
 asked on 24 Oct 2016
2 answers
117 views

I would like to handle a double click event on a connector. For shapes there is a OnShapeDoubleClicked, but I can't seem to find a way of handling the double click of an connector.

I tried handling the double-click event of the diagram itself, but can't seem to find the connector at the click location.

Is there an easy way to achieve this?

Roy
Top achievements
Rank 1
 answered on 24 Oct 2016
7 answers
320 views

This is my first time using the masked input and I could use some help. I don't want the placeholder, so I'm using Mask="". In this example, I want to restrict to positive integers only (or blank if it's an optional input). I can restrict the numeric version to digits only, but how do I prevent the negative sign?

I would actually prefer to use the normal masked input and simply limit it to the characters 0-9. However when I use Mask="", I have not been able to restrict the inputs using the FormatString. It's still allowing me to type anything.

Dinko | Tech Support Engineer
Telerik team
 answered on 24 Oct 2016
7 answers
209 views

I have the following exception popping up from time to time when I scroll fast or use sliders in RadGridView.

 

Exception: Exception thrown: 'System.Xaml.XamlParseException' in #####.exe

("Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Telerik.Windows.Controls.GridView.GridViewRow', AncestorLevel='1''. BindingExpression:Path=IsPinned; DataItem=null; target element is 'GridViewPinButton' (Name=''); target property is 'IsPinned' (type 'Boolean')"). Exception thrown: 'System.Xaml.XamlParseException' in #####.exe ("Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Telerik.Windows.Controls.GridView.GridViewRow', AncestorLevel='1''. BindingExpression:Path=IsPinned; DataItem=null; target element is 'GridViewPinButton' (Name=''); target property is 'IsPinned' (type 'Boolean')") 80.33s  [15528] <No Name>

 

I simply host RadGridView in UserControl:

 

    <telerik:RadGridView ItemsSource="{Binding #######}"
                         IsReadOnly="True"
                         RowIndicatorVisibility="Collapsed"
                         AutoGenerateColumns="False"
                         ShowGroupPanel="False"
                         GridLinesVisibility="Both"
                         ClipboardCopyMode="All"
                         SelectionMode="Extended"
                         FrozenColumnCount="1"
                         CanUserFreezeColumns="False"
                         Background="Transparent"
    >
        <telerik:RadGridView.Columns>

....


Dilyan Traykov
Telerik team
 answered on 24 Oct 2016
3 answers
253 views

Hello,

 We are facing this strange issue with PDFViewer.Print functionality on Windows 10 only.

Attached is the sample using latest Telerik dlls (Telerik_UI_for_WPF_2015_2_728_Dev.msi).  The problem is - once we print - it goes into the Printing queue and shows "Spooling" but does not print - rather disappears after some time. Please advise.

 

class Program
{
    /// <summary>
    /// Main method.
    /// </summary>
    /// <param name="args">The args.</param>
    [STAThread]
    static void Main(string[] args)
    {
        string fileName = "CMI9063.pdf";
        if ((args != null) && (args.Length > 0))
        {
            fileName = args[0];
        }
        // Load the PDF file.
        byte[] buffer = LoadPdfFile(fileName) ?? new byte[] { };
        using (MemoryStream stream = new MemoryStream(buffer))
        {
            PrintDialog printDialog = new PrintDialog { UserPageRangeEnabled = true };
            if (printDialog.ShowDialog() == true)
            {
                RadPdfViewer radPdfViewer = new RadPdfViewer { DefaultFormatProviderSettings = FormatProviderSettings.ReadOnDemand };
                radPdfViewer.ClearDocument();
                radPdfViewer.Document = new PdfFormatProvider(stream, FormatProviderSettings.ReadOnDemand).Import();
                radPdfViewer.Print(printDialog, PrintSettings.Default);
 
                //System.Windows.MessageBox.Show("Successfully print to \"" + printDialog.PrintQueue.FullName + "\"", "Print", System.Windows.MessageBoxButton.OK, System.Windows.MessageBoxImage.Information);
            }
        }
    }
 
 
    private static byte[] LoadPdfFile(string filePath)
    {
        byte[] buffer;
        string folder = Directory.GetCurrentDirectory();
        if (!filePath.StartsWith(folder))
        {
            filePath = Path.Combine(folder, filePath);
        }
 
        //load from physical path
        if (File.Exists(filePath))
        {
            using (FileStream fs = new FileStream(filePath, FileMode.Open))
            {
                buffer = new byte[fs.Length];
                fs.Read(buffer, 0, buffer.Length);
            }
        }
        else
        {
            return null;
        }
 
        return buffer;
    }
}
Deyan
Telerik team
 answered on 24 Oct 2016
4 answers
135 views
If I use CellTemplate and then horizontally scroll so column isn't visible then scroll back I have a noticeable slowdown (jerk) in scrolling.

If I replace this code with using DataMemberBinding without CellTemplate I don't see this problem.

Any advice on how to fix this problem?

(saw some old threads about it but not sure what's the resolution).

Stefan
Telerik team
 answered on 24 Oct 2016
1 answer
79 views

Hi,

i use a RadGridView bound to a ObservableCollection<Calls> with some Columns like Name, Number, Date, Time,...

The Column "Date" ist declared as DateTime in my ViewModel and the Column "Time" is a string. I have to sort my
Collection by Date and Time:

Comin from log:

Prusik#4862416#8:30#20.10.2016#incoming.png#(284,1,0)
Prusik#4862416#8:40#20.10.2016#incoming.png#(284,1,0)
Prusik#4862416#8:50#20.10.2016#incoming.png#(284,1,0)
Golf & Thermenresort Stegersbach GmbH#06803280292#14:00#19.10.2016#incoming.png#(16364,0,0)
Golf & Thermenresort Stegersbach GmbH#06803280292#13:00#19.10.2016#incoming.png#(16364,0,0)

Should be sorted to

Prusik#4862416#8:50#20.10.2016#incoming.png#(284,1,0)
Prusik#4862416#8:40#20.10.2016#incoming.png#(284,1,0)
Prusik#4862416#8:30#20.10.2016#incoming.png#(284,1,0)
Golf & Thermenresort Stegersbach GmbH#06803280292#14:00#19.10.2016#incoming.png#(16364,0,0)
Golf & Thermenresort Stegersbach GmbH#06803280292#13:00#19.10.2016#incoming.png#(16364,0,0)

What is to do to geht thisrunning?

And i also want to insert a new incoming call on top of the RadGridView?

Thanks a lot
Best Regards
Rene

Martin
Telerik team
 answered on 24 Oct 2016
1 answer
177 views

Hi, it's possible to create GridView Row toolTip with Image whose ImageSource is generated from Row data?

In my application I've collection of objects in GridView. Objects contains a few properties for generate image. I want to show tooltip with image generated from row when mouse is over it.

Dilyan Traykov
Telerik team
 answered on 24 Oct 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?