Telerik Forums
UI for WPF Forum
3 answers
227 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
89 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
380 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
96 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
196 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
210 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
634 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
153 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
1 answer
105 views
Hello
            I have a context menu in my gridview, and i need when user do right click on grid view column then i want to select that pertiular column, how can i do it in telerik grid view? What type of event i can capture to do this or is there any another way to do this?
Vanya Pavlova
Telerik team
 answered on 24 May 2011
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?