Telerik Forums
UI for WPF Forum
3 answers
170 views
Hi,
  I was wondering if there is a way to implement a "load on demand" pattern using RadTreeListView?  I noticed that the feature is included with RadTreeView:

http://www.telerik.com/help/wpf/radtreeview-features-load-on-demand.html

But I cannot find any documentation related to it for RadTreeListView.

Thanks,
-Gabe
Hristo
Telerik team
 answered on 25 Feb 2011
1 answer
90 views
I would like to bind the LegendLabel to a property in my ViewModel, something like:

<telerikCharting:SeriesMapping LegendLabel="{Binding ViewModelField}" >

But this doesn't work, the LegendLabel at runtime is "Series 0" and I get the following output:

System.Windows.Data Error: 2 : Cannot find governing FrameworkElement or FrameworkContentElement for target element. BindingExpression:Path=ViewModelField; DataItem=null; target element is 'SeriesMapping' (HashCode=6313943); target property is 'LegendLabel' (type 'String')

How should I go about doing this?
Giuseppe
Telerik team
 answered on 25 Feb 2011
3 answers
151 views
Hello all.
I'm developing XBAP sidebar gadget (hosted in iframe) with stached bar within it.
I noticed one problem related to item tool tip (value of stacked bar segment on mouse over event).
Images with two cases are attached.
tooltip_ok.jpg shows correct behavior and tooltip_notok.jpg shows incorect behavior.
The wird is about blue segment within 5th (last one) bar.

If I run xbap in IE and do mouseover on tooltip is visible and it shows some amount.
If I run it within sidebar gadget, it will only blink (will be shown less than 1/100 sec) two or three times.
It seems that in case of gadget it has no 'much space'.
In case of browser we are able to see that tool tip and browser's white area are overlapping.

Can anyone can help me with this? Is there any way to 'move' tooltip somehow?
Thanx in advance.
    Nenad Djukic
Jan
Top achievements
Rank 1
 answered on 25 Feb 2011
1 answer
94 views
Why RadGridView source is updated after each cell edit?
Shouldn't it be updated after CommitEdit command? I am losing old cell values in this type of source updating...

regards
Yordanka
Telerik team
 answered on 25 Feb 2011
1 answer
92 views
i have a problem for radcarousel is that i wish to click the GO button(radbutton1) and show me the "image.png" in radcarousel and the BACK(radbutton2) button to show me the "U-turn_icon.png" in radcarousel. Because at later part i wish to make a 3rd button also click to show me another different image example "clipart_map.gif".

XAML CODE
<Window x:Class="WpfApplication2.MainWindow"
        xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls.Carousel;assembly=Telerik.Windows.Controls.Navigation"
        Title="MainWindow" Height="886" Width="1024" Loaded="Window_Loaded">
     
    <Grid Height="1005">
        <telerik:RadButton Content="Go" Height="34" HorizontalAlignment="Left" Margin="12,429,0,0" Name="Gobutton" VerticalAlignment="Top" Width="80" Click="radButton1_Click" />
        <telerik:RadButton Content="Back" Height="42" HorizontalAlignment="Left" Margin="12,501,0,0" Name="Backbutton" VerticalAlignment="Top" Width="80" Click="radButton2_Click" />
        <telerik:RadToggleButton Content="Lock" Height="54" HorizontalAlignment="Left" IsChecked="False" IsThreeState="False" Margin="12,344,0,0" Name="Lockbutton" VerticalAlignment="Top" Width="80" />
        <telerik:RadComboBox HorizontalAlignment="Left" Margin="12,47,0,0" Name="TherapiesCombo" VerticalAlignment="Top" Width="92" IsEnabled="True">
            <telerik:RadComboBoxItem Content="smileyface" Name="smileyface" Selected="smileyface_Selected" />
            <telerik:RadComboBoxItem Content="Uturn" Name="Uturn" Selected="Uturn_Selected" />
            <telerik:RadComboBoxItem Content="Item 3" Name="img"/>
        </telerik:RadComboBox>
        <telerik:RadComboBox HorizontalAlignment="Left" Margin="12,196,0,0" Name="CategoriesCombo" VerticalAlignment="Top" Width="92">
            <telerik:RadComboBoxItem Content="Item 1" />
            <telerik:RadComboBoxItem Content="Item 2" />
            <telerik:RadComboBoxItem Content="Item 3" />
        </telerik:RadComboBox>
        <Label Content="Categories" Height="28" HorizontalAlignment="Left" Margin="12,172,0,0" Name="label1" VerticalAlignment="Top" />
        <Label Content="Types of Therapies:" Height="28" HorizontalAlignment="Left" Margin="12,23,0,0" Name="label2" VerticalAlignment="Top" />
        <ScrollViewer CanContentScroll="True" ScrollChanged="ScrollViewer_ScrollChanged" Margin="144,0,0,154">
            <telerik:RadCarousel Name="radCarousel1" Background="Black" Opacity="1">
                 
            </telerik:RadCarousel>
 
        </ScrollViewer>
        <telerik:RadButton Content="Button" Height="32" HorizontalAlignment="Left" Margin="12,93,0,0" Name="refresh" VerticalAlignment="Top" Width="92" Click="refresh_Click" />
    </Grid>
</Window>

C# Code
namespace WpfApplication2
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        //System.Drawing.Bitmap whypic = WpfApplication2.Properties.Resources.smiley_face_clip_art_20340;
        //bool boollol = false;
 
         
       
        public MainWindow()
        {
            InitializeComponent();
 
            List<Image> myImages = new List<Image>();
            Image myImage = new Image();
            myImage.Source = new BitmapImage(new Uri("/Images/img-thing.png", UriKind.Relative));
            myImages.Add(myImage);
 
 
            Image myImage1 = new Image();
            myImage1.Source = new BitmapImage(new Uri("/Images/clipart_map.gif", UriKind.Relative));
            myImages.Add(myImage1);
 
            Image myImage2 = new Image();
            myImage2.Source = new BitmapImage(new Uri("/Images/image.png", UriKind.Relative));
 
            myImages.Add(myImage2);
 
            Image myImage3 = new Image();
            myImage3.Source = new BitmapImage(new Uri("/Images/smiley_face_clip_art_20340.png", UriKind.Relative));
            
 
            myImages.Add(myImage3);
 
            Image myImage4 = new Image();
            myImage4.Source = new BitmapImage(new Uri("/Images/U-turn_icon.png", UriKind.Relative));
 
            myImages.Add(myImage4);
 
 
             
 
 
            foreach (Image img in myImages)
            {
                this.radCarousel1.ItemsSource = myImages;
            }
 
 
 
            private void radButton1_Click(object sender, RoutedEventArgs e)
        {
            //click and image gone ERROR
            //this.radCarousel1.ItemsSource = new BitmapImage(new Uri("/Images/U-turn_icon.png",UriKind.Relative));
          
            //Only more next by 1 all the time for each click
            //this.radCarousel1.FindCarouselPanel().MoveBy(1);
            this.radCarousel1.ItemsSource = null;
 
            List<Image> myImages = new List<Image>();
            Image myImage = new Image();
            myImage.Source = new BitmapImage(new Uri("/Images/img-thing.png", UriKind.Relative));
            myImages.Add(myImage);
 
 
            Image myImage1 = new Image();
            myImage1.Source = new BitmapImage(new Uri("/Images/clipart_map.gif", UriKind.Relative));
            myImages.Add(myImage1);
 
            Image myImage2 = new Image();
            myImage2.Source = new BitmapImage(new Uri("/Images/image.png", UriKind.Relative));
 
            myImages.Add(myImage2);
 
            Image myImage3 = new Image();
            myImage3.Source = new BitmapImage(new Uri("/Images/smiley_face_clip_art_20340.png", UriKind.Relative));
 
 
            myImages.Add(myImage3);
 
            Image myImage4 = new Image();
            myImage4.Source = new BitmapImage(new Uri("/Images/U-turn_icon.png", UriKind.Relative));
 
            myImages.Add(myImage4);
 
            foreach (Image img in myImages)
            {
                this.radCarousel1.ItemsSource = myImages;
            }
 
            this.radCarousel1.BringDataItemIntoView(this.radCarousel1.Items[2]);
 
           }
        private void radButton2_Click(object sender, RoutedEventArgs e)
        {
            this.radCarousel1.ItemsSource = null;
 
            List<Image> myImages = new List<Image>();
            Image myImage = new Image();
            myImage.Source = new BitmapImage(new Uri("/Images/img-thing.png", UriKind.Relative));
            myImages.Add(myImage);
 
 
            Image myImage1 = new Image();
            myImage1.Source = new BitmapImage(new Uri("/Images/clipart_map.gif", UriKind.Relative));
            myImages.Add(myImage1);
 
            Image myImage2 = new Image();
            myImage2.Source = new BitmapImage(new Uri("/Images/image.png", UriKind.Relative));
 
            myImages.Add(myImage2);
 
            Image myImage3 = new Image();
            myImage3.Source = new BitmapImage(new Uri("/Images/smiley_face_clip_art_20340.png", UriKind.Relative));
 
 
            myImages.Add(myImage3);
 
            Image myImage4 = new Image();
            myImage4.Source = new BitmapImage(new Uri("/Images/U-turn_icon.png", UriKind.Relative));
 
            myImages.Add(myImage4);
 
            foreach (Image img in myImages)
            {     
                this.radCarousel1.ItemsSource = myImages;
            }
 
            this.radCarousel1.BringDataItemIntoView(this.radCarousel1.Items[2]);
    
        }

Maya
Telerik team
 answered on 25 Feb 2011
3 answers
96 views
I posted this originally in another thread but didn't get a response so I thought making a new thread might make sense.

I have a carousel and we have a template setting the contents of the panels.  We have data bound to chart controls that are inside of a carousel, which works great if all of the charts are the same type/size.  Our problem is that we have 6 charts and they don't all have the same amount of data/bars so when the carousel draws, some of the panels are way too wide for the charts inside them.  We would like a way to re-size individual panels to accommodate the different chart sizes.  How can we re-size individual panels if they are being drawn from a data collection?  Is there a way to just set the size of each object in the collection before it gets drawn into the carousel?

Thank you for any help you can provide.
Maya
Telerik team
 answered on 25 Feb 2011
3 answers
204 views
I'm having a problem getting the RadDataPager to work with a collectionviewsource, I have a grid with a number of Telerik controls, arranged something like a card view. This card view has a raddatapager, I have the grids datacontext is set to the raddatapagers pagedsource property.  Everything seems to work, I always get the first record of the collection displayed, but that's it I can't move through the records even though I know others exist.

Does anyone have a simple example that shows how to use the raddatapager with a collectionviewsource ?

Thanks 
Yordanka
Telerik team
 answered on 25 Feb 2011
1 answer
124 views
Hi, I'm using the code of CustomFilterDescriptor on a RadGridView.
The gridview has over 300 records, but when I type a letter Visual Studio throws a Stackoverflow exception, but with less that 100 records it works fine.

Any ideas why? 
Yordanka
Telerik team
 answered on 25 Feb 2011
1 answer
239 views
Hi,

I want to color each line of button with different color based on some condition.How can i achieve this.
For example: say button width is 24,considering each line of button as 1 hour.If i want color first hour with red,3rd hour with orange how can i achieve this.

Tina Stancheva
Telerik team
 answered on 25 Feb 2011
3 answers
102 views
Hi,

I want to handle overlapped markers.
When cursor gets over overlapped markers they should automatically expend, so a user can see each overlapped marker separately. How can I do that?

Regards,
SAMI.
Andrey
Telerik team
 answered on 25 Feb 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?