Telerik Forums
UI for WPF Forum
4 answers
218 views
I have need for adding more context menues to a RadMasketContextMenu - but I want to keep the three original (copy, cut, paste).

 <Controls:RadMaskedTextBox x:Name="contactPhone" Style="{StaticResource RadMaskedTextBoxStyle}"
                TabIndex="12" Value="{Binding Entity.Phonenumber, NotifyOnSourceUpdated=True, Mode=TwoWay}"
                MaskType="None">
            <telerik:RadContextMenu.ContextMenu>
                <telerik:RadContextMenu>
                    <telerik:RadMenuItem Header="Hello"/>
                    </telerik:RadContextMenu>
                </telerik:RadContextMenu.ContextMenu>
        </Controls:RadMaskedTextBox>

This does not work - I do not get the Hello-context menu added. How do I do this?

Thanks!
Inger Marie
Top achievements
Rank 1
 answered on 12 Sep 2012
0 answers
98 views
Hi,

i have a TreeView,  with 2 different kinds of objects ==> 2 kinds of gridview.
The only difference between these two objects is Property "Description", which wether included in grdiview or not.

Is it possible to make somekind of selector for ColumnsTemplate(exists?) or RadGridView templates?

Thanks!
Dmitrijs
Top achievements
Rank 1
 asked on 12 Sep 2012
8 answers
199 views
I suspect the answer is no but is there a way to flip the axis of the chart so that the column headers render down the left hand side instead of across the top?

Thanks,

Rosen Vladimirov
Telerik team
 answered on 12 Sep 2012
1 answer
182 views
Hello there

I need to know if it's possible to export a treelistviews hierarchy to excel.
I tried the simple treelistview.Export() method but it didn't show me a hierachly arranged excel sheet.
Furthermore I'd like to know how to show the item colors in the excel.

Looking forward to your answers.

Thx Emanuel
Dimitrina
Telerik team
 answered on 12 Sep 2012
6 answers
160 views
Hello Telerik,

I am using a RadTreeView like this:

<telerik:RadTreeView  IsVirtualizing="True" SelectionMode="Multiple" telerik:DragDropManager.AllowDrag="True" telerik:DragDropManager.AllowCapturedDrag="True">

My problem is, when a vertical scrollbar appears and I move the scroll thumb down with the mouse, it fires a DragInitialize event and thus won't scroll the tree,
How can I prevent the DragInitialize, when I am actually on the scrollbar?

Here is the call stack:
TreeMitTelerik.exe!TreeMitTelerik.MainWindow.OnDragInitialize(object sender, Telerik.Windows.DragDrop.DragInitializeEventArgs args)   Telerik.Windows.Controls.dll!Telerik.Windows.DragDrop.DragInitializeEventArgs.InvokeEventHandler(System.Delegate genericHandler, object genericTarget)
Telerik.Windows.Controls.dll!Telerik.Windows.DragDrop.DragInitializer.StartDrag()
Telerik.Windows.Controls.dll!Telerik.Windows.DragDrop.DragInitializer.StartDragPrivate(System.Windows.UIElement sender)
Telerik.Windows.Controls.dll!Telerik.Windows.DragDrop.DragInitializer.DragSourceOnMouseMove(object sender, System.Windows.Input.MouseEventArgs e)

Martin
Top achievements
Rank 1
 answered on 12 Sep 2012
2 answers
554 views
I've been working with silverlight mostly, but I'm converting an app to WPF.  I'm using a mystyle.xaml resource dictionary and it's compiling ok, but I get this error message when I debug the program, 'Failed to create a 'TargetType' from the text 'telerik:RadDatePicker'. ...
The initelisense says it's ok and it compiles.  The project it configured with the dropdown Telerik->RadControls for WPF ->Configure Project and I have all the references.

Also, I don't see the Telerik controls in the toolbar to the left.  Even when I try to 'Launch Toolbox Configurator', it's doesn't do anything.  This doesn't bother me since I usually don't use the toolbox, but it may be related.  Maybe I'm missing something on my install
Vanya Pavlova
Telerik team
 answered on 12 Sep 2012
5 answers
375 views
Hi all,

Im trying to discover the features of the RadPDFViewer control and I really want to either save each page to a JPG/PNG/etc file or perhaps just 'get' the bytes/memory stream of each page that I can use in various places in my WPF app.

I saw the filters API, but I cannot find examples or code samples on this API, can what I desire be achieved?

Thanks a lot
Mark
Mark
Top achievements
Rank 1
 answered on 12 Sep 2012
10 answers
529 views
Hello,

I prepare data by RadDocument and assign to RadRichTextBox(RadRichTextBox.1Document).
and then give it to print.

Is it possible to give page number to printed document.
also to export to PDF?

Thanks in advance...
Patrick
Top achievements
Rank 2
 answered on 11 Sep 2012
1 answer
140 views
I have a masked text input box that I am using in the edit template of a data form.  I have been getting odd exceptions when I try to update the text in this box.  I finally figured out that if I go to the textbox and start with a capital (i.e. shift+alpha key), I get the exception.  If I start typing in the textbox with a lower case alpha character or click the mouse in the box again, I have no problem.

Here is the textbox definition along with the stackpanel for that item:
<StackPanel Orientation="Horizontal" Grid.Row="2" Grid.Column="1" Margin="0,0,0,5">
                                    <TextBlock Text="Description" Margin="0,0,0,0" VerticalAlignment="Center" Width="{StaticResource LabelWidth}" Style="{StaticResource LabelBoldStyle}" />
                                    <telerikInput:RadMaskedTextInput x:Name="txtDescription" Mask="" Width="{StaticResource LargeLabelWidth}"
                                                                    SpinMode="None" IsClearButtonVisible="False" SelectionOnFocus="SelectAll"
                                                                    TextMode="PlainText" InputBehavior="Replace" SectionsNavigationMode="None"
                                                                    Value="{Binding Description, Mode=TwoWay}" UpdateValueEvent="LostFocus"
                                                                    >
                                    </telerikInput:RadMaskedTextInput>
                                </StackPanel>

Here is the exception that I get:

System.IndexOutOfRangeException was unhandled by user code

  Message=Index was outside the bounds of the array.

  Source=mscorlib

  StackTrace:

       at System.Text.StringBuilder.get_Chars(Int32 index)

       at Telerik.Windows.Controls.RadMaskedInputBase.ClearString(String text, Int32 start, Int32 end, Boolean clearPlaceholders) in c:\TB\105\WPF_Scrum\Current_HotFix\Sources\Controls\Input\MaskedInput\RadMaskedInputBase.cs:line 2847

       at Telerik.Windows.Controls.RadMaskedInputBase.ClearString(String str, Boolean clearPlaceholders) in c:\TB\105\WPF_Scrum\Current_HotFix\Sources\Controls\Input\MaskedInput\RadMaskedInputBase.cs:line 2833

       at Telerik.Windows.Controls.RadMaskedInputBase.CoerceDisplayText() in c:\TB\105\WPF_Scrum\Current_HotFix\Sources\Controls\Input\MaskedInput\RadMaskedInputBase.cs:line 2431

       at Telerik.Windows.Controls.RadMaskedInputBase.CoerceValue(UpdateValueEvent updateEvent) in c:\TB\105\WPF_Scrum\Current_HotFix\Sources\Controls\Input\MaskedInput\RadMaskedInputBase.cs:line 2419

       at Telerik.Windows.Controls.RadMaskedInputBase.OnKeyDownHandled(Char c) in c:\TB\105\WPF_Scrum\Current_HotFix\Sources\Controls\Input\MaskedInput\RadMaskedInputBase.cs:line 502

       at Telerik.Windows.Controls.MaskedInput.PreviewInputTextBox.OnTextInput(TextCompositionEventArgs e) in c:\TB\105\WPF_Scrum\Current_HotFix\Sources\Controls\Input\MaskedInput\PreviewInputTextBox.cs:line 55

       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)

       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)

       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)

       at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)

       at System.Windows.Input.InputManager.ProcessStagingArea()

       at System.Windows.Input.TextCompositionManager.UnsafeCompleteComposition(TextComposition composition)

       at System.Windows.Input.TextCompositionManager.PostProcessInput(Object sender, ProcessInputEventArgs e)

       at System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(ProcessInputEventHandler postProcessInput, ProcessInputEventArgs processInputEventArgs)

       at System.Windows.Input.InputManager.ProcessStagingArea()

       at System.Windows.Input.TextCompositionManager.UnsafeStartComposition(TextComposition composition)

       at System.Windows.Input.TextCompositionManager.PostProcessInput(Object sender, ProcessInputEventArgs e)

       at System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(ProcessInputEventHandler postProcessInput, ProcessInputEventArgs processInputEventArgs)

       at System.Windows.Input.InputManager.ProcessStagingArea()

       at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)

       at System.Windows.Interop.HwndKeyboardInputProvider.ProcessTextInputAction(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

       at System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param)

       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)

       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

  InnerException:



Tina Stancheva
Telerik team
 answered on 11 Sep 2012
1 answer
139 views
Hi
I want some items in my combo be unselectable (not all), and they be in gray color that shows they are inactive.
How can do this?
Vladi
Telerik team
 answered on 11 Sep 2012
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
PersistenceFramework
DataPager
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
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?