Telerik Forums
UI for WPF Forum
5 answers
631 views
I am trying to find out if there is the link where I can download themes source for WPF controls. I want to be able to customize default theme templates. 
Milan
Telerik team
 answered on 24 May 2011
3 answers
222 views
Hi,

I need a ColorPicker (or some other wat to select and show a color) in a column, the value is a string (html/hex as color values).

How do make this, code please...

Thanks!
Vanya Pavlova
Telerik team
 answered on 24 May 2011
1 answer
84 views
Hello

I have 2 gridviews and one of them is empty. When i drop a row to second grid, it is not even firing DropInfo event. Is there a solution for dropping to an empty Grid?

Thanks
Ram
Tsvyatko
Telerik team
 answered on 24 May 2011
10 answers
359 views

Hi,

I want the user to be able to navigate through the tree and actively select one or several nodes by the use of the keboard.

I have tried the all kinds of different options on the RadTreeListView. Added the GridViewSelectColumn, set the SelectionMode to Extended, set the CanUserSelect to false.
When I try to navigate with the keyboard I get unexpected behaviour.

What settings should I use?

Best regards
Erik

 

 

 

 

Erik
Top achievements
Rank 1
 answered on 24 May 2011
7 answers
93 views
I have auto generated columns on (I want that so the code can be generic, I don't want to specify table names and layout).
I am binding to 3 tables in a DataSet by an Id (PROPERTY_ID) , so there are three levels of nesting.

 

 

 

 

 

 

 

 

 

 

 

// start code snippet...
x_GRID.AutoGenerateColumns = true
  
dd.Tables.Add(t); // PARENT TABLE 
dd.Tables.Add(t0); // CHILD TABLE A
  
dd.Tables.Add(t1); // CHILD (CHILD) TABLE B - This is a child of table A
  
dd.Relations.Add(new DataRelation("Prop_Params", dd.Tables[0].Columns["PROPERTY_ID"], dd.Tables[1].Columns["PROPERTY_ID"])); 
  
   
dd.Relations.Add(new DataRelation("Section_Params", dd.Tables[1].Columns["PROPERTY_ID"], dd.Tables[2].Columns["PROPERTY_ID"]));
  
x_GRID.ItemSource = dd;
  
// end code snippet...
  
A few questions - I am in the DataLoading event (see questions in comments below)
void wpfgv_DataLoading(object sender, Telerik.Windows.Controls.GridView.GridViewDataLoadingEventArgs e) 
{
   var dataControl = (GridViewDataControl)sender; 
  
// 1. ParentRow != null tells me that it is a child table,
// but I need to know which CHILD TableName it is
// So that I can do different things for child table A and child (child) table B
// (like hide a column that child table A has but child table B does not.  
// How do I get the TableName of what dataControl is referring to
// (I could not seem to find it in my debugging watches)???
   if (dataControl.ParentRow != null
   {
      dataControl.ShowGroupPanel = false ;
  
// 2. I "think" because I have AutoGenerateCols = true, datacontrol.Columns = null
// so this crashes if left uncommented...
// just trying to verify my thinking on why it is null. 
  
dataControl.Columns["PROPERTY_ID"].IsVisible = false// will crash
  
// 3. x_GRID is the name of my GridView Control.  
// While this works, it only hides the PROPERTY_ID of the
// PARENT table column called PROPERTY_ID 
// and does NOT hide child columns of the same name (which is exactly
// the opposite of what I want to do).
// Is there a way without setting x_GRID.AutoGenerateColumns = false
// and binding each column
// in code or xaml to hide just columns of the children???
  
    x_GRID.Columns["PROPERTY_ID"].IsVisible = false ;  
   }
}

 

Thanks,

Daryl

 

 

 

Tsvyatko
Telerik team
 answered on 24 May 2011
3 answers
189 views
Hot to programatically expand some item? I would like to do something like:
Items[0].Items[4].Expand()

I know there is a method called ExpandItemByPath but i cannot guess how to use it and documentation says absolutely nothing about it.

Thanks in advance for any help
Kiril Stanoev
Telerik team
 answered on 24 May 2011
1 answer
203 views
Hi,

I'm trying to give my price charts a 'Bloomberg' like look, i.e. I want to fill the area beneath the data series with a LinearGradientBrush.

I tried several options:
a) setting the PaletteBrushes like this:
           
<telerik:RadChart.PaletteBrushes>
  <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
    <GradientStop Color="Red" Offset="0" />
    <GradientStop Color="BlueViolet" Offset="1" />
  </LinearGradientBrush>
</telerik:RadChart.PaletteBrushes>


b) setting Appearance.Fill on the AreaSeriesDefinition like this:
Appearance = new SeriesAppearanceSettings
         {
             Fill = new LinearGradientBrush(Colors.OrangeRed, Colors.Blue, 90)
         }

c) finally by creating a new style for the SelfDrawingSeries object and setting the BackgroundStyle:
<Setter Property="BackgroundStyle">
    <Setter.Value>
        <Style TargetType="Shape">
            <Setter Property="Fill">
                <Setter.Value>
                    <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                        <GradientStop Color="OrangeRed" Offset="0"/>
                        <GradientStop Color="Blue" Offset="1"/>
                    </LinearGradientBrush>
                </Setter.Value>
            </Setter>
            <Setter Property="Opacity" Value="0.5" />
        </Style>
    </Setter.Value>
</Setter>

All three approaches produced a visible effect (wow!) but it appears as if only the start color is used to fill the area of the series.

Is there something I'm getting or doing wrong or is this a bug?

Thanks,
Thorsten
Ves
Telerik team
 answered on 24 May 2011
1 answer
618 views
I want set a column to be the font bold in the program-code (not in xaml).

How can i do this?
Vanya Pavlova
Telerik team
 answered on 24 May 2011
1 answer
91 views
Hi, I have line charts place in tabcontrol with the axisx StripLinesVisibility set to visible and the axisy set to collapsed. And everytime i change tab back for forth, I will have the issue of the StripLines flickering. Is this a known bug?
Yavor
Telerik team
 answered on 24 May 2011
2 answers
143 views
Hi,

Is there a way i can set the radcarousel so  my items scroll vertically?  

Thanks!

Bill
Bill Anderson
Top achievements
Rank 1
 answered on 24 May 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?