Telerik Forums
UI for WPF Forum
3 answers
156 views
I want to extend RadDatePicker. I've created this class:

public class CustomRadDatePicker : RadDatePicker
{
    // no code yet
}


As you can see there is absolutely no code yet in this class but when adding CustomRadDatePicker instead of RadDatePicker in XAML there is no control displayed at design time and runtime. I've extended many other of your controls and there were no Problems so can you please tell me what's wrong here? I need to extend RadDatePicker.
Johannes
Top achievements
Rank 1
 answered on 06 Feb 2015
2 answers
338 views
Hi,

I am defining the columns for a GridView in XAML and allow the users to reorder the columns. I added a context menu where the user can select to arrange the columns back in their original XAML order.

I cannot see any property that has the original display index so I was going to store this in the Tag property. I just wanted to check first if there was a better way to do this?

Thanks
Anthony
Anthony
Top achievements
Rank 1
Iron
Veteran
 answered on 05 Feb 2015
4 answers
216 views
Hi everyone!

I need to enable the user to choose between Yes or No in the RadWindow.Confirm by using the keyboard letters (to be more specific, the "S" letter to confirm and the "N" letter to cancel. This would replace the need to click the yes/no button, allowing the user to make the decision a bit faster. The buttons would still be there but the keyboard letters would be provided as shortcuts.

Is there any way I can achieve that behavior by using the RadWindow.Confirm component?

Thanks in advance,

Fred
Fred
Top achievements
Rank 1
 answered on 05 Feb 2015
4 answers
228 views
 Hi,
I tried a method in a similar thread for custom ComboBox editor. I can see NodeTypes in the ComboBox element. But when select the item, value can not assign to target value. CheckConverter is just created to check binding value, and converter not rising.

Thanks in advance.

public class Node : ObservableObject
{
        protected int nodeType;
 
        public int NodeType
        {
            get { return nodeType; }
            set { nodeType= value; RaisePropertyChanged(() => NodeType ); }
        }
   }

 
<DataTemplate x:Key="NodeTypeTemplate">
 
        <telerikRad:RadComboBox ItemsSource="{Binding
Source={x:Static helpers:ItemViewFacade.NodeTypes}}"
 
                                 SelectedValue="{Binding NodeType,Converter={StaticResource
CheckConverter}, Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
 
                                 SelectedValuePath="Value"
 
                                 DisplayMemberPath="Header"
 
                                 Margin="0">
 
        </telerikRad:RadComboBox>
 
    </DataTemplate>

 

 
private void radPropertyGrid1_AutoGeneratingPropertyDefinition(object sender, AutoGeneratingPropertyDefinitionEventArgs e)
 {
            if(e.PropertyDefinition.DisplayName == "NodeType")
            {
                var templateName = string.Format("{0}Template",e.PropertyDefinition.DisplayName);
 
                e.PropertyDefinition.EditorTemplate = templateSelector.GetTemplate(templateName);
            }
 
}
Ivan Ivanov
Telerik team
 answered on 05 Feb 2015
1 answer
80 views
The issue occurs when we try to edit the negative value in the RadMaskedTextBox control.
Application crash occured with an exception "Input string was not in a correct format."

Sample code given below :

<telerik:RadMaskedTextBox x:Name="NumerictextBox" MaskType="Numeric" MinWidth="100" HorizontalContentAlignment="Right"
                               Mask="n0"  MaskedText="{Binding MaskText}"TextAlignment="Right"  Height="20" Margin="250,62,33,227"/>

Steps to reproduce :
1. Input a negative value in the textbox say, -5678
2. Select value 5678 (NB : Don't select '-' sign) and try to delete

Please let us know the work around.

Thanks in advance
James Xavier
Martin Ivanov
Telerik team
 answered on 05 Feb 2015
1 answer
103 views
Can I bind heatmap to a two dimensional array?
Peshito
Telerik team
 answered on 05 Feb 2015
3 answers
99 views
Hello All,

I am currently exporting a grid to ExcelML.  Based on the columns UniqueName, I need to export the cells tool tip rather than the value itself.

I am already handling the ElementExporting event from the grid, but I am failing to see a property or method I can use to get the cell's tool tip.  e.Context is the GridViewDataColumn, not the cell itself.

Has anyone had a need to support something like this or provide some quick hints?

Thanks,
Chris

Maya
Telerik team
 answered on 05 Feb 2015
1 answer
106 views
I have GanttView. When I click on empty space of timeline I need scroll to task on this row. How I can do this?
Polya
Telerik team
 answered on 05 Feb 2015
3 answers
200 views
I'm sure I've missed some obscure piece of example code listed somewhere but all I want to know, for now, is how do I tell the carousel what item to place as the foremost item. Out of a carousel of 10 pics, I want pic #5 to be the first item displayed upon the carousel being rendered. I do think I tripped over a possible clue once in a random post to someone's answer but can't seem to locate that little pebble. So after countless posts and documents I'm just wanting to know how do I do this simple thing. Exasperated. 

Thanks in advance,

Tony
Boris
Telerik team
 answered on 05 Feb 2015
6 answers
115 views
When OnEditEnded is fired the e.OldValue and e.NewValue don't seem to have the correct value. They both always have the old value. I need to be able to see if the value has changed to update the a dirty data flag in my application. Is there any way to do this? Thanks
Ivan Ivanov
Telerik team
 answered on 05 Feb 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?