Telerik Forums
UI for WPF Forum
1 answer
102 views
Hi.
I have some trouble with ComboBox. I create window as shown below:

<Window x:Class="WpfApplication3.Window1"

    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

    Title="Window1" Height="300" Width="300"

    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"

    xmlns:tRB="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.RibbonBar">

        <telerik:RadComboBox Name="cBox"

            IsEditable="True"

            VerticalAlignment="Top">

            <telerik:RadComboBox.Items>

                <telerik:RadComboBoxItem Content="qwer"/>

                <telerik:RadComboBoxItem Content="asdf"/>

            </telerik:RadComboBox.Items>

        </telerik:RadComboBox>

</Window>



After double clicking on text i can't select any control in this window or close it. How can i resolve this problem?
Valeri Hristov
Telerik team
 answered on 19 Nov 2009
1 answer
92 views
hello all,

i am getting this error when i try to group on flds inside a grid. this does not happen always though, its very random but frequent error.
 please can anyone through some light on this.

i am using wpf controls version 2009.2.813.35

regards,
Sandy
Vlad
Telerik team
 answered on 19 Nov 2009
9 answers
353 views
On the RadCarousel how do i programatically set the item centered in the RadCarousel as the selected item?

I am having an issue where you key over to the next item and then try to click on the previous item that is still selected.  The item does not move via mouse click because it is already selected.


Thanks
capsule
Top achievements
Rank 1
 answered on 18 Nov 2009
2 answers
223 views

Hi,

I'm trying to figure out how to databind the RadTileView correctly.

The following XAML:

<Grid>
    <telerik:RadTileView
        Margin="12"
        Name="radTileView1"
        ItemsSource="{Binding}">
        <telerik:RadTileView.ItemTemplate>
            <DataTemplate>
                <TextBlock Text="{Binding Path=Description}" />
            </DataTemplate>
        </telerik:RadTileView.ItemTemplate>
    </telerik:RadTileView>
</Grid>

Will get me the boxes with the title bar showing my Description property and the panel part of the box showing the name of the class. I'm not sure where to put the binding information for the body of the panel, and I can't find anything about databinding for this control in the docs. Is there an example somewhere of this control databound?

Arthur Vanderbilt
Top achievements
Rank 1
 answered on 18 Nov 2009
3 answers
192 views
How can I modify the selected row style....?
I don't see the property.... ???

For example I want to change the font to BOLD and the Size to 16.
thanks!
Kalin Milanov
Telerik team
 answered on 18 Nov 2009
1 answer
68 views
HI,

1. I have a ResourceDictionary with two Styles for GridViewHeaderCell - one is with x:Key="MyKeyedStyle" and the other has only TargetType definition.
2. The style with the key (MyKeyedStyle) is effectively BasedOn my "default" style and has a different implementation of the "Template" property (adding a border for color coding).
3. The "default" style in defined before the keyed style.
4. In GridViewDataColumn tag, I've added: HeaderCellStyle="{DynamicResource MyKeyedStyle}" (also, tried: HeaderCellStyle="{StaticResource MyKeyedStyle}")

At run-time the keyed style (MyKeyedStyle) is not applied to HeaderCell, only the "default" one is applied.
When I remove the default style everything works as expected, only I get Telerik's default colors.

Please help, how do I make a default style and another keyed one to work together?

(for some reason, I can't attach a zipped solution to this post (changed file type to *.zip.png). It's size is 26KB but I get "Please upload valid files: .gif,.jpg,.jpeg,.png smaller than 2MB." error when posting....)

TIA,-
Noam
Kalin Milanov
Telerik team
 answered on 18 Nov 2009
1 answer
107 views
Hi guys,

I don't know what's wrong with my theme file. The treeview controls lose default foreground color if I do not specify Foreground=Black. After I specify foreground=black, it shows the color. However, if I modify the name by press F2, and hit Enter. The text turns to transparent again. I thought setting foreground color on treeview will override any other theme, right? why it still loses foreground after F2? Any ideas? thanks a lot,
Bobi
Telerik team
 answered on 18 Nov 2009
1 answer
141 views
How can I get the number of visible rows that the grid can show (without scrolling the grid)
Vlad
Telerik team
 answered on 18 Nov 2009
2 answers
144 views

Hi

 I am totally new to WPF and would appreciate some pointers. I have a window with a chart and a button the buttons click event has the code shown below, I want to display the Depot Name in the legend but this code is not working the chart loads the data and displays the chart but without the legend is it possible to bind the chart to a data table and use the field names as the legend also is this good practice or should I consider a different approach?

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles Button1.Click

        Try

            Dim seriesMapping As New SeriesMapping()

          

            Dim Table1 As DataTable

            Table1 = New DataTable("DepotSales")

 

            Dim Row1, Row2, Row3, Row4 As DataRow

 

 

            Dim Name As DataColumn = New DataColumn("DepotName")

 

            Name.DataType = System.Type.GetType("System.String")

 

            Table1.Columns.Add(Name)

 

            Dim Turnover As DataColumn = New DataColumn("Turnover")

            Turnover.DataType = System.Type.GetType("System.Int32")

            Table1.Columns.Add(Turnover)

 

            Dim DepotID As DataColumn = New DataColumn("DepotID")

            DepotID.DataType = System.Type.GetType("System.Int16")

            Table1.Columns.Add(DepotID)

 

            Row1 = Table1.NewRow()

 

            Row1.Item("Depot") = "North"

            Row1.Item("Turnover") = 69000

            Row1.Item("DepotID") = 1

            Table1.Rows.Add(Row1)

 

            Row2 = Table1.NewRow()

 

            Row2.Item("Depot") = "South"

            Row2.Item("Turnover") = 35000

            Row2.Item("DepotID") = 2

            Table1.Rows.Add(Row2)

 

            Row3 = Table1.NewRow()

 

            Row3.Item("Depot") = "East"

            Row3.Item("Turnover") = 28000

            Row1.Item("DepotID") = 3

            Table1.Rows.Add(Row3)

 

            Row4 = Table1.NewRow()

 

            Row4.Item("Depot") = "West"

            Row4.Item("Turnover") = 41000

            Row4.Item("DepotID") = 4

            Table1.Rows.Add(Row4)

 

            seriesMapping.LegendLabel = "Turnover"

            seriesMapping.SeriesDefinition = New Bar3DSeriesDefinition

 

            seriesMapping.ItemMappings.Add(New ItemMapping("DepotID", DataPointMember.XValue))

            seriesMapping.ItemMappings.Add(New ItemMapping("DepotName", DataPointMember.XCategory))

            seriesMapping.ItemMappings.Add(New ItemMapping("Turnover", DataPointMember.YValue))

 

            Radchart.SeriesMappings.Add(seriesMapping)

            Me.Radchart.ItemsSource = Table1

 

        Catch ex As Exception

 

        End Try

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Ves
Telerik team
 answered on 18 Nov 2009
1 answer
159 views
I have some questions about styling the 3d pie in wpf.
I didnt found this in the api. Maybe someone can show me some c# code on this:
I want to change the opacity of each pie - slice, change the corner radius, get access to the colors and if possible to seperate a slice of the pie chart.
Dwight
Telerik team
 answered on 18 Nov 2009
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?