Telerik Forums
UI for WPF Forum
1 answer
95 views
Hi,

I am working on a RadGridView with a Column Filter. For some columns it's a Combo Box with list of values and their description.
I would like to display the description into the Column Filter, instead of their underlying value, which is not very meaningful for the users.

How can we achieve this?

Thanks
Ric Yik
Dimitrina
Telerik team
 answered on 20 Dec 2011
1 answer
155 views
In an XBap application when a RadWindow is shown in the Application.StartUp event when there is no StartUri defined the RadWindow generates the exception listed. When the call to the RadWindow is removed or the StartUri is defined then the error goes away.

Version: 2011.3.1116.40 also tested with the latest internal build as of today.

<telerik:RadWindow x:Class="WpfBrowserApplication1.TestWindow"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation" Header="TestWindow" Height="300" Width="300">
    <Grid Background="LightBlue">
        <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center">
            Test
        </TextBlock>
    </Grid>
</telerik:RadWindow>

<Application x:Class="WpfBrowserApplication1.App"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             Startup="Application_Startup" DispatcherUnhandledException="Application_DispatcherUnhandledException">
    <!-- StartupUri="Page1.xaml" -->
    <Application.Resources>
 
    </Application.Resources>
</Application>

using System.Windows;
 
namespace WpfBrowserApplication1
{
  using System;
 
  /// <summary>
  /// Interaction logic for App.xaml
  /// </summary>
  public partial class App : Application
  {
    public App()
    {
      AppDomain.CurrentDomain.UnhandledException += (s, a) => HandleError((Exception)a.ExceptionObject);
    }
 
    private object HandleError(Exception exception)
    {
      throw new NotImplementedException();
    }
 
    private void Application_Startup(object sender, StartupEventArgs e)
    {
      TestWindow newWindow = new TestWindow();
      newWindow.ShowDialog();
    }
 
    private void Application_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
    {
      Console.WriteLine();
    }
  }
}


Value cannot be null. Parameter name: adornedElement
   at System.Windows.Documents.Adorner..ctor(UIElement adornedElement)
   at Telerik.Windows.Controls.InternalWindow.AdornerPopup.WindowPopupAdorner..ctor(UIElement adornedElement, Panel contentPanel)
   at Telerik.Windows.Controls.InternalWindow.AdornerPopup.InitializeAdorner()
   at Telerik.Windows.Controls.InternalWindow.AdornerPopup.OnRootVisualLoaded(Object sender, RoutedEventArgs e)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.RouteItem.InvokeHandler(RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.EventRoute.InvokeHandlers(Object source, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
   at System.Windows.FrameworkElement.OnLoaded(RoutedEventArgs args)
   at MS.Internal.FrameworkObject.OnLoaded(RoutedEventArgs args)
   at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
   at System.Windows.BroadcastEventHelper.BroadcastLoadedSynchronously(DependencyObject rootDO, Boolean isLoaded)
   at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
   at MS.Internal.LoadedOrUnloadedOperation.DoWork()
   at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.Resize(ICompositionTarget resizedCompositionTarget)
   at System.Windows.Interop.HwndTarget.OnResize()
   at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(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)
Miroslav Nedyalkov
Telerik team
 answered on 20 Dec 2011
1 answer
110 views
Hi
How to pin a column to right or left?
(Doesn't scroll left or right with scroll bar)

Thanks
Maya
Telerik team
 answered on 20 Dec 2011
0 answers
104 views
Hello to all
I have a application in windows c#.. I am having a wpf page in which i am using date picker(wpf control) and radgridview(telerik)..

when i make exe and runs on client's application and when i open that page  i am getting error
Plz see the attached file


Jack
Top achievements
Rank 1
 asked on 20 Dec 2011
2 answers
251 views
In my RadPane I have a Listbox that is part of a UserControl in the Content section that I need to bind to a ComboBox in the TitleTemplate section; is this possible? A co-worker suggested searching the visual tree but I'm hoping there's a better way. The code currently falls down on the ItemsSource binding in the UserControl. A XAML solution is preferred but code-behind is fine if that is what is required.

TitleTemplate:
<DataTemplate x:Key="TitleTemplate">
  <Grid>
    <Grid.ColumnDefinitions>
      <ColumnDefinition Width="Auto"/>
      <ColumnDefinition Width="*"/>
    </Grid.ColumnDefinitions>
    <ContentPresenter Content="{Binding}"/>
    <StackPanel Orientation="Horizontal" Grid.Column="1">
      <ComboBox x:Name="Top" ItemsSource="{Binding Source={x:Static TopLevelElements}}"/>
      <ComboBox x:Name="Middle" ItemsSource="{Binding ElementName=Top, Path=SelectedItem.MiddleLevelElements}"/>
    </StackPanel>
  </Grid>
</DataTemplate>

UserControl:
<!--xmlns declarations in example omitted for brevity-->
<UserControl x:Class="BottomItemView">
  <Border>
    <ListBox x:Name="Bottom" ItemsSource="{Binding ElementName=Middle, Path=SelectedItem.BottomLevelElements}"/>
  </Border>
</UserControl>

Code for customized RadPane:
Public Class CustomRadPane
  Inherits RadPane
  
  Public Sub New(ByVal title As Object)
    MyBase.New()
    Me.Title = title
    Me.TitleTemplate = TryCast(FindResource("TitleTemplate"), DataTemplate)
    Me.Content = System.Activator.CreateInstance(BottomItemView)
  End Sub
End Class
Jason
Top achievements
Rank 1
 answered on 19 Dec 2011
1 answer
125 views
We are examining your ScheduleView control for a while. We are trying to adapt a special calendar named "Merch Calendar" to your ScheduleView. We think that ScheduleView is a good choice for us. In this adaption we need to customize your Rad ScheduleViewDefinitions section to fulfil our needs. If you look at the upper section of our attached screenshot you will see like  201151 201201 values. Their meanings are: 2011-2012 year information and 51-52 are week information. Additionally, size of the bars which corresponds to appointments should be resized by the users and we need to get these changing date values. In this context, how can we customize the ScheduleViewDefinition section.Will these modifications fulfil our needs or are there any other possible ways.
Thanks, best regards.
Rosi
Telerik team
 answered on 19 Dec 2011
3 answers
468 views
Hello,

I am trying to add a drop shadow to the Tab Control DropDownMenu. Currently, I am applying the drop shadow effect to the outermost border within "Telerik_Windows_Controls_TabControl:DropDownMenu" Control Template. The only way I have been able to make the effect visible is by increasing the margins around the containing grid. The problem with this is the margins now push the border/dropdownmenu away from the DropDownMenuButton, so it appears to be floating on its own. Applying a RenderTransform to compensate for the shift only cuts off the drop shadow effect. I have attached an image demonstrating this behavior.

<ControlTemplate TargetType="{x:Type Telerik_Windows_Controls_TabControl:DropDownMenu}">
    <Grid x:Name="PopupContentElement"
          Margin="40,0,40,80"
          RenderTransformOrigin="0,0">
        <Grid.RenderTransform>
            <TranslateTransform X="-40" />
        </Grid.RenderTransform>
        <Border BorderBrush="#FF848484"
                BorderThickness="{TemplateBinding BorderThickness}"
                Background="White">
            <Border.Effect>
                <DropShadowEffect BlurRadius="40"
                                  Color="Black"
                                  Direction="0"
                                  Opacity="0.85"
                                  RenderingBias="Quality"
                                  ShadowDepth="0" />
            </Border.Effect>

Any suggestions how to achieve the drop shadow effect without destroying the layout?

Thanks,
Frankie
Kiril Stanoev
Telerik team
 answered on 19 Dec 2011
1 answer
101 views
I have an object property that's an int32.  It's really a duration-in-seconds, but for a variety of reasons we can't use a TimeSpan, which also seems not to be supported as a masked-input or column type by Telerik.

I'd like to be able to allow users to input time in minutes:seconds in a column that's bound to this property.  When I tried it, I got conversion errors.

Is this supported directly?  I'll also trying adding conversion properties to my partial classes (I'm using Entity Framework 4) and see if that works, i.e. binding to the conversion properties.
Nick
Telerik team
 answered on 19 Dec 2011
2 answers
91 views
Hello,

I have been breaking my head over the following problem and I do not get it working fully.

I have a collection of Fase.
The Fase object Has three collectlions namely
Software
Training
Consultancy.

I want my treeview to look like this
Fase1
-Software
--Item1
--Item2
-Training
--Item1
--Item2
-Consultancy
--Item1
--Item2
Fase1
-Software
--Item1
--Item2
-Training
--Item1
--Item2
-Consultancy
--Item1
--Item2


These also all need different template but I am not able to figure out to get the first part working
Fase1
-Software
-Training
-Consultancy

Is it even possible what I try to create with my current dataobjects.

Kevin Hendriks
Top achievements
Rank 1
 answered on 19 Dec 2011
3 answers
99 views
Hi,

I'm using Telerik V2011.3.1116.35 and VS2008. I have a RadWindow with multiple Telerik components inside of it. When in the designer part I click on my RadRichTextBox I receive the following message in my designer:

Exception has been thrown by the target of an invocation.

at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Delegate.DynamicInvokeImpl(Object[] args) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)

 

Ambiguous match found.

at System.RuntimeType.GetPropertyImpl(String name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers) at System.Type.GetProperty(String name) at MS.Internal.ComponentModel.DependencyPropertyKind.get_IsDirect() at MS.Internal.ComponentModel.DependencyPropertyKind.get_IsAttached() at MS.Internal.ComponentModel.APCustomTypeDescriptor.GetProperties(Attribute[] attributes) at MS.Internal.ComponentModel.APCustomTypeDescriptor.GetProperties() at System.ComponentModel.TypeDescriptor.TypeDescriptionNode.DefaultExtendedTypeDescriptor.System.ComponentModel.ICustomTypeDescriptor.GetProperties() at System.ComponentModel.TypeDescriptor.GetPropertiesImpl(Object component, Attribute[] attributes, Boolean noCustomTypeDesc, Boolean noAttributes) at System.ComponentModel.TypeDescriptor.GetProperties(Object component) at MS.Internal.Model.ModelPropertyCollectionImpl.GetProperties(String propertyNameHint) at MS.Internal.Model.ModelPropertyCollectionImpl.<GetEnumerator>d__0.MoveNext() at MS.Internal.Designer.PropertyEditing.Model.ModelPropertyMerger.<GetFirstProperties>d__0.MoveNext() at MS.Internal.Designer.PropertyEditing.Views.PropertyEntryReader.RedraftEntries(IPropertyViewManager viewManager, Selection selection, Boolean attachedOnly, IEventCodeBehindProxy eventCodeBehindProxy, CategoryList categoryList) at MS.Internal.Designer.PropertyEditing.PropertyInspector.UpdateCategories(Selection selection, Boolean attachedOnly, IEntryReader entryReader) at MS.Internal.Designer.PropertyEditing.PropertyInspector.RefreshPropertyList(Boolean attachedOnly) at MS.Internal.Designer.PropertyEditing.PropertyInspector.OnSelectionChangedIdle()

Thank's

Thank's
Iva Toteva
Telerik team
 answered on 19 Dec 2011
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
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?