Telerik Forums
UI for WPF Forum
7 answers
120 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
213 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
246 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
681 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
115 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
184 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
127 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
1 answer
125 views
I have spent a few hours trying to figure out how to find a combobox in myWPF Gridview cell. I need to find it after gridview row is bound. There are no examples out there. It needs to happen in code behind Can anybody help? This is really driving me nuts.
Dimitrina
Telerik team
 answered on 23 May 2011
1 answer
147 views
I have a list of items that are generated based on user selections and I would like to display them on a timebar. I did create a converter to convert from my item to a RadLinearSparkline, but I can not figure out how to attach this Observable collection to display on the RadTimeBar. Is it only possible in the code behind?
Datafyer
Top achievements
Rank 1
Veteran
 answered on 23 May 2011
6 answers
565 views
Hey all,

I am writing an installer. It has a list of commands to execute and I need to show the progress.  I have a quite complex application that I am really using, so I created a sample app.  At first I was using the regular .NET 4 WPF DataGrid, but the .NET 4 DataGrid just wan't behaving stable.  See my recent post on MSND: http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/e4eeb10b-8b27-4b26-a435-baa0ae4ea47a/

Anyway, my company has licensed Telerik, I was told, so I thought I would try the Telerik GridView.

I replaced the DataGrid with the Telerik GridView but I can't really even get started because the SelectedItem is not changing when the bound value changes.  It is a readonly bound value and I have it set to mode=oneway.  While debugging the NotifyPropertyChanged("CurrentCommand") is properly called.  This is one part that was working fine with the DataGrid.

Here is my sample app: DataGridExecutionListWithTelerik.zip

My overall goal is to Execute each command.  I must also do the following:
1. Show a progress spinner (which isn't in my sample but is working in my actual app) on the current item.
2. There are so many commands, there is scrolling.  So when it reaches the commands not visible, the GridView should scroll (I am using ScrollIntoView).  Then I need current command inprogress to always be visible.  When finished the item should stay scrolled to the bottom.

I need the SelectedItem to change when it changes in my ViewModel so the event fires so the ScrollIntoView function can be called.
Dimitrina
Telerik team
 answered on 23 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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?