Telerik Forums
UI for WPF Forum
1 answer
291 views
Is it possible to add optional cross button to clear text like the RadMaskedTextInput?
Konstantina
Telerik team
 answered on 10 Dec 2012
3 answers
287 views
I have a following scenario and try to accomplished by the grid view.

1) User can drag and drop a cell in the grid view and drop it in the same grid view.
2) the value of the dragging cell will switched with value of the dropping cell
3) there are some column should not allow dragging.
4) the drop should be allow only when it's in the same row of dragging cell.

How can I do it by using RadGridView and DragAndDropManager?  It will be great if there sample code similar to my scenario.

Thanks so much

Jack
Nick
Telerik team
 answered on 10 Dec 2012
3 answers
110 views
Hi,

In version 1129 you have removed IndicatorPresenter class from the dll, while you forgot to remove the reference to it from the themes xaml files.

Regards,
Goran
Vlad
Telerik team
 answered on 10 Dec 2012
0 answers
121 views
Hi,

containent filter in radgridview have English culture despite the radgrid have French culture.

I want to display Oui/Non not True/False.



Thanks.
Fatima
Top achievements
Rank 1
 asked on 10 Dec 2012
1 answer
171 views
I have some RadDocumentPanes. When I opening a document (RadDocumentPane) of some type, I want to load a different layout. How can this be done?

I tried switching layout in the ActivePaneChanged event, but this throws an InvalidOperationException. Please help!

private void dockingPaneManager_ActivePaneChanged(object sender,
    Telerik.Windows.Controls.Docking.ActivePangeChangedEventArgs e)

{

    if (e.NewPane == pane1)

        LoadLayout(Properties.Resources.Pane1);

    else if (e.NewPane == pane2)

         LoadLayout(Properties.Resources.Pane2);

    else if (e.NewPane == pane3)

         LoadLayout(Properties.Resources.Pane3);

}


<telerik:RadDocking x:Name="dockingPaneManager" ActivePaneChanged="dockingPaneManager_ActivePaneChanged">
<telerik:RadDocking.DocumentHost>
  <telerik:RadSplitContainer>
    <telerik:RadPaneGroup>
      <telerik:RadDocumentPane x:Name="pane1" Title="1st" telerik:RadDocking.SerializationTag="Pane1">
        <telerik:RadDocumentPane.Content>
          ... some content ...
        </telerik:RadDocumentPane.Content>
      </telerik:RadDocumentPane>
      <telerik:RadDocumentPane x:Name="pane2" Title="2nd" telerik:RadDocking.SerializationTag="Pane2">
        <telerik:RadDocumentPane.Content>
          ... some content ...
        </telerik:RadDocumentPane.Content>
      </telerik:RadDocumentPane>
      <telerik:RadDocumentPane x:Name="pane3" Title="3rd" telerik:RadDocking.SerializationTag="Pane3">
        <telerik:RadDocumentPane.Content>
          ... some content ...
        </telerik:RadDocumentPane.Content>
      </telerik:RadDocumentPane>
    </telerik:RadPaneGroup>
  </telerik:RadSplitContainer>
</telerik:RadDocking.DocumentHost>


This is the thrown exception:
---------------------------

---------------------------
System.InvalidOperationException: The specified Visual is not an ancestor of this Visual.

   at System.Windows.Media.Visual.TrySimpleTransformToAncestor(Visual ancestor, Boolean inverse, GeneralTransform& generalTransform, Matrix& simpleTransform)

   at System.Windows.Media.Visual.InternalTransformToAncestor(Visual ancestor, Boolean inverse)

   at Telerik.Windows.Controls.ApplicationHelper.TransformToScreenRoot(UIElement target) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\Common\ApplicationHelper.cs:line 285

   at Telerik.Windows.Controls.RadPane.GetDraggableArea(Boolean allowDragReorder) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Docking\Docking\Docking\RadPane.cs:line 1378

   at Telerik.Windows.Controls.RadPane.OnHeaderMouseLeftButtonDown(Object sender, MouseButtonEventArgs e) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Docking\Docking\Docking\RadPane.cs:line 886

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

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

   at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)

   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.InputProviderSite.ReportInput(InputReport inputReport)

   at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)

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

   at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)

   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)
---------------------------
OK  
---------------------------

Vladi
Telerik team
 answered on 10 Dec 2012
1 answer
183 views
According to the documentation, I can specify a collection to provide my own palette of colours for the colorpicker.  Can I do that using xaml?  And if so, how?

Thanks,
Petar Mladenov
Telerik team
 answered on 10 Dec 2012
1 answer
149 views
Hello,
I am working on a RadGridView that requires the capability to move rows up and down within the grid, ideally I would like Alt+Up/Down to execute a command that moves the selected row up or down in the grid. What I've done is created a behavior that is attached to the grid and wires up to the KeyDownEvent or PreviewKeyDownEvent. My issue is that when I hit Up or Down neither of the events are fired. I understand that those keys are used for navigation but I want to handle the event when Alt+Up/Down is pressed but I can't seem to get either of the events when focused on the grid no matter what modifier keys I have pressed. Is there any way to get the KeyDownEvent/PreviewKeyDownEvent to fire for the Up/Down buttons on a RadDataGrid?

AssociatedObject.AddHandler( UIElement.KeyDownEvent, mKeyEventHandler, true );

EDIT: Using the 'preview' event handler directly (rather that AddHandler) appears to work so I'm past my issue. Thanks

AssociatedObject.PreviewKeyDown += _HandlePreviewKeyDown;


Thanks,
Jason
Maya
Telerik team
 answered on 10 Dec 2012
1 answer
83 views
HOw can I go about checking if the clicked slot was for a new appointment or for an edit?

I want to be able to only edit slots. Not create any new ones.
Vladi
Telerik team
 answered on 10 Dec 2012
0 answers
135 views
Hi,

I'm try this code for drag selecting item if set AllowDrop true not drag and drop file in listbox.

<Window.Resources>
    <Style TargetType="telerik:RadListBoxItem">
        <Setter Property="telerik:DragDropManager.AllowCapturedDrag" Value="True" />
    </Style>
</Window.Resources>
<Window.DataContext>
    <local:ExampleViewModel />
</Window.DataContext>
 
<Grid Background="White" x:Name="LayoutRoot">
    <telerik:RadListBox ItemsSource="{Binding CountryList}" AllowDrop="True" x:Name="listBox" Height="200"
                        HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
        <telerik:RadListBox.ItemTemplate>
            <DataTemplate>
                <Grid Height="50" Width="100" Background="LightBlue" telerik:DragDropManager.AllowDrag="False">
                    <TextBox Text="{Binding CountryName}"
                             VerticalAlignment="Center"
                             PreviewMouseLeftButtonDown="TextBox_PreviewMouseLeftButtonDown"
                             MouseLeave="TextBox_MouseLeave"
                             HorizontalAlignment="Center"/>
                </Grid>
            </DataTemplate>
        </telerik:RadListBox.ItemTemplate>
        <telerik:RadListBox.DragDropBehavior>
            <telerik:ListBoxDragDropBehavior AllowReorder="True"/>
        </telerik:RadListBox.DragDropBehavior>
        <telerik:RadListBox.DragVisualProvider>
            <telerik:ScreenshotDragVisualProvider />
        </telerik:RadListBox.DragVisualProvider>
        <telerik:RadListBox.DropVisualProvider>
            <telerik:LinearDropVisualProvider />
        </telerik:RadListBox.DropVisualProvider>
    </telerik:RadListBox>
John
Top achievements
Rank 1
 asked on 09 Dec 2012
1 answer
371 views
When my tree view expands to no longer fit the window, vertical scroll bars do not appear. When I set:
ScrollViewer.VerticalScrollBarVisibility="Visible"

I initially get a disabled scroll bar. When I expand my tree, the height of the scroll bar is taller than the window so I still can't scroll.
My tree is inside a RadDocumentPane. I have a RadGridView in another RadDocumentPane and scrolling works for it.
Is there something special for a RadTreeView?
David
Top achievements
Rank 1
 answered on 08 Dec 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?