Telerik Forums
UI for WPF Forum
3 answers
106 views

Hi Team,

I am showing charts in Listbox. I have placed RadChart Control in Itemplate. its not binding the ChartData and SeriesDefinition property. These property has value and preperty get is also called . But still its not showing series, saying "No data Series". On the other side, ChartTitle property is bound and showing chart title.

Please see this issue and send any sample.

Thanks in adavance..

Regards,
Nidhi

XAMl code attached

<ListBox  Grid.Column="0" ItemsSource="{Binding DrillDownChart}" >
         <ListBox.ItemsPanel>
             <ItemsPanelTemplate>
                 <toolKit:WrapPanel  Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Stretch"  >
                 </toolKit:WrapPanel>
             </ItemsPanelTemplate>
         </ListBox.ItemsPanel>
         <ListBox.ItemTemplate >
             <DataTemplate>
                 <Grid Width="110" Height="114">
 
                     <Grid.RowDefinitions>
                         <RowDefinition Height="*" />
                         <RowDefinition Height="Auto" />
                     </Grid.RowDefinitions>
                     <Border Grid.Row="0">
 
                         <telerik:RadChart ItemsSource="{Binding ChartData}" SeriesMappings="{Binding ChartSeriesMappings}" >
 
 
 
                             <telerik:RadChart.DefaultView>
                                 <telerik:ChartDefaultView ChartLegendPosition="Right">
                                     <telerik:ChartDefaultView.ChartTitle>
                                         <telerik:ChartTitle Content="{Binding ChartTitle}"/>
 
 
                                     </telerik:ChartDefaultView.ChartTitle>
                                     <telerik:ChartDefaultView.ChartArea>
                                         <telerik:ChartArea LabelFormatBehavior="None"   SmartLabelsEnabled="True"  >
                                              
                                         </telerik:ChartArea>
                                     </telerik:ChartDefaultView.ChartArea>
                                     <telerik:ChartDefaultView.ChartLegend>
                                         <telerik:ChartLegend Name="ChartLegend"
                                              LegendItemMarkerShape="Triangle" />
                                     </telerik:ChartDefaultView.ChartLegend>
                                 </telerik:ChartDefaultView>
                             </telerik:RadChart.DefaultView>
 
                         </telerik:RadChart>
 
 
                     </Border>
 
                     <TextBlock Text="{Binding ChartTitle}" Grid.Row="1" />
 
                 </Grid>
             </DataTemplate>
         </ListBox.ItemTemplate>
     </ListBox>

Ves
Telerik team
 answered on 04 Nov 2011
2 answers
106 views
Hi,
I've recently started using Rad controls for WPF in Powerbuilder .NET 12.5

I'm using powerscript to control most of the basic events within my Radbuttons (such as open / close windows, set text labels, etc.)

The issue I'm having is getting full control of the Radsplitbutton.

For example, I currently have a radsplitbutton1 where isOpen = true when the MouseEnter event occurs.  I can also use AutoOpenDelay to achieve the same result.

However, I cannot find any way to close the popup.  I've tried putting isOpen = false into the MouseLeave and LostFocus events, but it never closes.  And there doesn't seem to be anything similar to AutoOpenDelay which will close the popup instead of open it.

Also, the AutoOpenDelay seems to cover the entire button.  I'm not sure if there is a way to open the popup ONLY when the mouse is on the drop down arrow?
Petar Mladenov
Telerik team
 answered on 04 Nov 2011
1 answer
81 views
I have a grid bound to an Entity Framework-based CollectionViewSource.

For the sake of this example, my columns (left->right) are:
  • Name - in the database this is required, unique, and non-Null
  • Serial # - a string

I'm getting an exception when trying to escape editing a new line
  1. Press <click here to add new item>
  2. Type in a name
  3. press <TAB> to advance to serial # column and type in a serial number
  4. press <BACKTAB> to move focus to Name column
  5. delete everything in the Name field that you just entered
  6. Press <ESCAPE> once
My Entity Framework code throws an exception in the Device.Name property setter because it's been passed a Null.

I was under the impression that pressing <ESCAPE> was supposed to exit editing mode and pressing it twice on a new line was supposed to discard it.  That (the latter) does happen if I've entered no data in the columns or valid data.  If I continue (and ignore the exception), the new row is discarded, but I'm concerned because I don't understand what's happening.

When pressing <ESCAPE>, neither the row or cell validation methods are called, which makes sense.

Why is the RadGridView attempting to update the underlying data when it's about to be discarded?



Nedyalko Nikolov
Telerik team
 answered on 04 Nov 2011
0 answers
128 views
Hi,

I need to maintain scroll position (both horizontal and vertical) when moving across pages.
I tried the following code , but was unable to achieve the desired functionality.
Even after calling RestoreScrollPosition() the scrollviewer didn't change its position.


 

private void btnNext_Click(object sender, RoutedEventArgs e)

 

{

SetScrollPosition();
BindData();

RestoreScrollPosition();

 

 

 

}

 

 

private void SetScrollPosition()

 

{

 

GridViewScrollViewer svSummaryInfo = (GridViewScrollViewer)rtSummaryInfo.FindChildByType<GridViewScrollViewer>();

 

 

 

_dbVerticalOffset = svSummaryInfo.VerticalOffset;
_dbHorizontalOffset = svSummaryInfo.HorizontalOffset;
}

private

 

void RestoreScrollPosition()

 

{

GridViewScrollViewer

 

svSummaryInfo = (GridViewScrollViewer)rtSummaryInfo.FindChildByType<GridViewScrollViewer>();

 

 

if (svSummaryInfo != null)

 

  {

 

   svSummaryInfo.ScrollToHorizontalOffset(_dbHorizontalOffset);

   svSummaryInfo.ScrollToVerticalOffset(_dbVerticalOffset);

   }
}

Please provide a code snippet for the same.

 

Manishkumar
Top achievements
Rank 1
 asked on 04 Nov 2011
4 answers
143 views
I'm trying to use the simple example code here: http://www.telerik.com/help/wpf/raddatafilter-features-data-annotations.html

I can't get any of the data annotations to work. Here is the code I'm using:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
 
namespace namespace
{
    public class dummy
    {
        [Display(AutoGenerateFilter = false)]
        public string Name
        {
            get;
            set;
        }
        [Display(ShortName = "Company's Name")]
        public string CompanyName
        {
            get;
            set;
        }
        public string Title
        {
            get;
            set;
        }
    }
}

The XAML is simply <telerik:RadDataFilter Name="DataFilter" />
Austin
Top achievements
Rank 1
 answered on 03 Nov 2011
0 answers
166 views
Hello,
I would like to implement in my WPF application autoupdate functionality, like WPF online demos. Is it using click once??
My application will be separated in modules, and I want to each module check for newest version, download and install it automatically.
The application is goning to run in our intranet, not internet like demos.
I was seeing demos source but it's a bit complicated, I would like to see a simplest example, some links with more information!

Thanks in advance!
Alejandro
Dominios Molinos
Top achievements
Rank 1
 asked on 03 Nov 2011
0 answers
74 views
to delete (double post)
Software
Top achievements
Rank 1
 asked on 03 Nov 2011
3 answers
145 views
I am styling the RadTimePicker so that it looks and feels the same as the rest of my application.
I am trying to style the DateTimePickerClock that is displayed when you want to select a time.
I cannot figure out how to change the highlight color for the Items (the times) displayed in the clock.
Right now when I hover over an item it is highlighted as Yellow but since the application's colours are black, blue and grey, this doesn't fit in with the colour scheme at all.

Thank you for your help,

-Rebecca
Rebecca
Top achievements
Rank 1
 answered on 03 Nov 2011
2 answers
126 views

Hello,

the ToolTip text "Start dragging in order to change items' position" is not translated in german culture.

OutlookBar_style.xaml:

...
<ToolTipService.ToolTip>
    <TextBlock Text="Start dragging in order to change items' position"
           telerik:LocalizationManager.ResourceKey="OutlookBarHorizontalSplitter" />
</ToolTipService.ToolTip>
...


As workaround I tried to set the ToolTip-Text by setting the HorizontalSplitterStyle like this:

...
<UserControl.Resources>
    <Style x:Name="OutlookBarHorizontalSplitter" TargetType="Thumb">
        <Setter Property="ToolTip" Value="My localized Text"/>
    </Style>
</UserControl.Resources>
 
<Grid>
    <telerik:RadOutlookBar x:Name="MenuOutlookBar"
                   HorizontalSplitterStyle="{DynamicResource OutlookBarHorizontalSplitter}">
...

Unfortuately after this the whole Style of the HorizontalSplitter is lost and the Tooltip is still default.

Please let me know if there is a solution for this issue.

Regards
Rainer

Rainer
Top achievements
Rank 1
 answered on 03 Nov 2011
8 answers
418 views
Hi,

I have bar chart with  Y-Axis having range from 0 to 100. On the same chartarea I have one more Y-Axis(right hand side) having range from -100 to 100 in the step of 50. i want to make -100, -50 label values invisible so that 0 starts in the middle of the Y-axis.  I am using this Y-Axis for showing line chart. Please help me achieve this.
Peshito
Telerik team
 answered on 03 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?