Telerik Forums
UI for WPF Forum
6 answers
334 views
Hello.

I have a RadGridView. And a fake element below. I want to bind AlternativeRowBackground to fake element Background property. And I want to do so in AlternativeRowStyle (because in code-behind this style is upgraded with other triggers, that change Background property due to some logic) and not in AlternativeRowBackground property.
 
Is it possible to do so somehow? 

<telerik:RadGridView ItemsSource="{Binding Data}" AlternationCount="2">
    <telerik:RadGridView.AlternateRowStyle>
        <Style TargetType="telerik:GridViewRow">
            <Setter Property="Background" Value="{Binding ElementName=FakeButton, Path=Background}"/>
        </Style>
    </telerik:RadGridView.AlternateRowStyle>
</telerik:RadGridView>
<Button x:Name="FakeButton" Background="Blue" Content="Button" />
Dimitrina
Telerik team
 answered on 23 Apr 2012
1 answer
152 views
I am using a TreeListView and want to scroll to a particular data item. This works fine if I have expanded the entire tree (hence I assume actually generating rows for all the data items). But if the tree is collapsed ScrollIntoView does not work. What is the recommended method to programatically display a particular data item in a TreeListView even if that data item has not been visible previously.

My datasets only contain approx 1000 items or so. Can I disable dynamic loading? I've had lots of problems trying to work with rows that apparently have not actually been created yet.

Thanks
Dave Goughnour
Dimitrina
Telerik team
 answered on 23 Apr 2012
2 answers
211 views
The data that is displayed in my track ball info is quite large and covers my chart series.

Is it possible to style the template for the track ball info so that the containing block is transparent? I'd like to see my chart and the tracked data.

Thanks
Kareema
Top achievements
Rank 2
 answered on 23 Apr 2012
3 answers
144 views

The diagram control looks very promising but I must be able to control the number and location of the connectors of the Diagram Shape.  I have been unable to locate how to do this.  My domain has a fixed number of entities that I will need to link together but each entity type will have between 1 and 11 connector points.  I will be using DataTemplates to completely control the shapes and was hoping in the template I could identify where I want the connectors to go.  Is it possible to achieve this?

Donovan

donovan
Top achievements
Rank 1
 answered on 21 Apr 2012
1 answer
111 views
I'm building a hierarchial grid using the self reference setting and everything seems to work as I want.  Using the dataloading event, I define the columns and grid properties.  A good example would be an org chart with n levels of employees.  Only the top level employees are displayed and any of them that have direct reports it will show the + to allow you to drill down (I have a filterdescriptor that filters out sub-employees so they are only visible as child records).  My issue is how to implement a Find function.  I have tried to bind the SelectedItem of each grid to a SelectedEmployee notify property.  If I do a find on a top-level employee, it works fine, but if it's a employee in a child grid, it doesn't work (I bound the child grids as (sender as GridViewDataControl).SelectedItem = new Binding("SelectedEmployee")).  If you can help with this, that would be great.  I also will need to auto expand all levels above this in order to display it after the fine.

Any help would be appreciated.

Troy
Maya
Telerik team
 answered on 21 Apr 2012
2 answers
196 views
Is there any example how to drive complex docking app (think: Visual Studio) completely by ViewModels using the model-first appoach (as opposed to view-first)? Something in the lines of  having a databound

ObservableCollection<
ToolViewModelBase> ShellViewModel.Tools

where each ToolViewModelBase  represents a dockable region in the shell?
bitbonk
Top achievements
Rank 1
 answered on 20 Apr 2012
0 answers
78 views

Hello, I just upgraded to the latest version and now when there is only 1 RadPane in a RadPaneGroup the tab strip is now visible with only one tab. This is a change in behavior from the old version (there was no tab strip visible). How do I restore the old behavior?

I am now using version 2012.1.215.40.
Edit: The issue was fixed in 2012.1.326.40

Thanks
Andrew
Top achievements
Rank 1
 asked on 20 Apr 2012
6 answers
210 views
Hi all,

I have been trying to know the source of this issue with no luck for a while now. I am using WPF RadGrdiView 2012 Q1 SP1 in page that bound to a collection in View Model (MVVM/Prism). When the grid loads, if the row is empty (meaning the bound object is not empty but the corresponding properties are null), then the column are shrined even through the grid itself stretches to fill the entire page. It is as if the column didn’t render correctly to take the proper width. Please see attached pic.

The way the GridView is layed out :

RadDocking -> RadPane -> RadTab -> User Control -> StackPanel -> Grid -> GridView

I have tried to set the Horiznotal Content of the Gridview, Grid and StackPanel to “Stretch”, but that didn’t fix the issue.

Any suggestion why this might be happening? Is there a way to force the GridView to redraw/re-calculate column width on loading?

Thanks
Perlom
Top achievements
Rank 1
 answered on 20 Apr 2012
6 answers
152 views
I am using Radgridview in my WPF app. The view model implements Idataerrorinfo interface. Whenever I add a new row to the radGridview I get that exception from a file called Disassembly.  Any idea what might cause this error.

Here is a screen shot
Sabuj
Top achievements
Rank 1
 answered on 20 Apr 2012
3 answers
234 views
Hi,

I am having issues with trying to get my tiles in restored mode to "fill in" when one tile is bigger than the others.
I have a RadTileView which needs to show 7 panels (tile in position 0 is going to be 100% height and 50% width of the tile viewer). The rest of the tiles are sized so they should fit in the remaining space available, however 3 of the tiles align themselves below the tile in position 0. This means they are not visible and the user has to scroll.

I tried following the article - http://blogs.telerik.com/zarkovidolov/posts/11-06-25/new-tileview-features.aspx 
and tried downloading the sample but the link is bad.

Here is my xaml, which I am hoping that you will be able to help me:

<telerik:RadTileView Grid.Row="0" x:Name="ChartTiles"
                                TileStateChangeTrigger="SingleClick"
                                telerik:StyleManager.Theme="Office_Blue"
                                ColumnsCount="3"
                                RowsCount="3"
                                ColumnWidth="Auto"
                                RowHeight="Auto"
                                MinimizedColumnWidth="300"
                                MinimizedRowHeight="300"
                                PreservePositionWhenMaximized="true"
                                IsItemsSizeInPercentages="True"
                                ItemsSource="{Binding ChartingViewModel.Charts}"
                                telerik:TileViewPanel.IsColumnsShrinkEnabled="True"
                                telerik:TileViewPanel.IsRowsShrinkEnabled="True"
                                telerik:TileViewPanel.IsSizeBoundToPosition="True"
                                TileStateChanged="ChartTiles_TileStateChanged"
                                Loaded="ChartTiles_Loaded"
                                TilesPositionChanged ="ChartTiles_TilesPositionChanged"
                                 >
 
    <telerik:RadTileView.ItemTemplate>
        <DataTemplate>
            <TextBlock Text="{Binding Name}" Style="{StaticResource tileItemStyle}"/>
        </DataTemplate>
    </telerik:RadTileView.ItemTemplate>
 
    <telerik:RadTileView.ItemContainerStyle>
        <Style TargetType="telerik:RadTileViewItem">
            <Setter Property="RestoredHeight" Value="{Binding TileRestoredHeight, Mode=TwoWay}" />
            <Setter Property="RestoredWidth" Value="{Binding TileRestoredWidth, Mode=TwoWay}" />
            <!--<Setter Property="Position" Value="{Binding TilePosition, Mode=TwoWay}" />-->
            <Setter Property="ContextMenu" Value="{StaticResource ChartContextMenu}" />
        </Style>
    </telerik:RadTileView.ItemContainerStyle>
 
    <telerik:RadTileView.ContentTemplate>
        <DataTemplate>
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="30" />
                    <RowDefinition />
                </Grid.RowDefinitions>
 
                <Grid.ColumnDefinitions>
                    <ColumnDefinition />
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>
 
                <Label Grid.Row="0" Grid.Column="0" HorizontalAlignment="Left" Content="{Binding Path=Title}"/>
 
                <StackPanel Grid.Row="0" Grid.Column="1" HorizontalAlignment="Right" Orientation="Horizontal">
                    <RadioButton Content="Pie Chart" IsChecked="{Binding Path=IsPieChartActive}" Margin="0,5,0,5"/>
                    <RadioButton Content="Bar Chart" IsChecked="{Binding Path=IsBarChartActive}" Margin="5"/>
                </StackPanel>
 
                <ecaAnalyzerViews:PieChartControl Grid.Row="1" Grid.ColumnSpan="2"
                                     Visibility="{Binding Path=PieChartVisibility, TargetNullValue=Collapsed, FallbackValue=Collapsed}"                                                
                                     />
 
                <ecaAnalyzerViews:BarChartControl Grid.Row="1" Grid.ColumnSpan="2"
                                     Visibility="{Binding Path=BarChartVisibility, TargetNullValue=Collapsed, FallbackValue=Collapsed}"
                                     />
 
            </Grid>
 
        </DataTemplate>
    </telerik:RadTileView.ContentTemplate>
 
</telerik:RadTileView>


Thanks in advance for any help!!!

Tracy
Zarko
Telerik team
 answered on 20 Apr 2012
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?