Telerik Forums
UI for WPF Forum
7 answers
144 views
Hello,

I Just upgraded to version 2010.1.422.35. Our screens are all contained inside of a ViewBox with Stretch="Fill". The Docking control works as expected but when the size changes the compass size doesn't change at all. I was wondering if you had any ideas on how i could change the compass size?

Thanks Much,
~Boots
Miroslav Nedyalkov
Telerik team
 answered on 18 May 2010
6 answers
171 views
I`m using Rad TabControl Q3 sp1 and in VS 2008 I can`t open other tabitems than first one. I can`t see other items content. Even in the your example project.
Vladislav
Telerik team
 answered on 18 May 2010
7 answers
270 views
I have a grid, where all the columns are of type: GridViewDataColumn.

One column (Modulation) in edit mode consists of a combo box and a button. Another grid is a TextBox.
The problem is that when I am changing the selection of the Combo box, and then move to another column (Fading Doppler), the "Modulation" column remains in edit, it doesn't loose focus.

Essentially what I have observed is that, since the fact that the another column is a TextBox, this problem happens. If the control is something else, the problem doesn't happen.

Here is the declaration of the columns:

                <!-- Modulation selection column -->
                <telerik:GridViewDataColumn Header="Modulation" Width="150" DataMemberBinding="{Binding Modulation, Mode=TwoWay}" TextAlignment="Center" >
                        <telerik:GridViewDataColumn.CellTemplate>
                            <DataTemplate>
                            <TextBlock Text="{Binding Modulation}" Foreground="{Binding Path, Converter={StaticResource colorConverter}}"/>
                            </DataTemplate>
                        </telerik:GridViewDataColumn.CellTemplate>
                        <telerik:GridViewDataColumn.CellEditTemplate >
                            <DataTemplate>
                                <StackPanel Orientation="Horizontal">
                                <ComboBox Loaded="Editor_Loaded" Width="100" Margin="5, 0, 0, 0" Foreground="{Binding Path, Converter={StaticResource colorConverter}}" Text="{Binding Modulation, Mode=TwoWay}" Background="White"  SelectionChanged="modulationChanged">
                                        <ComboBoxItem>Static</ComboBoxItem>
                                        <ComboBoxItem>Rayleigh</ComboBoxItem>
                                        <ComboBoxItem>Rician</ComboBoxItem>
                                </ComboBox>
                                <Button Content="More..." Foreground="{Binding Path, Converter={StaticResource colorConverter}}"/>
                                </StackPanel>
                            </DataTemplate>
                        </telerik:GridViewDataColumn.CellEditTemplate>
                    </telerik:GridViewDataColumn>

                <!-- Fading Doppler -->
                <telerik:GridViewDataColumn Width="110" DataMemberBinding="{Binding fDFreq, Mode=TwoWay}" >
                    <telerik:GridViewDataColumn.Header>
                        <TextBlock Text="Fading Doppler (Hz)" TextAlignment="Center" TextWrapping="Wrap" />
                    </telerik:GridViewDataColumn.Header>
                    <telerik:GridViewDataColumn.CellTemplate>
                        <DataTemplate>
                            <TextBox Text="{Binding fDFreq}" Foreground="{Binding Path, Converter={StaticResource colorConverter}}" IsReadOnly="True" IsEnabled="{Binding Modulation, Converter={StaticResource isModulationOtherThanStatic}}"/>
                        </DataTemplate>
                    </telerik:GridViewDataColumn.CellTemplate>
                    <telerik:GridViewDataColumn.CellEditTemplate>
                        <DataTemplate>
                            <TextBox Text="{Binding fDFreq, Mode=TwoWay}" Foreground="{Binding Path, Converter={StaticResource colorConverter}}" IsEnabled="{Binding Modulation, Converter={StaticResource isModulationOtherThanStatic}}"/>
                        </DataTemplate>
                    </telerik:GridViewDataColumn.CellEditTemplate>
                </telerik:GridViewDataColumn>

Ujjwal Lahoti
Top achievements
Rank 1
 answered on 17 May 2010
7 answers
247 views
Hi,I'm trying to add Items to a RadCarouselPanel through Code, But I'm having trouble...

This is my code:

...
           
            <telerik:RadCarouselPanel Name="imgPicker"  ItemsMovementAnimationDuration="0:0:0.5"
                    ItemsPerPage="11" PathPadding="70,50,70,50" IsOpacityEnabled="True"
                    IsScalingEnabled="True" IsSkewAngleYEnabled="True" Height="100" MinHeight="100" >
                <telerik:RadCarouselPanel.Path>
                    <Path HorizontalAlignment="Center" VerticalAlignment="Center" Stretch="Fill" Data="M 0,300 C0,300 500,300 500,300 " />
                </telerik:RadCarouselPanel.Path>
                <telerik:RadCarouselPanel.SkewAngleYStops>
                    <telerik:PathStopCollection>
                        <telerik:PathStop PathFraction="0.15" Value="-15" />
                        <telerik:PathStop PathFraction="0.45" Value="-15" />
                        <telerik:PathStop PathFraction="0.5" Value="0" />
                        <telerik:PathStop PathFraction="0.55" Value="15" />
                        <telerik:PathStop PathFraction="0.85" Value="15" />
                    </telerik:PathStopCollection>
                </telerik:RadCarouselPanel.SkewAngleYStops>
                <telerik:RadCarouselPanel.ScaleStops>
                    <telerik:PathStopCollection>
                        <telerik:PathStop PathFraction="0.4" Value="1.0" />
                        <telerik:PathStop PathFraction="0.5" Value="1.5" />
                        <telerik:PathStop PathFraction="0.6" Value="1.0" />
                    </telerik:PathStopCollection>
                </telerik:RadCarouselPanel.ScaleStops>
                <telerik:RadCarouselPanel.OpacityStops>
                    <telerik:PathStopCollection>
                        <telerik:PathStop PathFraction="0.0" Value="0.0" />
                        <telerik:PathStop PathFraction="0.1" Value="1.0" />
                        <telerik:PathStop PathFraction="0.9" Value="1.0" />
                        <telerik:PathStop PathFraction="1.0" Value="0.0" />
                    </telerik:PathStopCollection>
                </telerik:RadCarouselPanel.OpacityStops>
            </telerik:RadCarouselPanel>           
...

And my CodeBehind:

public MainWindow ()
        {
            InitializeComponent();
           
            imageList = new List<BitmapImage>();

            BitmapImage bi = new BitmapImage();
            bi.BeginInit();
            bi.UriSource = new Uri(@"Imgs/OCR1.TIF", UriKind.RelativeOrAbsolute);
            bi.EndInit();
           
            imageList.Add(bi);

            bi = new BitmapImage();
            bi.BeginInit();
            bi.UriSource = new Uri(@"Imgs/OCR2.TIF", UriKind.RelativeOrAbsolute);
            bi.EndInit();

            imageList.Add(bi);

            bi = new BitmapImage();
            bi.BeginInit();
            bi.UriSource = new Uri(@"Imgs/OCR3.TIF", UriKind.RelativeOrAbsolute);
            bi.EndInit();

            imageList.Add(bi);

            imgPicker.DataContext = imageList;

         
        }

Is this the right way to do this?

My panel is not showing anything =/
Maya
Telerik team
 answered on 17 May 2010
1 answer
123 views
Hi, i'm trying to do somethiing and didn't see anything like this on the samples, or useful events for this.

What do I want to do:

Let's say that I have a RadCarousel styled as a coverflow, with 4 images on this order A-B-C-D

I want to drag D to position 2, with the mouse, so the new order would be A-B-D-C

Any clue?

Thanks a lot!
Milan
Telerik team
 answered on 17 May 2010
8 answers
307 views
When a user selected a current Item or an Item comes into view. How can I call an event to populate a gridview.

For example.. If a Item for John Doe becomes into view or is the selected Caroisel Item - I'd like to make a DB call to grab a dataset of his addresses.

How can I wire up an event to the selected Carousel Item and bind the dataset to the RadGridView.

Thanks again for all your help!!
Milan
Telerik team
 answered on 17 May 2010
4 answers
212 views
I need to create a portal style WPF application much in the style of that shown in your My Portal demo at http://mono.telerik.com/Dock/Examples/MyPortal/DefaultCS.aspx

However, this control appears to be for ASP.NET whereas I need to put this together in a WPF windows application. So, I have been looking into the RadDocking control but this appears to be more along the lines of Visual Studio type docking. I simply want to have a couple of columns where I can add, remove and arrange widgets. Is this possible using the RadDocking control without complicating things with the extra functionality? If so, do you have a sample?

Thanks
Matt
Top achievements
Rank 1
 answered on 17 May 2010
3 answers
294 views
I created library with my custom theme for RadWindow, but after applying (using StyleManager) and click on header Close button application chashes.

I use this code for close button:

<telerik:RadButton x:Name="PART_CloseButton" Command="telerik:WindowCommands.Close" Style="{StaticResource WindowButtonStyle}">
                                        <Path Fill="{StaticResource WindowButtonIconFill}" Stroke="{StaticResource WindowButtonIconStroke}" Width="14" Height="14" Data="M1.5,3.5 L2.5,2.5 4.5,2.5 6.5,4.5 8.5,2.5 10.5,2.5 11.5,3.5 8.5,6.5 8.5,7.5 11.5,10.5 10.5,11.5 8.5,11.5 6.5,9.5 4.5,11.5 2.5,11.5 1.5,10.5 4.5,7.5 4.5,6.5 z" />
                                    </telerik:RadButton>

Also is use alternate of Command="telerik:WindowCommands.Close":
 
<Button.Command>
    <RoutedUICommand
    Text="Close" />
 </Button.Command>
than button not work.

Help me to resolve this problem.

Thanks
Miroslav Nedyalkov
Telerik team
 answered on 17 May 2010
3 answers
113 views
hi
i need to export to excell for the datagrid
i use the same way from your example
i have problem with exporting hebrew language.

 

if (dialog.ShowDialog() == true)

 

{

 

using (Stream stream = dialog.OpenFile())

 

{

radGridView_searchResult.Export(stream,

 

new GridViewExportOptions()

 

{

Format = format,

ShowColumnHeaders =

true,

 

 

ShowColumnFooters = true,

 

ShowGroupFooters =

true,

 

Encoding =

Encoding.GetEncoding("windows-1255"),

 

});

 

}

}

Yavor Georgiev
Telerik team
 answered on 17 May 2010
3 answers
198 views
Hi,

In my application I get regulary this message:

System.InvalidOperationException was unhandled by user code
  Message=Specified element is already the logical child of another element. Disconnect it first.
  Source=PresentationFramework
  StackTrace:
       at System.Windows.FrameworkElement.ChangeLogicalParent(DependencyObject newParent)
       at System.Windows.FrameworkElement.AddLogicalChild(Object child)
       at System.Windows.Controls.ContentControl.OnContentChanged(Object oldContent, Object newContent)
       at System.Windows.Window.OnContentChanged(Object oldContent, Object newContent)
       at Telerik.Windows.Controls.Docking.FakePopupWindow.OnContentChanged(Object oldContent, Object newContent) in c:\Builds\WPF_Scrum\Docking_WPF_2010_Q1\Sources\Development\Controls\Docking\Docking\Popup\FakePopupWindow.cs:line 46
       at System.Windows.Controls.ContentControl.OnContentChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
       at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
       at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
       at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
       at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
       at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
       at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
       at System.Windows.Controls.ContentControl.set_Content(Object value)
       at Telerik.Windows.Controls.Docking.FakePopupWindow..ctor(Window owner, FakePopup p) in c:\Builds\WPF_Scrum\Docking_WPF_2010_Q1\Sources\Development\Controls\Docking\Docking\Popup\FakePopupWindow.cs:line 34
       at Telerik.Windows.Controls.Docking.FakePopup.Open() in c:\Builds\WPF_Scrum\Docking_WPF_2010_Q1\Sources\Development\Controls\Docking\Docking\Popup\FakePopup.cs:line 52
       at Telerik.Windows.Controls.Docking.FakePopup.OnLoaded(Object sender, RoutedEventArgs e) in c:\Builds\WPF_Scrum\Docking_WPF_2010_Q1\Sources\Development\Controls\Docking\Docking\Popup\FakePopup.cs:line 143
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
       at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
       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.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:

Any idea what can cause this problem?

Thanks in advance,
Thomas
Miroslav Nedyalkov
Telerik team
 answered on 17 May 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?