Telerik Forums
UI for WPF Forum
1 answer
139 views
Hi,
I'm using the newly released version (2013.3.1204.40) of RadMaskedTextInput control.
The control has a strange behavior when pressing "delete" button on the keyboard.
<telerik:RadMaskedTextInput Culture="" Mask="" MinWidth="300"
    HorizontalContentAlignment="Right"
    UpdateValueEvent="LostFocus" TextMode="PlainText" InputBehavior="Insert" />
1. Type 1234.
2. Put the cursor between 1 and 2.
3. Press "Delete".
Result:
The input becomes "134", but the cursor moves to the position before "1", while I expect the cursor to be between 1 and 3. Is it a bug?
My environment: VS 2010, Windows 7.

Regards,
Gong
Petar Mladenov
Telerik team
 answered on 06 Dec 2013
1 answer
127 views
I have a problem with the RadPropertyGrid of WPF Q3 2013, in .Net 4.0.
 I'm trying to do a binding to a "Value" property of my data object "arg"


           propDef = new PropertyDefinition()
                    {
                        DisplayName = arg.Name.Value,
                        Description = arg.Description.Value,
                        Binding = new Binding()
                        {
                            Source = arg,
                            Path = new PropertyPath("Value", null) 
                           
                        },
                       
                        EditorTemplate = this.argTemplateSelector.SelectTemplate(arg, this.PropertyGrid)
                    }

but when the PropertyGrid is rendered on the screen I get an AmbiguousMatchException.
Dimitrina
Telerik team
 answered on 06 Dec 2013
11 answers
651 views

I am setting GridViewDataControl.ItemsSource to an instance of a QueryableCollectionView. When the grid is rendered on the screen I get an AmbiguousMatchException. Any ideas what might cause this?

I have included the stack trace below:

System.Reflection.AmbiguousMatchException was unhandled by user code

  HResult=-2147475171

  Message=Ambiguous match found.

  Source=mscorlib

  StackTrace:

       at System.RuntimeType.GetPropertyImpl(String name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers)

       at System.Type.GetProperty(String name)

       at Telerik.Windows.Controls.GridViewBoundColumnBase.GetValidationErrors(Object dataItem, String propertyName) in c:\TB\221\WPF_Scrum\Current_HotFix\Sources\Controls\GridView\GridView\GridView\Columns\GridViewBoundColumnBase.cs:line 1694

       at Telerik.Windows.Controls.GridView.GridViewCell.<GetDataErrors>d__7.MoveNext() in c:\TB\221\WPF_Scrum\Current_HotFix\Sources\Controls\GridView\GridView\GridView\Cells\GridViewCell.cs:line 704

       at Telerik.Windows.Data.EnumerableExtensions.Count(IEnumerable source) in c:\TB\221\WPF_Scrum\Current_HotFix\Sources\Core\Data\Collections\EnumerableExtensions.cs:line 126

       at Telerik.Windows.Controls.GridView.GridViewCell.UpdateIsValidState() in c:\TB\221\WPF_Scrum\Current_HotFix\Sources\Controls\GridView\GridView\GridView\Cells\GridViewCell.cs:line 624

       at Telerik.Windows.Controls.GridView.GridViewCell.UpdateValue() in c:\TB\221\WPF_Scrum\Current_HotFix\Sources\Controls\GridView\GridView\GridView\Cells\GridViewCell.cs:line 1708

       at Telerik.Windows.Controls.GridView.GridViewCell.SetCellElement() in c:\TB\221\WPF_Scrum\Current_HotFix\Sources\Controls\GridView\GridView\GridView\Cells\GridViewCell.cs:line 537

       at Telerik.Windows.Controls.GridView.GridViewRow.PrepareCell(GridViewCellBase cellBase, GridViewColumn column) in c:\TB\221\WPF_Scrum\Current_HotFix\Sources\Controls\GridView\GridView\GridView\Rows\GridViewRow.cs:line 915

       at Telerik.Windows.Controls.GridView.GridViewCellsPanel.PrepareCell(GridViewCellBase cell, GridViewColumn column) in c:\TB\221\WPF_Scrum\Current_HotFix\Sources\Controls\GridView\GridView\GridView\Virtualization\GridViewCellsPanel.cs:line 403

       at Telerik.Windows.Controls.GridView.GridViewCellsPanel.GetVirtualizedCell(GridViewColumn column, Boolean createIfNull) in c:\TB\221\WPF_Scrum\Current_HotFix\Sources\Controls\GridView\GridView\GridView\Virtualization\GridViewCellsPanel.Virtualization.cs:line 365

       at Telerik.Windows.Controls.GridView.GridViewCellsPanel.RealizeAndMeasureCells(Int32 startIndex, Int32 predictedLastIndex, Func`2 calculateNextIndex) in c:\TB\221\WPF_Scrum\Current_HotFix\Sources\Controls\GridView\GridView\GridView\Virtualization\GridViewCellsPanel.Virtualization.cs:line 300

       at Telerik.Windows.Controls.GridView.GridViewCellsPanel.UpdateVirtualizedCells() in c:\TB\221\WPF_Scrum\Current_HotFix\Sources\Controls\GridView\GridView\GridView\Virtualization\GridViewCellsPanel.Virtualization.cs:line 235

       at Telerik.Windows.Controls.GridView.GridViewCellsPanel.MeasureOverride(Size availableSize) in c:\TB\221\WPF_Scrum\Current_HotFix\Sources\Controls\GridView\GridView\GridView\Virtualization\GridViewCellsPanel.cs:line 290

       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

       at System.Windows.UIElement.Measure(Size availableSize)

       at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)

       at System.Windows.Controls.ItemsPresenter.MeasureOverride(Size constraint)

       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

       at System.Windows.UIElement.Measure(Size availableSize)

       at System.Windows.Controls.Grid.MeasureOverride(Size constraint)

       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

       at System.Windows.UIElement.Measure(Size availableSize)

       at System.Windows.Controls.Control.MeasureOverride(Size constraint)

       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

       at System.Windows.UIElement.Measure(Size availableSize)

       at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)

       at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged)

       at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)

       at System.Windows.Controls.Grid.MeasureOverride(Size constraint)

       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

       at System.Windows.UIElement.Measure(Size availableSize)

       at System.Windows.Controls.Border.MeasureOverride(Size constraint)

       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

       at System.Windows.UIElement.Measure(Size availableSize)

       at System.Windows.Controls.Control.MeasureOverride(Size constraint)

       at Telerik.Windows.Controls.GridView.GridViewRowItem.MeasureOverride(Size availableSize) in c:\TB\221\WPF_Scrum\Current_HotFix\Sources\Controls\GridView\GridView\GridView\Rows\GridViewRowItem.cs:line 199

       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

       at System.Windows.UIElement.Measure(Size availableSize)

       at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.NestedLayoutStrategy.MeasureChild(UIElement child, Size layoutSlotSize, Int32 i) in c:\TB\221\WPF_Scrum\Current_HotFix\Sources\Controls\GridView\GridView\GridView\Virtualization\GridViewVirtualizingPanel.NestedLayoutStrategy.cs:line 1575

       at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.NestedLayoutStrategy.MeasureOverride(Size constraint) in c:\TB\221\WPF_Scrum\Current_HotFix\Sources\Controls\GridView\GridView\GridView\Virtualization\GridViewVirtualizingPanel.NestedLayoutStrategy.cs:line 213

       at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.MeasureOverride(Size availableSize) in c:\TB\221\WPF_Scrum\Current_HotFix\Sources\Controls\GridView\GridView\GridView\Virtualization\GridViewVirtualizingPanel.cs:line 342

       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

       at System.Windows.UIElement.Measure(Size availableSize)

       at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)

       at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged)

       at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)

       at System.Windows.Controls.Grid.MeasureOverride(Size constraint)

       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

       at System.Windows.UIElement.Measure(Size availableSize)

       at System.Windows.Controls.Border.MeasureOverride(Size constraint)

       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

       at System.Windows.UIElement.Measure(Size availableSize)

       at System.Windows.Controls.Control.MeasureOverride(Size constraint)

       at Telerik.Windows.Controls.GridView.GridViewDataControl.MeasureOverride(Size availableSize) in c:\TB\221\WPF_Scrum\Current_HotFix\Sources\Controls\GridView\GridView\GridView\GridViewDataControl.cs:line 6659

       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

       at System.Windows.UIElement.Measure(Size availableSize)

       at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)

       at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)

       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

       at System.Windows.UIElement.Measure(Size availableSize)

       at System.Windows.Controls.StackPanel.StackMeasureHelper(IStackMeasure measureElement, IStackMeasureScrollData scrollData, Size constraint)

       at System.Windows.Controls.StackPanel.MeasureOverride(Size constraint)

       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

       at System.Windows.UIElement.Measure(Size availableSize)

       at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)

       at System.Windows.Controls.ItemsPresenter.MeasureOverride(Size constraint)

       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

       at System.Windows.UIElement.Measure(Size availableSize)

       at System.Windows.Controls.Border.MeasureOverride(Size constraint)

       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

       at System.Windows.UIElement.Measure(Size availableSize)

       at System.Windows.Controls.Control.MeasureOverride(Size constraint)

       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

       at System.Windows.UIElement.Measure(Size availableSize)

       at System.Windows.Controls.Control.MeasureOverride(Size constraint)

       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

       at System.Windows.UIElement.Measure(Size availableSize)

       at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)

       at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)

       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

       at System.Windows.UIElement.Measure(Size availableSize)

       at System.Windows.Controls.Border.MeasureOverride(Size constraint)

       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

       at System.Windows.UIElement.Measure(Size availableSize)

       at System.Windows.ContextLayoutManager.UpdateLayout()

       at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)

       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.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: 

Dimitrina
Telerik team
 answered on 06 Dec 2013
3 answers
205 views
    Hello everyone, now I have put some pinpoints on the map(behind there are some custom objects named target), and I want the image of pinpoint to change  dynamically when some events occur, what should I do? Should I Use INotifyPropertyChanged or ObservableCollection (maybe this will not work because map will not refresh when image source property change)? Or should I not use pinpoint and instead use custom item directly?
    What's the best way to organize the items on map that can reflect the change of property(image) in real time? Thank you every much and wait for help! (Better If there are some sample codes)
Yb
Top achievements
Rank 1
 answered on 06 Dec 2013
8 answers
245 views
Hi 
I downloaded the latest version of teleric wpf components
I am using Expression Dark theme, but the RadComboBox caret brush set to black which make difficult to user to see it, Please let me know if i can change the caret brush.
I can change the caret brush for TextBox, but i need to do the same for RadComboBox.

Thanks ,
Akram
 

Don
Top achievements
Rank 1
 answered on 05 Dec 2013
0 answers
281 views
It is possible to create a horizontal line in word by entering a long line of dashes and then hitting return. Not only does this not work in the radrichtextbox, but horizontal lines do not appear when copy and pasted or when in an imported richtext document.
Clifford
Top achievements
Rank 1
 asked on 05 Dec 2013
0 answers
54 views
We are importing rich text documents into the radrichtextbox (verson 2013.3) and have issues with the first tab. In word, if the first line of a paragraph is outdented, then the first tab on the first line will will take the cursor to the indent point. Right now the first tab takes the cursor to a default tab position which is every half inch. Is this being addressed?
Clifford
Top achievements
Rank 1
 asked on 05 Dec 2013
4 answers
257 views
Good morning,
I am having a problem when using an in-line CellStyle to set a 'condiitonal' ToolTip. The scenario I'm dealing with boils down to a single column where some rows have a tool-tip and others do not. Initially when hovering over a cell with a tool-tip the tool-tip is displayed correctly. I then hover over a cell without a tool-tip and as expected no tool-tip is displayed; however, upon returning to a cell with a tool-tip the tool-tip is no longer displayed correctly. If you repeat the process the tool-tip will alternate between working and not working. Why are the rows with a tool-tip being affected by the rows without? Thanks in advance!

We are currently on the 2013.2 Telerik libraries.

Below is a code sample that illustrates the problem. First is the ViewModel that holds a simple collection of Model objects.

using System.Collections.ObjectModel;
using System.Windows;
 
namespace ConditionalColumnToolTip
{
    public class ViewModel
    {
        public ViewModel()
        {
            Models = new ObservableCollection<Model>
                {
                    new Model{ Name = "HasAToolTip", ToolTipVisibility = Visibility.Visible, ToolTipText = "tool tip text"},
                    new Model{ Name = "HasAToolTip", ToolTipVisibility = Visibility.Visible, ToolTipText = "tool tip text"},
                    new Model{ Name = "NoToolTip", ToolTipVisibility = Visibility.Collapsed },
                    new Model{ Name = "HasAToolTip", ToolTipVisibility = Visibility.Visible, ToolTipText = "tool tip text"},
                };
        }
 
        public ObservableCollection<Model> Models
        {
            get; set;
        }
    }
}

Next is the simple definition of the Model object.

using System.Windows;
 
namespace ConditionalColumnToolTip
{
    public class Model
    {
        public string Name
        {
            get; set;
        }
 
        public Visibility ToolTipVisibility
        {
            get; set;
        }
 
        public string ToolTipText
        {
            get; set;
        }
    }
}

I set the DataContext of my MainWindow.xaml to an instance of the ViewModel in the MainWindow.xaml.cs

using System.Windows;
 
namespace ConditionalColumnToolTip
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
 
            DataContext = new ViewModel();
        }
    }
}


And finally here is the XAML for the MainWindow.xaml that recreates the issue.

<Window x:Class="ConditionalColumnToolTip.MainWindow"
        xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"
        xmlns:vm="clr-namespace:ConditionalColumnToolTip"
        xmlns:gridView="clr-namespace:Telerik.Windows.Controls.GridView;assembly=Telerik.Windows.Controls.GridView"
        Title="MainWindow" Height="350" Width="525"
        mc:Ignorable="d" d:DataContext="{d:DesignInstance vm:ViewModel, IsDesignTimeCreatable=True}">
    <Grid>
         
        <telerik:RadGridView ItemsSource="{Binding Models}" AutoGenerateColumns="False">
            <telerik:RadGridView.Columns>
                 
                <telerik:GridViewDataColumn Header="TITLE" DataMemberBinding="{Binding Name}">
                    <telerik:GridViewColumn.CellStyle>
                         
                        <Style TargetType="{x:Type gridView:GridViewCell}" BasedOn="{StaticResource {x:Type gridView:GridViewCell}}">
                            <Setter Property="ToolTip">
                                <Setter.Value>
                                    <ToolTip Visibility="{Binding ToolTipVisibility}">
                                        <TextBlock Text="{Binding ToolTipText}"/>
                                    </ToolTip>
                                </Setter.Value>
                            </Setter>
                        </Style>
                         
                    </telerik:GridViewColumn.CellStyle>
                </telerik:GridViewDataColumn>
                 
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>
         
    </Grid>
</Window>

Any ideas would be greatly appreciated. Thanks again!

Cheers!

Jason
Jason
Top achievements
Rank 1
 answered on 05 Dec 2013
1 answer
94 views

Hi,


I have an object which I use in Mail Merge.  Under "Insert Mail Merge" drop down ribbon button, all of these fields appear and I can use them just fine.  However, I don't need all properties to be displayed there.  Is there a way to specify which properties show and should not be included as part of the Mail Merge fields?



Also, is it possible to give a different name to the Mail Merge item in the drop down ribbon button?  For example, if I have a property FirstName, I want it to display as "First Name".



Thank you in advance.



Petya
Telerik team
 answered on 05 Dec 2013
12 answers
399 views
I need to be able to color each task on the gantt view independently.  meaning the first item in a series should be blue if it meet a criteria, or red, or green, depending on conditions.  I only see the theming option, which wont accomplish my goal.
is it possible to color each task seperately?
Yana
Telerik team
 answered on 05 Dec 2013
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
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
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
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?