Telerik Forums
UI for WPF Forum
5 answers
133 views
Hi Guys,

reffering to your WPF-Demo "Tree to Grid Drag": How can I prevent
a Drag-Operation from the GridView by dragging the Header instead of
the item?

The behavior makes no sense. In your corresponding Silverlight-Example
you can´t drag the Header.

Bye, Michael
Michael Storchmann
Top achievements
Rank 1
 answered on 22 Apr 2011
1 answer
101 views
Hi there,

I'm having a problems with the transitions in this particular scenario:
I want to change in code behind the Content of my RadTransitioncontrol, as well as the ContentTemplate and the Transition.
So i wrote the following code:

//Switch to TILE mode
if (layoutMode.Equals(SlideshowLayoutMode.Tile))
{
     this.RadTransitionControl_Root.Transition = this.switchModeTransition;
     this.RadTransitionControl_Root.ContentTemplate = (DataTemplate)this.Resources["ImageTemplateTile"];
     Binding tileBinding = new Binding("AllImages");
     this.RadTransitionControl_Root.SetBinding(RadTransitionControl.ContentProperty, tileBinding);
}
//Switch to SEQUENCE mode
else
{
     this.RadTransitionControl_Root.ContentTemplate = (DataTemplate)this.Resources["ImageTemplateSequence"];
     Binding sequenceBinding = new Binding("ImageSrc");
     this.RadTransitionControl_Root.SetBinding(RadTransitionControl.ContentProperty, sequenceBinding);
     this.RadTransitionControl_Root.Transition = this.sequenceTransition;
}

But the transition doesn't work in two cases:
1) The first time i change to TILE mode
2) Every time i change to TILE mode after a NotifyPropertyChanged of the Property "ImageSrc" happend.

Some help would be nice,
Thanks,
Ângelo Moreira.

Miroslav Nedyalkov
Telerik team
 answered on 22 Apr 2011
3 answers
150 views
Hi,

I am trying to use the RadDataForm to display non-CLR based information and am having trouble finding examples of either building the form through the code behind or some other way. What we have is an object that has a collection of properties (KeyValuePairs (names, object)) which are created by the end user and displayed in a PropertyGrid through the ICustomTypeDescriptor interface.

Thanks for the help,
Greg
Pavel Pavlov
Telerik team
 answered on 22 Apr 2011
1 answer
133 views
Indicator of position is still black, when applying some style for NumericUpDown. That indicator is almost not visible for dark background (See image HERE). Is it possible to change color of indicator according to color of text? 

I have got the same problem with DatePicker and DateTimePicker.
Boyan
Telerik team
 answered on 22 Apr 2011
3 answers
183 views
I want to Compare 2 columns in a a RadGridView to set the style of the cell.  I saw the example where you are comparing to a static value, but is there a way to compare it to another column.  Basically I want to see if 2 columns are equal. If not, make the font bold and red.
Maya
Telerik team
 answered on 22 Apr 2011
2 answers
95 views
I'm creating a windows explorer interface and I'd like to display checkboxes for files and not directories. If I set isOptionElementsEnabled to true it shows checkboxes next to them all. I tried setting isOptionElementsEnabled to true and then programmatically disabling the checkboxes for directories this way:

            DirectoryInfo di = new DirectoryInfo(_currentPath);
            DirectoryInfo[] directories = di.GetDirectories();
            FileInfo[] files = di.GetFiles();           
 
foreach (DirectoryInfo dInfo in directories)
            {
                RadTreeViewItem tvDirectoryItem = new RadTreeViewItem() { Header = dInfo.Name, DefaultImageSrc = "folder_icon.gif"};
                tvDirectoryItem.ItemsOptionListType = OptionListType.None;
                tvDirectory.Items.Add(tvDirectoryItem);
            }
            foreach (FileInfo fInfo in files)
            {
                //tvDirectory.IsOptionElementsEnabled = true;
                RadTreeViewItem tvFileItem = new RadTreeViewItem() { Header = fInfo.Name };
                tvFileItem.ItemsOptionListType = OptionListType.CheckList;
                tvDirectory.Items.Add(tvFileItem);
            }


but it didn't work. Is there anyway to do this outside of using two separate treeviews on top of each other?
fred williams
Top achievements
Rank 1
 answered on 22 Apr 2011
1 answer
261 views
Hello,

I have a RadDatePicker whose SelectedValue is bound to a property of an object which implements IDataErrorInfo:

<telerik:RadDatePicker

 

 

 

telerik:StyleManager.Theme="Office_Black"

 

DataContext="{Binding ReceiptDateField}"

 

SelectedValue="{Binding SelectedDate, Mode=TwoWay, ValidatesOnDataErrors=True}"

 

 

DateTimeWatermarkContent="" DisplayFormat="Short"

 

Margin="296,196,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Height="24" Width="84"/>

If validation failes the RadDatePicker only has a red border but no red triangle in the upper right corner. Therefore it's not possible to see the error info.
Could you please fix this bug.

Greetings

Heiko

Boyan
Telerik team
 answered on 22 Apr 2011
5 answers
207 views
Can anyone help with this error?

Cannot find type 'Telerik.Windows.Controls.RadContextMenu'

I get this error when attempting to load the form containing Telerik controls. It is looking for the RadDropDownButton.cs file in the InitializeComponent().

Is this an installation issue or a licensing issue? I'm currently evaluating the Telerik controls.

G
Pavel Pavlov
Telerik team
 answered on 22 Apr 2011
2 answers
191 views
I want to insert some text, like in a usual letter: the date and "Dear John,"...

I tried this:
editor.Insert(DateTime.Now.Date.ToShortDateString());
editor.InsertLineBreak();
editor.Insert("Dear John,");
...and it works fine!

Now I want to have my date at the right and John at the left.
I tried this:
editor.Insert(DateTime.Now.Date.ToShortDateString());
editor.ChangeTextAlignment(RadTextAlignment.Right);
editor.InsertLineBreak();
editor.Insert("Dear John,");
editor.ChangeTextAlignment(RadTextAlignment.Left);

But it did not work out.
I searched the web for a little bit help about ChangeTextAlignment, but could not find something usefull.
I guess I have to use paragraphs, selection...?


Rieni De Rijke
Top achievements
Rank 1
 answered on 21 Apr 2011
4 answers
131 views
Hi,

Does anyone have any advice on how I can implement a GridView so that the columns can be stacked (i.e. a row with 20 columns may have 10 across stacked two high)?
bgmania
Top achievements
Rank 1
 answered on 21 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?