Telerik Forums
UI for WPF Forum
2 answers
82 views
HI All ,

I want a custom tool tip which display an Image with X and Y axis value corresponding to data point.
How can I do this ..
Please help.


thanks
Shashank Veerkar
shashank
Top achievements
Rank 1
 answered on 18 Nov 2010
5 answers
989 views
Hi,
I have an ObservableCollection of custom object I want to bind to a gridview.
The custom object is a list of Double values I want to display each value in each column of the gridview.

Unfortunately, I dont know how many double values are in the custom control at compile time: I'll know this information only at runtime, so the custom object is a List<double> object. Thus I have to bind an ObservableCollection<List<double>> to the grid view, and have each row display the respective array of double.

Is this possible with -telerik RadGridView component?
Could anyone provide example code, or instructions?
If I try to bind, I get one row for each double List, but only 2 colums, one showing the number of elements contained in the double List, the other shows another List-related information (not remember which one...).

Maybe I have to build a custom class which holds the double List, and implements some kind of interface to provide data to put into the columns??

Thanks for the help,
Simon
Milan
Telerik team
 answered on 17 Nov 2010
2 answers
246 views
I saw in this post: http://www.telerik.com/community/forums/wpf/map/highlight-rectangle.aspx that it now is possible to draw circles or squares on a RadMap. Fantastic!
Could you please give me a hint on how I just could draw a simple square and than find out the topleft and the bottomright of the square?

Rieni De Rijke
Top achievements
Rank 1
 answered on 17 Nov 2010
1 answer
166 views
Hi ,
 I have tried with two approaches to bind the data to piechart and to set the interactivity to the charts.But somehow the interactivity doesnt seems to work.

The xaml that i have is mentioned below.

<

 

 

Window x:Class="WpfApplication11.Window1"

 

 

 

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:telerikChart="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Charting"

 

 

 

Title="Window1" >

 

 

 

 

<Grid>

 

 

 

 

<telerikChart:RadChart x:Name="RadChart1" MaxHeight="200" MaxWidth="400">

 

 

 

 

 

</telerikChart:RadChart>

 

 

 

 

</Grid>

 

</

 

 

Window>

 




and the code behind is somewhat like this:with both the approaches:

//Approach 1

RadChart1.DefaultSeriesDefinition.InteractivitySettings.HoverScope =

 

InteractivityScope.Item;

 

RadChart1.DefaultSeriesDefinition.InteractivitySettings.SelectionScope =

 

InteractivityScope.Item;

 

RadChart1.DefaultSeriesDefinition.InteractivitySettings.SelectionMode =

 

ChartSelectionMode.Multiple;

 

 

 



List
<Manufacturer> data = new List<Manufacturer>();

 

data.Add(

 

new Manufacturer("Toyota", 215));

 

data.Add(

 

new Manufacturer("General Motors", 192));

 

data.Add(

 

new Manufacturer("Volkswagen", 151));

 

data.Add(

 

new Manufacturer("Ford", 125));

 

data.Add(

 

new Manufacturer("Honda", 91));

 

data.Add(

 

new Manufacturer("Nissan", 79));

 

data.Add(

 

new Manufacturer("PSA", 79));

 

data.Add(

 

new Manufacturer("Hyundai", 64));

 

 

 

 

 

 

SeriesMapping seriesMapping = new SeriesMapping();

 

seriesMapping.SeriesDefinition =

 

new DoughnutSeriesDefinition();

 

seriesMapping.ItemMappings.Add(

 

new ItemMapping("Sales", DataPointMember.YValue));

 

seriesMapping.ItemMappings.Add(

 

new ItemMapping("Name", DataPointMember.Label));

 

RadChart1.SeriesMappings.Add(seriesMapping);

RadChart1.ItemsSource = data;

 

 

 

//approach 2 : comment approach 1 to run 2

 

 

 

//DataSeries PieSeriesDefinition = new DataSeries();

 

 

 

//PieSeriesDefinition.Definition = new PieSeriesDefinition();

 

 

 

//PieSeriesDefinition.LegendLabel = "Turnover";

 

 

 

//PieSeriesDefinition.Definition.ItemLabelFormat = "p";

 

 

 

//PieSeriesDefinition.Add(new DataPoint() { YValue = 0.215208267, XCategory = "Jan", LegendLabel = "Jan" });

 

 

 

//PieSeriesDefinition.Add(new DataPoint() { YValue = 0.192960612, XCategory = "Feb", LegendLabel = "Feb" });

 

 

 

//PieSeriesDefinition.Add(new DataPoint() { YValue = 0.079093251, XCategory = "Mar", LegendLabel = "March" });

 

 

 

//PieSeriesDefinition.Add(new DataPoint() { YValue = 0.23456, XCategory = "Apr", LegendLabel = "April" });

 

 

 

 

//RadChart1.DefaultSeriesDefinition.InteractivitySettings.HoverScope = InteractivityScope.Item;

 

 

 

//RadChart1.DefaultSeriesDefinition.InteractivitySettings.SelectionScope = InteractivityScope.Series;

 

 

 

//RadChart1.DefaultSeriesDefinition.InteractivitySettings.SelectionMode = ChartSelectionMode.Multiple;

 

 

 

 

//RadChart1.DefaultView.ChartArea.DataSeries.Add(PieSeriesDefinition);

 

 

 

//RadChart1.DefaultView.ChartTitle.Content = "My chart";

 

 

 

//RadChart1.DefaultView.ChartLegend.Header = "My legend";

 



 

 

public class Manufacturer

 

{

 

 

public Manufacturer(string name, int sales)

 

{

 

 

this.Name = name;

 

 

 

this.Sales = sales;

 

 

 

// this.Turnover = turnover;

 

}

 

 

public string Name

 

{

 

 

get;

 

 

 

set;

 

}

 

 

public int Sales

 

{

 

 

get;

 

 

 

set;

 

}

 

 

public int Turnover

 

{

 

 

get;

 

 

 

set;

 

}

}



Please let me know asap.

Evan
Telerik team
 answered on 17 Nov 2010
1 answer
70 views
Hi,

I am working with a component corousel which has 10 items, I would hide items 8 and 7 from item 6, is this possible?


Thanks.

Best Regards
Maya
Telerik team
 answered on 17 Nov 2010
1 answer
98 views
Hi
I've seen that RadDataFilter can be used easily with SL DomainDataSource to filter the data on the server.
Is there an example how to filter on the server with WPF + regular  WCF service?
Thanks
Adiel
Rossen Hristov
Telerik team
 answered on 17 Nov 2010
9 answers
302 views
Hi!

I've an "Login window" that use the RadBusyIndicator.

It works, I've no problem in functionnality part.

The problem:

The uxBusyIndicator is only the parent of the stackpanel that own textboxes/buttons, but the usercontrol has an image as background.

So, if I let the default value for Background, I get a gray box and I dont see the image below.
If I set the background to transparent, I don't get the gray box anymore, but when the BusyIndicator is showed, It comes transparent too.

How can I:

Have a transparent background for my users controls BUT have a gray background for my busy indicator? This has to be done in xaml side

<Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="150*" />
            <ColumnDefinition Width="250" />
            <ColumnDefinition Width="150*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="40*" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="60*" />
        </Grid.RowDefinitions>
        <telerik:RadBusyIndicator x:Name="uxBusyIndicator" BusyContent="Connection in progress" Grid.Column="1" Grid.Row="1" DisplayAfter="0" >
            <StackPanel  Grid.Column="1" Grid.Row="1" >
                <TextBlock Name="textBlock1" Text="Welcome on the TOM Client. Please login" TextWrapping="Wrap" VerticalAlignment="Top" TextAlignment="Center" />
                <Label Name="uxWrongCredentialText" Content="Wrong Credentials!" Foreground="Red" HorizontalContentAlignment="Center" FontWeight="Bold" Visibility="Hidden" />
                <Label Content="Username"/>
                <TextBox Width="210" Margin="0,-3,0,0"  Name="uxUserName" TextChanged="hideError" KeyUp="textbox_KeyUp"/>
                <Label Content="Password"/>
                <PasswordBox Height="23" Name="uxPassword"  Width="210" Margin="0,-3,0,5" PasswordChanged="hideError" KeyUp="textbox_KeyUp" />
                <telerik:RadButton Content="Login" Height="Auto" Name="radButton1" Width="Auto" Click="uxButtonLoginClick" />
            </StackPanel>
        </telerik:RadBusyIndicator>
    </Grid>

Konstantina
Telerik team
 answered on 17 Nov 2010
4 answers
104 views
When clicking on a row or expanding rows in the rad treelistview, the following unhandled exception occurs, and it happens intermittently. The full error is attached to this thread, but the first few lines are as follows

An error occurred: Parent grid cannot be null
Parameter name: parentGridViewDataControlPeer

Please view the log for more details
System.ArgumentNullException: Parent grid cannot be null
Parameter name: parentGridViewDataControlPeer
at
Telerik.Windows.Controls.GridView.Automation.GridViewCellAutomationPeer..ctor(GridViewCell owner, GridViewDataControlAutomationPeer parentGridViewDataControlPeer) at





 
Parampreet
Top achievements
Rank 1
 answered on 17 Nov 2010
1 answer
231 views
Hi,

 How to use the Google map api in wpf application,, and i want to use the shape file to the Google map layers, so any one could help how to do this, and plz explain to me
Andrey
Telerik team
 answered on 17 Nov 2010
4 answers
103 views
Here is the ComboBox code:
<telerik:RadComboBox Text="{Binding Status}" Width="90">
    <telerik:RadComboBoxItem Content="OPEN" />
    <telerik:RadComboBoxItem Content="CLOSED" />
</telerik:RadComboBox>

When I run my app It's not showing the bound Status. Could it have something to do with binding and the declarative items? The Status property is a string property.

Thanks.
Konstantina
Telerik team
 answered on 17 Nov 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?