Telerik Forums
UI for WPF Forum
0 answers
207 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
112 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
261 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
416 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
169 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
728 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
561 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
101 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
223 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
419 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
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?