Telerik Forums
UI for WPF Forum
0 answers
148 views
I'd like to filter out hyperlinks when the user pastes into a RadRichTextBox editor control.   We are using RichTextBoxUI.dll from UI for WPF version 2014.2.617.40.

The examples found the following threads set e.Cancel = true to cancel the paste operation. 
e.Cancel is not visible in Telerik.Windows.Controls.RichTextBoxUI.DLL v2014.2.617.40 
How can the paste command be cancelled?  For example, cancel any paste command with an image in it.

The second related thread has this sample code to remove hyperlinks.
void radRichTextBox_CommandExecuting(object sender, Telerik.Windows.Documents.RichTextBoxCommands.CommandExecutingEventArgs e)
{    
   if (e.Command is PasteCommand)    
    {        
              DocumentFragment fragment = ClipboardEx.GetDocument();        
              if (fragment != null)        
               {            
                        TxtFormatProvider provider=new TxtFormatProvider();            
                        string plainText = provider.Export(fragment.ToDocument());            
                        this.radRichTextBox.InsertFragment(new DocumentFragment(provider.Import(plainText)));
                        e.Cancel = true;        
                }    
    }
}

Related threads:
- How to paste plain text http://www.telerik.com/forums/paste-plain-text
- How to remove hyperlinks http://www.telerik.com/forums/remove-hyperlinks-when-executing-pastecommand
- Preventing paste of images http://www.telerik.com/forums/limiting-the-radrichtextbox (Silverlight)

C
Top achievements
Rank 1
 asked on 03 Dec 2014
4 answers
94 views
Dear support,

is there a way to validate the users input? For example I only want to accept inputs of CellValueType.Number. Is it possible?

Thanks in advance

Marcus
Marcus
Top achievements
Rank 1
 answered on 03 Dec 2014
4 answers
221 views
We have noticed that rectangular shapes is incorrectly rendered on
resize. Following code expected to add to the diagram resizable straight
rectangle:

 

           
diagram.AddShape(new RadDiagramShape

                            
{

                                
Geometry = geometry,

                                 BorderBrush
= Brushes.Green,

                                 StrokeThickness
= thickness,

                                 Position
= new Point(50, 50),

                                 Background
= Brushes.Transparent

                            
});

 

           
Instead it draws rectangle with excluded corners.

Moreover if rectangle is been resized user can see strange effect when set and configuration of excluded
corners are changing. See it in action on this video: https://www.youtube.com/watch?v=dK4mXmlEOhc

We are using Telerik WPF
2013.3.1016.40

How resolve this error?
It depends on RadiusX, RadiusY (e.g. there are less cut corners when both set to 0.009), but never completely resolved.

 

Please help us to workaround
this problem in version we use.
Martin Ivanov
Telerik team
 answered on 03 Dec 2014
4 answers
380 views
Hi all!
In our project, we need to draw a curves on the map. Moreover, a dotted curves.
I've attached a cut of the design, so you can see what I want.

How can I do that ?
I've tried to inherit from MapLine, but that class is not inherit-friendly, almost sealed. So I failed
Petar Mladenov
Telerik team
 answered on 03 Dec 2014
1 answer
145 views
Hello,

is there a possibility to have a different design from the summary task when it is collapsed?
The goal is to have two designs depending on the summary expanded/collapsed state.
In collapsed state it should look like a normal gantttaskbar. In expanded state like current
summary task design.

Regards,
Richard




Polya
Telerik team
 answered on 03 Dec 2014
1 answer
650 views
I was surprised to not find a media player in Telerik UI for WPF.

Is there a way to use the RadMediaPlayer from Telerik UI for Silverlight in a WPF application.
Pavel R. Pavlov
Telerik team
 answered on 03 Dec 2014
1 answer
523 views
I was surprised to find no media player in Telerik UI for WPF.  

Is there a way to use the Silverlight RadMediaPlayer?
Pavel R. Pavlov
Telerik team
 answered on 03 Dec 2014
1 answer
90 views
Is there a way on the GridView to have a "blank" new row, rather than a clickable button?

I think the standard WPF DataGrid does this by default.
Maya
Telerik team
 answered on 03 Dec 2014
2 answers
193 views
I know that you can hold down the CONTROL key and use the mouse wheel to change the magnification in the RadRichTextBox.

Is there a way to do the same thing without using the mouse wheel?  Can I change the magnification using the keyboard only?

Also, we do not want to use a separate slider control to change magnification.  Just a simple key combination would be nice.
Joan VANDERWEYST
Top achievements
Rank 1
 answered on 02 Dec 2014
0 answers
364 views
Hi,

i use a RadGridView like this:

<telerik:RadGridView Grid.Row="2" Grid.Column="0" Margin="10,10,10,0" FontFamily="Tahoma" FontSize="12" x:Name="radGridView" AutoGenerateColumns="False" CanUserReorderColumns="False" CanUserInsertRows="False" CanUserDeleteRows="False" ShowColumnFooters="False" CanUserFreezeColumns="False" RowIndicatorVisibility="Collapsed" >
            <telerik:RadGridView.ColumnGroups>
                <telerik:GridViewColumnGroup  Name="Lokal" Header="lokal DB" />
                <telerik:GridViewColumnGroup  Name="abas" Header="abas-ERP" />
            </telerik:RadGridView.ColumnGroups>
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding AbasID}" Header="abas-ID" IsReadOnly="True" Width="70" UniqueName="AbasID" ColumnGroupName="Lokal"  />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Versionn}" Header="Versionn" IsReadOnly="True" Width="auto" UniqueName="Versionn" ColumnGroupName="Lokal" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Feldname}" Header="Feldname" IsReadOnly="True" Width="auto" UniqueName="Feldname" ColumnGroupName="Lokal" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Feldwert}" Header="Feldwert" IsReadOnly="True" Width="*" UniqueName="Feldwert" ColumnGroupName="Lokal" />
                <telerik:GridViewColumn Header="<<" ColumnGroupName="Lokal" Width="auto">
                    <telerik:GridViewColumn.CellTemplate>
                        <DataTemplate >
                            <telerik:RadRadioButton IsChecked="{Binding Syncabastolokal, Mode= TwoWay}" GroupName="Sync" x:Name="Syncabastolokal" Height="25" Width="50"/>
                        </DataTemplate>
                    </telerik:GridViewColumn.CellTemplate>
                </telerik:GridViewColumn>
 
                <telerik:GridViewColumn Header=">>" ColumnGroupName="abas" Width="auto">
                    <telerik:GridViewColumn.CellTemplate>
                        <DataTemplate>
                            <telerik:RadRadioButton IsChecked="{Binding Synclokaltoabas, Mode= TwoWay}" GroupName="Sync" x:Name="Synclokaltoabas" Height="25" Width="50"/>
                        </DataTemplate>
                    </telerik:GridViewColumn.CellTemplate>
                </telerik:GridViewColumn>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Xabasid}" Header="abas-ID" IsReadOnly="True" Width="70" UniqueName="XAbasID" ColumnGroupName="abas"/>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Xversionn}" Header="Versionn" IsReadOnly="True" Width="auto" UniqueName="Xversionn"  ColumnGroupName="abas"/>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Xfeldname}" Header="Feldname " IsReadOnly="True" Width="auto" UniqueName="Xfeldname"  ColumnGroupName="abas"/>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Xfeldwert}" Header="Feldwert " IsReadOnly="True" Width="*" UniqueName="Xfeldwert"  ColumnGroupName="abas"/>
            </telerik:RadGridView.Columns>               
        </telerik:RadGridView>

Why does the binding of the radiobuttons not work? If a select one RadionButton in a row the selection of the previous row is away.

Thanks
Rene
ITA
Top achievements
Rank 1
 asked on 02 Dec 2014
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?