Telerik Forums
UI for WPF Forum
1 answer
159 views
When I press the App key or Shift+F10 on a selected node of my tree, the selection changes to the parent of the node and then it displays a wrong menu in the upper left-hand corner of the window.
I'm using a RadContextMenu with the RadTreeView.
Is there a fix or work-around for this behavior? Or am I doing something wrong?
Kiril Vandov
Telerik team
 answered on 12 Dec 2012
4 answers
1.0K+ views
Hi, 


For one of the columns in my gridview, I need to use an ItemsControl. That column is bound to a variable list of 'events', which are strings. For each of these events, a link/button needs to be generated in the column. 

My column is defined as follows:

<telerik:GridViewDataColumn Header="Actions">
    <telerik:GridViewColumn.CellTemplate>
        <DataTemplate>
<ItemsControl ItemsSource="{Binding Path=Events}">
     <ItemsControl.ItemTemplate>
         <DataTemplate>
            <Button cal:Message.Attach="ExecutePipEvent($dataContext)" Content="{Binding}"/>
         </DataTemplate>
         </ItemsControl.ItemTemplate>
     <ItemsControl.ItemsPanel>
    <ItemsPanelTemplate>
       <StackPanel Orientation="Horizontal"/>
    </ItemsPanelTemplate>
                </ItemsControl.ItemsPanel>
            </ItemsControl>
        </DataTemplate>
    </telerik:GridViewColumn.CellTemplate>
</telerik:GridViewDataColumn>


The problem is that this column makes the rendering of each row very slow. Without this row however, the grid is rendered fast. 

Anyone experienced the same problem or knows what the problem is? That would be great!




Pieter Jan Verfaillie
Top achievements
Rank 1
 answered on 12 Dec 2012
0 answers
81 views
Hi I'm Bea,

I have an application with RadControls for WPF and this error appears (image file attached).

The error is in a Windows XP ServicePack 2 and the telerik version is: 2011.3.1220.35 (RadControls for WPF Q3 2011 SP1)

Regards
Beatriz
Top achievements
Rank 1
 asked on 12 Dec 2012
2 answers
258 views
Hi,

I am new to this telerik controls. I want to have multiple children, which are of having different number of columns and values. I will be binding the complete collection as observable collection through model, since i am using MVVM model with WPF. Collection can have 'n' number of parents, each parent will have two children, These two children can have 'n' number of rows. i tried to use heirarchical child template, but i am not able to add two different children which are binded to different itemsource. Kindly help me with this.

Thanks,
Somasekharan
Somasekharan
Top achievements
Rank 1
 answered on 12 Dec 2012
9 answers
270 views
Hi,

we use VS2008 and telerik 2012.2.912.35 and we have a RadWindow and we're trying to use the êrsistenceFramework mechanism without any success :(

In our RadWindow, we have a RadRibbonView with RadDocking control and in the RadDocking control we have 3 panes. One pane contain a RadGridView, one pane contain a RadRichText and the last pane contain multiple TextBox.

In the application menu of the RadRibbonView, we implement an to to persist the layout of the RadWindow. Actually, when we click on the persist button, when in Loaded event we restore the layout, the application menu of the RadRibbonView appear open, the RadRichText contain the text of the moment when we persisted and it's the samething for all the TextBox.

After many hours of experimentation, we gave up :( Can you provide us a small demo on how to exclude the RadRibbonView and all the date of each controls from the persisting process.

Thank's
Tina Stancheva
Telerik team
 answered on 12 Dec 2012
1 answer
251 views
Hello,

is it possible to define an ItemsSource for a RadContextMenu only for a particular Part of the ContextMenu?
My Target is to have Header and Footer Items, which are always shown up (fixed Items) and to have Contextual Items which are filled from Item behind.
I tried it with an ItemsControl. This works so far, but if I hover one Contextual Item, the full ItemsControl is highlighted. Also the Icon is indented. Please see the attached Screenshot.

How can I remove the wrong highlighting and the Icon Indentation?

Thank you for your help!

My existing Source Code is the following (see ItemsControl):
RadContextMenu.Resources>
        <DataTemplate x:Key="SubItemTemplate">
            <telerik:RadMenuItem Header="{Binding DisplayName}" IsEnabled="{Binding Enabled}">
                <telerik:RadMenuItem.Icon>
                    <Image Stretch="Fill" MinHeight="0" MinWidth="0" MaxWidth="16" MaxHeight="16" Width="Auto" Height="Auto" Source="{Binding Image}" />
                </telerik:RadMenuItem.Icon>
            </telerik:RadMenuItem>
        </DataTemplate>
    </telerik:RadContextMenu.Resources>
 
    <!-- Region Add -->
    <telerik:RadMenuItem Header="Add" ItemsSource="{Binding Path=PossibleSubItems}" FontWeight="Bold" ItemTemplate="{StaticResource SubItemTemplate}">
        <telerik:RadMenuItem.Icon>
            <Image Width="16" Height="16" Stretch="Fill" Source="/Images/add2_16.png" />
        </telerik:RadMenuItem.Icon>
    </telerik:RadMenuItem>
 
    <telerik:RadMenuItem IsSeparator="True" />
    <!-- End Region -->
 
    <!-- FOLLOWING PART SHOWS THE CONTEXTUAL SUB-ITEMS -->
    <ItemsControl ItemsSource="{Binding ContextMenuSubItems}" ItemTemplate="{StaticResource SubItemTemplate}" />
 
    <telerik:RadMenuItem IsSeparator="True" />
 
    <!-- Region Delete -->
    <telerik:RadMenuItem Header="Delete...">
        <telerik:RadMenuItem.Icon>
            <Image Source="/Images/delete2_16.png" />
        </telerik:RadMenuItem.Icon>
    </telerik:RadMenuItem>
    <!-- End Region -->
 
    <!-- Region Rename -->
    <telerik:RadMenuItem Header="Rename" />
    <!-- End Region -->
 
</telerik:RadContextMenu>
Rosen Vladimirov
Telerik team
 answered on 12 Dec 2012
4 answers
127 views
Hi,
with latest control I get this Error:
Function: InvokeArgumentsCheck(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) 

Class: System.Reflection.RuntimeMethodInfo

Stacktrace: 
 bei System.Reflection.RuntimeMethodInfo.InvokeArgumentsCheck(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   bei System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   bei System.Reflection.RuntimePropertyInfo.GetValue(Object obj, Object[] index)
   bei Telerik.Windows.Data.ItemPropertyInfoExtensions.GetValue(ItemPropertyInfo itemProperty, Object item)
   bei Telerik.Windows.Controls.RadDataForm.PopulatePropertiesInitialValues(Object currentItem)
   bei Telerik.Windows.Controls.RadDataForm.OnCurrentItemChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
   bei System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   bei System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   bei System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   bei System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
   bei System.Windows.DependencyObject.InvalidateProperty(DependencyProperty dp, Boolean preserveCurrentValue)
   bei System.Windows.Data.BindingExpressionBase.Invalidate(Boolean isASubPropertyChange)
   bei System.Windows.Data.BindingExpression.TransferValue(Object newValue, Boolean isASubPropertyChange)
   bei System.Windows.Data.BindingExpression.Activate(Object item)
   bei System.Windows.Data.BindingExpression.AttachToContext(AttachAttempt attempt)
   bei System.Windows.Data.BindingExpression.MS.Internal.Data.IDataBindEngineClient.AttachToContext(Boolean lastChance)
   bei MS.Internal.Data.DataBindEngine.Task.Run(Boolean lastChance)
   bei MS.Internal.Data.DataBindEngine.Run(Object arg)
   bei MS.Internal.Data.DataBindEngine.OnLayoutUpdated(Object sender, EventArgs e)
   bei System.Windows.ContextLayoutManager.fireLayoutUpdateEvent()
   bei System.Windows.ContextLayoutManager.UpdateLayout()
   bei System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
   bei System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   bei System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   bei System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   bei System.Windows.Interop.HwndTarget.OnResize()
   bei System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
   bei System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   bei MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   bei MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   bei MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
Ivan Ivanov
Telerik team
 answered on 12 Dec 2012
2 answers
340 views
Hello,

I would like my chart to consists of a LineSeries that does not have labels shown on every node. For this, I have bound the ItemsSource of the LineSeries to an ObservableCollection<MyCrazyLineNode>. MyCrazyLineNode has Properties for the Value, the Category and an additional Property "IsValueVisible".

I tried to accomblish this by setting "ShowLabels" to "False" and define my own labels in the PointTemplate.
My code looks similar to this:
<telerik:LineSeries ItemsSource="{Binding MyCrazyLineNodes}" ValueBinding="Value" CategoryBinding="Category" ShowLabels="False">
  <telerik:LineSeries.PointTemplate>
    <DataTemplate>
      <Grid>
        <Canvas Margin="0,10,0,0" Visibility="{Binding IsValueVisible, [Converter stuff...}">
          <TextBlock Text="{Binding Value}" />
        </Canvas>
        <Path Data="M4,0 L8,4 L4,8 L0,4 Z" Fill="Red" Width="8" Height="8" Stretch="Fill" />
      </Grid>
    </DataTemplate>
  </telerik:LineSeries.PointTemplate>
  <AxisStuffAndSoOn />
</telerik:LineSeries>

However, this does not work, because I cannot bind to the Property IsValueVisible.
How can I do what I want? I hope my problem is understandable. ;-)

Best Regards
Michael
Michael
Top achievements
Rank 2
 answered on 12 Dec 2012
1 answer
159 views
Hi,

I define in my App.xaml this Style to remove the Context Menu from all Panes.

<Style TargetType="{x:Type telerik:RadPane}">
        <Setter Property="ContextMenuTemplate"
                Value="{x:Null}" />
    </Style>

My Panes, which are define in other csprojects and will be loaded by unity still have a context menu.

Can anybody help me with this situation.
Georgi
Telerik team
 answered on 12 Dec 2012
1 answer
341 views
I am evaluating the Telerik controls to see if they will work better for my team than the current Infragistics controls we are using.  So I start writing a sample application that will demonstrate a resource monitor we planned on writing.  My problem is that the chart works for a couple seconds, then stops working, but if I resize the application, it starts working again for a few seconds, then stops.  Here is my Xaml:

<chart:RadCartesianChart Grid.Column="0" Grid.Row="0">
    <chart:RadCartesianChart.HorizontalAxis>
        <telerik:CategoricalAxis FontFamily="Segoe UI" FontSize="12"/>
    </chart:RadCartesianChart.HorizontalAxis>
    <chart:RadCartesianChart.VerticalAxis>
        <chartView:LinearAxis Minimum="0" Maximum="100"/>
    </chart:RadCartesianChart.VerticalAxis>
    <chartView:BarSeries ItemsSource="{Binding LogicalProcessors}" CategoryBinding="DisplayName" ValueBinding="Value">
        <chartView:BarSeries.PointTemplate>
            <DataTemplate>
                <Rectangle Fill="Green"/>
            </DataTemplate>
        </chartView:BarSeries.PointTemplate>
    </chartView:BarSeries>
</chart:RadCartesianChart>

I am binding to an ObservableCollection that contains objects that implement INotifyPropertyChanged.  For my sanity I did this:

<ItemsControl Grid.Column="0" Grid.Row="1" ItemsSource="{Binding LogicalProcessors}">
    <ItemsControl.ItemsPanel>
        <ItemsPanelTemplate>
            <StackPanel/>
        </ItemsPanelTemplate>
    </ItemsControl.ItemsPanel>
    <ItemsControl.ItemTemplate>
        <DataTemplate>
            <TextBlock Text="{Binding Value}"/>
        </DataTemplate>
    </ItemsControl.ItemTemplate>
</ItemsControl>

I can see the values updating, so I know my events are firing, the Chart just isn't updating.  If needed I can attach the entire project.  Any ideas?
Nikolay
Telerik team
 answered on 12 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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?