Telerik Forums
UI for WPF Forum
4 answers
437 views
<telerik:RadGridView Grid.Column="3" HorizontalAlignment="Left" Grid.Row="11" VerticalAlignment="Top" Width="auto" Height="135" ItemsSource="{Binding PhoneNumbers, UpdateSourceTrigger=PropertyChanged}" AutoGenerateColumns="False" ShowGroupPanel="False" AllowDrop="True" GroupRenderMode="Flat" NewRowPosition="Bottom">
 <telerik:RadGridView.Columns>
<telerik:GridViewMaskedTextBoxColumn  Header="Phone number" DataMemberBinding="{Binding PhoneNumber, UpdateSourceTrigger=PropertyChanged}" Mask="+#(###)###-##-##" MaskType="Standard"/>
 </telerik:RadGridView.Columns>
</telerik:RadGridView>
I'm trying to use masked textbox to get phone number from the user and to show them to him. So, cell is masked only in edit mode (e.g. +9(999) 999-99-99). In view mode it looks like there is no any mask (e.g. 99999999999). And in binded item "PhoneNumber" it saves without mask. But I'd like to save string with mask into binded item. I know about TextWithLiterals property but i use MVVM, so it is not an answer.
Harri
Top achievements
Rank 1
 answered on 10 Sep 2014
8 answers
422 views
In my WPF app, I need to take a bitmap I am given and extract two rectangles from it, and then display the original plus each extracted rectangle, each of which would first be saved to disk. 

I can display the bitmap ok in RadImageEditor and cause the crop rectangle to display using ExecuteTool(new CropTool), allowing manual selection, and after user interaction then save that cropped image ok.  

What I don't understand is how to set the crop rectangle from code.

I have discovered the CropCommandContext returned by ExecutingTool.GetContext, but that is readonly.  

thanks



Todor
Telerik team
 answered on 10 Sep 2014
1 answer
78 views
Hi, how to export just annotations without document?
Cem
Top achievements
Rank 1
 answered on 09 Sep 2014
2 answers
269 views
Hello,

I am facing an issue with DragAndDrop in Touch mode in RadTreeView (happens also in RadList)

If I set the following properties on the RadTreeViewItems :
                    <Setter Property="telerik:DragDropManager.AllowDrag" Value="True" />
                    <Setter Property="telerik:DragDropManager.AllowCapturedDrag" Value="True" />
                    <Setter Property="telerik:DragDropManager.TouchDragTrigger" Value="TapAndHold"/>

the drag and drop works fine, and the touch drag trigger is correct.
However, in this case, Selection in the RadTreeView via touch input doesn't work anymore: only mouse input is functionnal. 
Tapping on any item of the RadTreeView performs like a MouseOver
Double tapping on any item doesn't expand this item anymore.

This behavior can be observed in the "WPF Controls Example" / "DragAndDrop" / "Tree te Grid Drag" example : on touch, it is impossible to expand or collapse the nodes of the TreeView, nor to select any node.

Is there any workaround for this issue ?

Regards,
Petar Mladenov
Telerik team
 answered on 09 Sep 2014
6 answers
239 views
Although the rad spreadsheet behaves similarly to Excel,  There is one common behavior that is missing.

If I tab from cell to cell, I cannot conveniently hit the delete key to clear the value.  This becomes a serious user entry issue when users are dealing with numerical data. 

In excel, <shift>tab + delete key will move to the next or previous cell AND <shift>return + delete key moves to the previous or next row and clears the cell value. 

This behavior cannot be reproduced within the RadSpreadsheet control BUT I can tab into a control (with a value) and start typing and it will overwrite the cell value.

So, my users are now tabbing to the next cell and hitting the space key to clear the cell - But this ha a serious side effect in that it now converts the cell to a "space" (Non numeric value) and if that cell is used in a formula elsewhere, the #VALUE! error pops up in all the formulas!

Any idea when this oversight will be corrected in a version of the control?
Anna
Telerik team
 answered on 09 Sep 2014
6 answers
192 views
OK, I have an active sheet that is used for data entry.  Some cells are protected so they cannot enter data in them.

Now, depending on the status of the item being viewed AND the security role of the user editing the data - the entire spreadsheet may or may not be enabled (IE View Only).  If I set IsEnabled = false on the entire spreadsheet control I cannot do anything with the spreadsheet scrolling related.

Problem is, my active sheet has a lot of rows and columns in it and they still need to be able to scroll.

I can set the ActiveWorksheetEditor.IsEnabled = false and it kinda works.  The scroll bars work if the user grabs the slider them and moves it up or down or they click on the scroll arrows.  BUT the mouse wheel doesn't work within the sheet itself. 

Also, I am only able to set this property programmatically in the code behind - any way of getting it in the Xaml?  My spreadsheet contains 1 and only 1 worksheet.  I have the SheetSelector turned off.

<< Possibly put the radSpreadsheet inside a scroll viewer that is fixed height and then force the radspreadsheet control to consume all the space it needs when displayed (forcing it to exceed the scrollviewers viewport?>>
Thanks.
Anna
Telerik team
 answered on 09 Sep 2014
3 answers
147 views
Hello, Im trying this product to see if it's the right one for my project.

I've copied one of your swimlane projects and now I wonder if its possible to add a timeline in box 2 in the picture, that resizes after the top swimlane. You should be able to pick start and end date, could be hours, days or years.

In box 1 I would like to add different phases that would depend on box 2s timerange. One phase could be 1 month and another could be 4 months and they should get the proper size after how long the phase is.

My plan is to use a treeview and draganddrop items from there over to the swimlanes, would that be possible?

Thanks in advance,
Martin Ivanov
Telerik team
 answered on 09 Sep 2014
3 answers
194 views
Hi,

i'm looking for a way to hide the RadDocumentPane headers within the document host under certain conditions.
e.g. for applications that only contain a single document.
I tried to set the 'RadDocumentPane.PaneHeaderVisibilityProperty' to 'Collapsed' in this case, but without any effects.

Is there any way to control the visibility of the RadDocument-Host's title bar ?
Kalin
Telerik team
 answered on 09 Sep 2014
6 answers
158 views
Hi,

When the RadPanes detach from the RadDocking, it comes up with a visual appearience with two headers as shown in the image. How can I remove the upper header and the whole frame the pane is in?

Thanks
Afife Betül
Top achievements
Rank 1
 answered on 09 Sep 2014
1 answer
123 views
Hi,
im trying to save my text as .pdf and .docx but I cant because it's an 'unsupported file format'. There are no exceptions or anything like that and I also added the Telerik.Windows.Documents.FormatProviders.Pdf...etc. references but still there isn't the option to save as .pdf or .docx. But I can save as .html or .rtf.


<telerik:RadRibbonBackstage >
<telerik:RadRibbonBackstageItem Header="Neu" Icon="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/new.png" IsSelectable="false" telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding Path=NewDocumentCommand}" />
<telerik:RadRibbonBackstageItem Header="Öffnen" Icon="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/open.png" IsSelectable="false" telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding Path=OpenDocumentCommand}" />
<telerik:RadRibbonBackstageItem Header="Speichern" Icon="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/save.png" IsSelectable="false" telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding Path=SaveCommand}" />
<telerik:RadRibbonBackstageItem Header="Speichern als" Icon="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/saveas.png" IsDefault="false">
<StackPanel HorizontalAlignment="Stretch" Margin="20,20,0,0">
<TextBlock FontFamily="Verdana" FontSize="18" FontWeight="ExtraBold" Foreground="#FF5E5E7C" Text="Speichern als" />
<Rectangle Fill="Gray" Height="1" HorizontalAlignment="Left" Width="410" />
<StackPanel Margin="0,30,0,0" Orientation="Horizontal">
<telerik:RadRibbonButton BorderBrush="Gray" CommandParameter="docx" CornerRadius="3" Height="80" telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding Path=SaveCommand}" telerik:RadRichTextBoxRibbonUI.ShouldCloseBackstage="true" Width="90">
<StackPanel Width="90">
<Image HorizontalAlignment="Center" Source="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/ApplicationMenu/worddoc.png" Stretch="None" />
</StackPanel>
</telerik:RadRibbonButton>
<StackPanel Margin="20,0,0,0">
<TextBlock FontSize="18" FontWeight="ExtraBold" Foreground="#FF5E5E7C" Text="Word Dokument" />
<TextBlock FontFamily="Verdana" FontSize="13" Text="Datei als Word Dokument speichern." TextWrapping="Wrap" Width="300" />
</StackPanel>
</StackPanel>
<StackPanel Margin="0,30,0,0" Orientation="Horizontal">
<telerik:RadRibbonButton BorderBrush="Gray" CommandParameter="pdf" CornerRadius="3" Height="80" telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding Path=SaveCommand}" telerik:RadRichTextBoxRibbonUI.ShouldCloseBackstage="true" Width="90">
<StackPanel Width="90">
<Image HorizontalAlignment="Center" Source="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/ApplicationMenu/Pdf.png" Stretch="None" />
</StackPanel>
</telerik:RadRibbonButton>
<StackPanel Margin="20,0,0,0">
<TextBlock FontSize="18" FontWeight="ExtraBold" Foreground="#FF5E5E7C" Text="PDF Dokument" />
<TextBlock FontFamily="Verdana" FontSize="13" Text="Datei als PDF speichern." TextWrapping="Wrap" Width="300" />
</StackPanel>
</StackPanel>
<StackPanel Margin="0,30,0,0" Orientation="Horizontal">
<telerik:RadRibbonButton BorderBrush="Gray" CommandParameter="html" CornerRadius="3" Height="80" telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding Path=SaveCommand}" telerik:RadRichTextBoxRibbonUI.ShouldCloseBackstage="true" Width="90">
<StackPanel Width="90">
<Image HorizontalAlignment="Center" Source="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/ApplicationMenu/html.png" Stretch="None" />
</StackPanel>
</telerik:RadRibbonButton>
<StackPanel Margin="20,0,0,0">
<TextBlock FontSize="18" FontWeight="ExtraBold" Foreground="#FF5E5E7C" Text="HTML Dokument" />
<TextBlock FontFamily="Verdana" FontSize="13" Text="Datei als HTML Dokument speichern." TextWrapping="Wrap" Width="300" />
</StackPanel>
</StackPanel>
<StackPanel Margin="0,30,0,0" Orientation="Horizontal">
<telerik:RadRibbonButton BorderBrush="Gray" CommandParameter="rtf" CornerRadius="3" Height="80" telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding Path=SaveCommand}" telerik:RadRichTextBoxRibbonUI.ShouldCloseBackstage="true" Width="90">
<StackPanel Width="90">
<Image HorizontalAlignment="Center" Source="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/ApplicationMenu/Rtf.png" Stretch="None" />
</StackPanel>
</telerik:RadRibbonButton>
<StackPanel Margin="20,0,0,0">
<TextBlock FontSize="18" FontWeight="ExtraBold" Foreground="#FF5E5E7C" Text="Rich Text Format" />
<TextBlock FontFamily="Verdana" FontSize="13" Text="Dokument in Rich Text Format speichern." TextWrapping="Wrap" Width="300" />
</StackPanel>
</StackPanel>
<StackPanel Margin="0,30,0,0" Orientation="Horizontal">
<telerik:RadRibbonButton BorderBrush="Gray" CommandParameter="txt" CornerRadius="3" Height="80" telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding Path=SaveCommand}" telerik:RadRichTextBoxRibbonUI.ShouldCloseBackstage="true" Width="90">
<StackPanel Width="90">
<Image HorizontalAlignment="Center" Source="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/ApplicationMenu/PlainText.png" Stretch="None" />
</StackPanel>
</telerik:RadRibbonButton>
<StackPanel Margin="20,0,0,0">
<TextBlock FontSize="18" FontWeight="ExtraBold" Foreground="#FF5E5E7C" Text="Einfacher Text" />
<TextBlock FontFamily="Verdana" FontSize="13" Text="Dokument als einfachen Text speichern." TextWrapping="Wrap" Width="300" />
</StackPanel>
</StackPanel>
</StackPanel>
</telerik:RadRibbonBackstageItem>
<telerik:RadRibbonBackstageItem Header="Print" Icon="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/print.png" IsDefault="true">
<StackPanel HorizontalAlignment="Stretch" Margin="20,20,0,0">
<TextBlock FontFamily="Verdana" FontSize="18" FontWeight="ExtraBold" Foreground="#FF5E5E7C" Text="Drucken" />
<Rectangle Fill="Gray" Height="1" HorizontalAlignment="Left" Width="410" />
<StackPanel Margin="0,30,0,0" Orientation="Horizontal">
<telerik:RadRibbonButton BorderBrush="Gray" CommandParameter="Native" CornerRadius="3" Height="80" telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding Path=PrintCommand}" telerik:RadRichTextBoxRibbonUI.ShouldCloseBackstage="true" Width="90">
<StackPanel Width="90">
<Image HorizontalAlignment="Center" Source="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/ApplicationMenu/pagesetup.png" Stretch="None" />
</StackPanel>
</telerik:RadRibbonButton>
<StackPanel Margin="20,0,0,0">
<TextBlock FontSize="18" FontWeight="ExtraBold" Foreground="#FF5E5E7C" Text="Direkter Druck" />
<TextBlock FontFamily="Verdana" FontSize="13" Text="Sendet das Dokument direkt an den standart Drucker ohne änderungen." TextWrapping="Wrap" Width="300" />
</StackPanel>
</StackPanel>
</StackPanel>
</telerik:RadRibbonBackstageItem>
</telerik:RadRibbonBackstage>

thank you in advance!

Dennis
Petya
Telerik team
 answered on 08 Sep 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?