Telerik Forums
UI for WPF Forum
2 answers
137 views
Hi, I am dealing with a difficult issue, I need to manipulate thousands of rows into rad gridview control and also have accurate sorting support in the same time, the user can chage the sorting criteria after all cells within the gridview, I cannot bring all rows from a single shoot as the data package size that must be sent through the network can exceed 5 Mb and I don't want the user to be waiting a couple of minutes until all data is loaded into the grid, I would prefer to initially add the first chunk of data which will populate the first page sorted after a predefined criteria, then if the sort criteria is changed or the page is changed I can again add the correct chunk of data to be displayed by calling a method with sorting criteria and page info parameters, this is more like a custom algorithm that I though of but, is there some built in functionality that can help me acomplish this sort of operations more stylish and more adequate if I can say so, or why not more quikly? Does rad gridview have some hidden support for this type of issues?

Many thanks!

Vladu Bogdan
Top achievements
Rank 1
 answered on 07 Jan 2010
2 answers
83 views
Hi Telerik Team,

I'm binding an hierarchical GridView with both grid's data load mode set to asynchronous. The Grouping functionality in the Parent Grid works without any issues where as the child grid hangs for few minutes and closes the application. When I removed the "DataLoadMode= Asynchrous" from the child grid view properties, the grouping function works fine on all the available columns. Can you please let me know what is the issue?

FYI: Its a WPF application.

thanks and regards...
NK
HAPPY NEW YEAR 2010
yenkay
Top achievements
Rank 2
 answered on 07 Jan 2010
3 answers
359 views
Hey,

I had a pre-sales question about RadMenu.  We have a need for a menu that overflows like the standard WPF toolbar instead of wrapping.  We have a lot of windows with menus on them, and the standard wrapping behavior causes the menu to take up too much space.  I was curious if RadMenu could overflow rather than wrapping.

Thanks,

Eric
Hristo
Telerik team
 answered on 07 Jan 2010
2 answers
136 views
Hi,
RadDocking, VS 2010, WPF, C#, non web, Q3 2009 WPF,

I can't get any raddocks to run after compiling, in VS 2010
-- I have it referenced and the xmlns: ref , I copied from sample code. Split Containers.
-- Intellisense works in my XAML for all of the raddocking classes
-- The WPF Samples work on my system, running them from the start menu,
-- The Docking panes render in VS 2010 dev/code view. 
-- I have 'Telerik.Windows.Controls.RadDocking' referenced but I don't have rad docking items in my toolbar..

 I get the following error.. when the UserControl (Which has xaml reference to the raddocking) is added as a child into a stackpanel

 Cannot find type 'Telerik.Windows.Controls.RadDocking'. The assembly used when compiling might be different than that used when loading and the type is missing.  Error at object 'System.Windows.Controls.Grid' in markup file "my xaml file"

I can give you  link to run the WPF app and see detailed stack trace.. but I can't post the link..

Thanks!


<UserControl x:Class="MyNamesSpace.Layout.DockingSample"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:telerikDocking="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Docking"
             mc:Ignorable="d"
            >
    <Grid>
        <telerikDocking:RadDocking>
            <telerikDocking:RadDocking.DocumentHost>

                <telerikDocking:RadSplitContainer>
                    <telerikDocking:RadPaneGroup>
                        <telerikDocking:RadDocumentPane Header="Document 1" Title="Document 1" />
                    </telerikDocking:RadPaneGroup>
                </telerikDocking:RadSplitContainer>

            </telerikDocking:RadDocking.DocumentHost>

            <telerikDocking:RadSplitContainer Orientation="Vertical" InitialPosition="DockedLeft">
                <telerikDocking:RadPaneGroup telerikDocking:ProportionalStackPanel.RelativeSize="200, 300">
                    <telerikDocking:RadPane Header="Pane Left 1" Content="Pane Left 1" />
                </telerikDocking:RadPaneGroup>
                <telerikDocking:RadPaneGroup telerikDocking:ProportionalStackPanel.RelativeSize="200, 100">
                    <telerikDocking:RadPane Header="Pane Left 2" Content="Pane Left 2" />
                </telerikDocking:RadPaneGroup>
                <telerikDocking:RadPaneGroup>
                    <telerikDocking:RadPane Header="Pane Left 3" Content="Pane Left 3" />
                </telerikDocking:RadPaneGroup>
            </telerikDocking:RadSplitContainer>

            <telerikDocking:RadSplitContainer Orientation="Horizontal" InitialPosition="DockedRight">
                <telerikDocking:RadPaneGroup telerikDocking:ProportionalStackPanel.RelativeSize="150, 200">
                    <telerikDocking:RadPane Header="Pane Right 1" Content="Pane Right 1" />
                </telerikDocking:RadPaneGroup>
                <telerikDocking:RadPaneGroup telerikDocking:ProportionalStackPanel.RelativeSize="250, 200">
                    <telerikDocking:RadPane Header="Pane Right 2" Content="Pane Right 2"  />
                </telerikDocking:RadPaneGroup>
            </telerikDocking:RadSplitContainer>

            <telerikDocking:RadSplitContainer Orientation="Horizontal" InitialPosition="DockedBottom">
                <telerikDocking:RadPaneGroup telerikDocking:ProportionalStackPanel.RelativeSize="100, 200">
                    <telerikDocking:RadPane Header="Pane Bottom 1" Content="Pane Bottom 1" />
                </telerikDocking:RadPaneGroup>
                <telerikDocking:RadPaneGroup telerikDocking:ProportionalStackPanel.RelativeSize="300, 200">
                    <telerikDocking:RadPane Header="Pane Bottom 2" Content="Pane Bottom 2" />
                </telerikDocking:RadPaneGroup>
            </telerikDocking:RadSplitContainer>

        </telerikDocking:RadDocking>
    </Grid>
</UserControl>




 

 

 

 

 

 

 


TheLostLeaf
Top achievements
Rank 2
 answered on 06 Jan 2010
7 answers
132 views
Hello,

I recently got a task to make an item in the carousel grow when the IsMouseOver property is true. I can get the item to grow but since its contained inside of a scrollviewer i cant see the entire item when it grows. i did get it to work via popup but i was wondering if you had any other ideas on how this could be accomplished other than making the scrollviewer grow too. we'd like that to stay the same size.

I also got it to do exactly what i wanted using the RadCarouselPanel but when i have say... 10,000 records to display loading time becomes an issue.

here is the usercontrol I'm populating the carousel with

<UserControl x:Class="WpfApplication1.CarouselItem" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    MouseDown="UserControl_MouseDown" 
    Width="120" > 
    <Grid> 
        <Grid.RenderTransform> 
            <ScaleTransform ScaleX="1" ScaleY="1" /> 
        </Grid.RenderTransform> 
        <Grid.Style> 
            <Style TargetType="Grid"
                <Style.Triggers> 
                    <Trigger Property="IsMouseOver" Value="True"
                        <Trigger.EnterActions> 
                            <BeginStoryboard> 
                                <Storyboard> 
                                    <DoubleAnimation 
                                        Storyboard.TargetProperty="(Grid.RenderTransform).(ScaleTransform.ScaleX)" 
                                        To="2"  
                                        BeginTime="0:0:0.5" 
                                        Duration="0:0:0.3"/> 
                                    <DoubleAnimation 
                                        Storyboard.TargetProperty="(Grid.RenderTransform).(ScaleTransform.ScaleY)" 
                                        To="2"  
                                        BeginTime="0:0:0.5" 
                                        Duration="0:0:0.3"/> 
                                </Storyboard> 
                            </BeginStoryboard> 
                        </Trigger.EnterActions> 
                        <Trigger.ExitActions> 
                            <BeginStoryboard> 
                                <Storyboard> 
                                    <DoubleAnimation 
                                        Storyboard.TargetProperty="(Grid.RenderTransform).(ScaleTransform.ScaleX)" 
                                        To="1" 
                                        Duration="0:0:0.3"/> 
                                    <DoubleAnimation 
                                        Storyboard.TargetProperty="(Grid.RenderTransform).(ScaleTransform.ScaleY)" 
                                        To="1"  
                                        Duration="0:0:0.3"/> 
                                </Storyboard> 
                            </BeginStoryboard> 
                        </Trigger.ExitActions> 
                    </Trigger> 
                </Style.Triggers> 
            </Style> 
        </Grid.Style> 
        <Border 
            CornerRadius="5" 
            BorderBrush="Black" 
            BorderThickness="2"
            <Image Source="pics\GreenDoor.png" Stretch="Fill" /> 
        </Border> 
    </Grid> 
</UserControl> 

using System; 
using System.Collections.Generic; 
using System.Linq; 
using System.Text; 
using System.Windows; 
using System.Windows.Controls; 
using System.Windows.Data; 
using System.Windows.Documents; 
using System.Windows.Input; 
using System.Windows.Media; 
using System.Windows.Media.Imaging; 
using System.Windows.Navigation; 
using System.Windows.Shapes; 
 
namespace WpfApplication1 
    /// <summary> 
    /// Interaction logic for UserControl1.xaml 
    /// </summary> 
    public partial class CarouselItem : UserControl 
    { 
        public delegate void ItemsMouseDown(object sender); 
        public event ItemsMouseDown ItemMouseDown; 
 
        public CarouselItem() 
        { 
            try 
            { 
                InitializeComponent(); 
            } 
            catch (Exception ex) 
            { 
                MessageBox.Show(ex.ToString()); 
            } 
        } 
 
        private void UserControl_MouseDown(object sender, MouseButtonEventArgs e) 
        { 
            if (ItemMouseDown != null
                ItemMouseDown(this); 
        } 
    } 
 

any ideas would be helpful
thanks much,
~Boots
Boots
Top achievements
Rank 1
 answered on 06 Jan 2010
1 answer
122 views
I made an drag drop based on example "158684_dragdrop-reorder-grid",  Two grids one grid is drag from only, the other is drag to, and drag-drop inside the grid (move items).

It kinda works.

But  If I drag a item from row #10 (move) a item to row #5, and then drag another row to row#10 (where the first was before), Tool tip show me the "old" item that is no longer there and "BetweenItemsCue line" don't show. Looks like the dragdrop don't see the updated collection, just the collection that was when we loaded the grid, I use ObservableCollection.

And Drag-Drop tooltip, I only get Insert "before", "after" is never showed... 

I'm stuck, any suggestions?
Vlad
Telerik team
 answered on 06 Jan 2010
1 answer
93 views
Hello,

i am using q3 version of wpf controls. I am finding a weird behaviour-  when i group flds, horizontal and vertical scroll bar disappears.

Please let me know if i am missing anything here or is it a bug?

Regards,
Sandy

i have set these properties:

ScrollViewer.HorizontalScrollBarVisibility

 

="Visible" ScrollViewer.VerticalScrollBarVisibility="Visible"

 

 

ScrollViewer.CanContentScroll="True"

and this is grouped event handler:

 

 

private void WipGrid_Grouping(object sender, GridViewGroupingEventArgs e)

 

{

 

try

 

{

 

var countFunction = new CountFunction();

 

countFunction.Caption =

"Total records: ";

 

countFunction.FunctionName =

"Count";

 

e.GroupDescriptor.AggregateFunctions.Add(countFunction);

 

}

 

Missing User
 answered on 06 Jan 2010
1 answer
120 views
Hi all,

I'm trying to use a List of custom class to fill the itemsSource of RadCarousel.

This is the code of Page1.xaml:

<Page x:Class="Page1" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" 
    xmlns:carousel="clr-namespace:Telerik.Windows.Controls.Carousel;assembly=Telerik.Windows.Controls.Navigation" 
    Title="Page1"
    <Grid> 
        <telerik:RadCarousel x:Name="carPacientes" HorizontalAlignment="Stretch" 
                VerticalAlignment="Stretch" Background="Black" AutoGenerateDataPresenters="False" Foreground="White"
            <telerik:RadCarousel.Resources> 
                <Style TargetType="telerik:CarouselItem"
                    <Setter Property="Template"
                        <Setter.Value> 
                            <ControlTemplate TargetType="telerik:CarouselItem"
                                <Label Content="{Binding Path=Apellidos}" FontSize="12" Foreground="Black" Background="Aqua" /> 
                            </ControlTemplate> 
                        </Setter.Value> 
                    </Setter> 
                </Style> 
            </telerik:RadCarousel.Resources> 
        </telerik:RadCarousel> 
    </Grid> 
</Page> 
 

And this is the code to fill the RadCarousel Page1.xaml.vb:

Imports MDOL.Business.Logic 
 
Partial Public Class Page1 
 
    Public Shared opcion As String 
 
    Public Sub New() 
        InitializeComponent() 
 
        Dim pacs As List(Of Paciente) = New List(Of Paciente) 
 
        Dim pac As Paciente = Nothing 
 
        For i = 1 To 10 
 
            pac = New Paciente 
            pac.IdPaciente = Convert.ToString(i) 
 
            pac.Nombre = "Gerard" 
            pac.Apellidos = "Subirana" 
 
            pacs.Add(pac) 
            pac = Nothing 
        Next 
 
        Me.carPacientes.ItemsSource = pacs 
 
    End Sub 
 
End Class 

When I run the application appears 10 radcarousel items but the labels with the property Apellidos still empty... what's wrong?

Thank's in advance.

Gerard
Rossen Hristov
Telerik team
 answered on 06 Jan 2010
3 answers
399 views
Hi Can anyone please guide me to a creating a simple pie chart with legend in the code behind in C# or have some code.

Basically I have a datatable which returns the following data and would like to draw a pei chart:

Exercise Type A: 30
Exercise Type B : 60
Exercise Type C : 10

All the examples I have seen so far is for bar graphs.

Many Thanks
shahab
Giuseppe
Telerik team
 answered on 06 Jan 2010
7 answers
313 views
Hello,
I'm evaluating the GridView by writing a small app to test it.
In the app I'm using 2 grids: the RadGridView on one side of the view and Xceed's DataGridControl on the other.
Both grid's ItemsSource have the same instance of ObservableCollection<Order> (from NW db) that is set from the code behind.

One thing that is immidiately noticable, even with a small amount of records (100),
is when scrolling vertically - the RadGridView seems to take a while to update the view (compared to Xceed's grid).
whether if I drag the scroller up and down or if I click on it to perform a big scroll step.

My XAML for the RadGridView looks like this:

<telerik:RadGridView
    telerik:StyleManager.Theme="Vista" 
    
IsReadOnly="True"
    ScrollMode
="RealTime" />

 

Is this a known behavior or am I missing something?
Is there a way to fix this?

Thanks,
David

Vlad
Telerik team
 answered on 06 Jan 2010
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?