Telerik Forums
UI for WPF Forum
1 answer
68 views
How to bind the DeatilsRow to WCF.

My gridView's source is bound to a wcf operation , I wish to bind the details row to another wcf operation.
How to do that.
Rossen Hristov
Telerik team
 answered on 03 Jun 2010
3 answers
116 views
We are using the RadToolBar in the Q3 2009 release.

When we bind to the ItemSource of the RadToolBar it loads fine but if we make the window smaller (to the point where the overflow appears) then bigger, the items repeat. Attached is a before and after.


Valentin.Stoychev
Telerik team
 answered on 03 Jun 2010
1 answer
120 views
I can't set the foregournd color to black in the place where I placed the comment.

<telNav:RadPanelBar x:Name="PresentationPanel"
                             Template="{DynamicResource PresentationPanelBar}"
                             DataContext="{Binding}">
        <telNav:RadPanelBarItem Name="CollateralLibraryPanel"
                                    IsExpanded="False"
                                    ScrollViewer.CanContentScroll="True"
                                    Template="{DynamicResource PresentationPanelBarItem}" Background="#FF641818">
            <telNav:RadPanelBarItem.Header >
                <TextBlock Text="Collateral Library"
                               Foreground="#FFFFFF"
                               Name="txtTopicsHeader"
                               Margin="5 4 5 5" />
            </telNav:RadPanelBarItem.Header>
            <StackPanel Orientation="Vertical"
                            VerticalAlignment="Top"
                            MaxHeight="200"
                            Margin="0"
                            ScrollViewer.CanContentScroll="True"
                            ScrollViewer.VerticalScrollBarVisibility="Auto"
                            HorizontalAlignment="Left">

                <!-- CAN'T SET FOREGROUND COLOR TO BLACK!!!! below -->
                <telNav:RadPanelBar x:Name="pbLeaveBehindMaterial"
                                            MinWidth="182"
                                            MaxHeight="180"
                                            Margin="0"
                                            ItemsSource="{Binding Path=LeaveBehindMaterials, Mode=TwoWay}"
                                            ScrollViewer.CanContentScroll="True"
                                            ScrollViewer.VerticalScrollBarVisibility="Auto"
                                            ItemTemplate="{StaticResource FolderDataTemplate}"                                       
                                            IsEnabled="True">
                </telNav:RadPanelBar>
            </StackPanel>
        </telNav:RadPanelBarItem>
    </telNav:RadPanelBar>

Dimitrina
Telerik team
 answered on 03 Jun 2010
2 answers
46 views
With the latest 5-28 internal release, RadTileViews placed inside a RadPanelBar are now rendering 90 degrees off. Is there a setting to change this back or is this an unintentional bug.
Bobi
Telerik team
 answered on 03 Jun 2010
1 answer
92 views
Try dragging an item from all products to Order grid's column caption. Bum.

---------------------------
Fatal error!
---------------------------
Error message: Object reference not set to an instance of an object.

StackTrace:    at Telerik.Windows.Examples.DragAndDrop.WPF.TreeToGrid.Example.OnGridViewDropInfo(Object sender, DragDropEventArgs e)

   at Telerik.Windows.Controls.DragDrop.DragDropEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget) in c:\Builds\WPF_Scrum\Core_WPF_2010_Q1\Sources\Development\Core\Controls\DragDrop\DragDropEventArgs.cs:line 47

   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)

   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)

   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)

   at Telerik.Windows.Controls.DragDrop.RadDragAndDropManager.RaiseDropInfo() in c:\Builds\WPF_Scrum\Core_WPF_2010_Q1\Sources\Development\Core\Controls\DragDrop\RadDragAndDropManager.cs:line 659

   at Telerik.Windows.Controls.DragDrop.RadDragAndDropManager.OnRealDrag(IMouseEventArgs e) in c:\Builds\WPF_Scrum\Core_WPF_2010_Q1\Sources\Development\Core\Controls\DragDrop\RadDragAndDropManager.cs:line 1242

   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)

   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 args, Boolean trusted)

   at System.Windows.Input.InputManager.ProcessStagingArea()

   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)

   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)

   at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)

   at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

   at System.Windows.Interop.HwndSource.InputFilterMessage(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, Boolean isSingleParameter)

   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)




---------------------------
OK   
---------------------------

Tina Stancheva
Telerik team
 answered on 03 Jun 2010
1 answer
54 views
I am writing an ebook management which use RadTreView and RadCarousel. The Treeview allow user choose ebook category. When an ebook category is chosen the ebook in that category was updated. but some category still does not have any book so  I want to display something inform the user that there is no book inside. Please advise for me how to do that

Best Regards,
Truong Pham
Maya
Telerik team
 answered on 02 Jun 2010
2 answers
136 views
Hello,

I am using the radcarousel panel and currently I am facing problems with wpf browser element. Namely my carousel contains several frame - elements which are containing a XAML - Page, something like this:
        <ScrollViewer x:Name="carouselScrollViewer" CanContentScroll="True" VerticalScrollBarVisibility="Hidden" Margin="0"
            <telerik:RadCarouselPanel x:Name="mainMenuCarousel"  
             ItemsPerPage="3" PathPadding="0,0,0,100" d:LayoutOverrides="Width, Height" ScrollViewer.VerticalScrollBarVisibility="Hidden"
                <Frame Width="600" Height="400" Content="Frame" Source="\View\MediaPlayerView.xaml" NavigationUIVisibility="Hidden" IsEnabled="False" ScrollViewer.VerticalScrollBarVisibility="Disabled"/> 
                <Frame Width="600" Height="400" Content="Frame" Source="\View\WebBrowserView.xaml" NavigationUIVisibility="Hidden" ScrollViewer.VerticalScrollBarVisibility="Disabled"/> 
                <Frame Width="600" Height="400" Content="Frame" Source="\View\MediaPlayerView.xaml" NavigationUIVisibility="Hidden" ScrollViewer.VerticalScrollBarVisibility="Disabled" Focusable="False" IsTabStop="False"/> 
            </telerik:RadCarouselPanel> 
        </ScrollViewer> 
 
So my WebBrowserView has an wpf browser element. While scrolling radcarousel wpf browser element stays always top element although frame containing it isn't a selected item and overlaps items in foreground. Is it a common bug in wpf browser element or there is something wrong with radcarousel ?

Thank you.

Daniel Ruehle
Top achievements
Rank 1
 answered on 02 Jun 2010
5 answers
181 views
Hi!

I am using the "IsHidden" property to hide RadPanes in my WPF application.
This works fine.

What I want to do is to animate the "hiding/showing" of the panes. Is this possible?

Regards,
Lennart
Miroslav Nedyalkov
Telerik team
 answered on 02 Jun 2010
3 answers
102 views
Can I have a column whose value is derived from the difference of a column in two rows. Like:

For example I have following radgrid:

Row_Id         Rank                            Derived Col
1                     5                                      0
2                     7                                      2
3                     7                                      0
4                     3                                     -4                         

Derived col = TableRow.Rank - TableRow(-1).Rank

Is it possible using bindings?
Vlad
Telerik team
 answered on 02 Jun 2010
1 answer
190 views
Hi,

I came across this scenario that appears to be a bug. When I bind a series of items to a RadTabControl that is not wide enough to show them the scroll buttons do not appear until I resize the window. This is the simplest way to duplicate:

XAML:

<Window x:Class="Workbench.RadTabControlTest"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        xmlns:Controls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation" Title="RadTabControlTest" Height="400" Width="500">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition></RowDefinition>
            <RowDefinition></RowDefinition>
        </Grid.RowDefinitions>
        
        <Button 
            Width="125"
            Height="25"
            Click="Button_Click">Set Items</Button>
        
        <Controls:RadTabControl 
            x:Name="tabs"
            Width="250"
            Height="150"
            Grid.Row="1"
            />
    </Grid>
</Window>

And the code behind:

public partial class RadTabControlTest: Window
    {
        public RadTabControlTest()
        {
            InitializeComponent();
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            tabs.ItemsSource = new[] {"one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten"};
        }
    }

I am using the latest release and the project is .NET 4.0.

Am I doing something wrong?

Cheers,
Jose
Bobi
Telerik team
 answered on 02 Jun 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?