Telerik Forums
UI for WPF Forum
7 answers
433 views
The RadRibbonView's height cannot be adjust, when set it's height explicitly, it could be displayed correctly,
for example:

<Grid>
     <RowDefinition Height="100>
     <RowDef....>

       <telerik:RadRibbonView Grid.Row="0" >

      </telerik:RadRibbonView>

Kiril Vandov
Telerik team
 answered on 28 Mar 2013
17 answers
407 views
Hi,

I'm trying to use the I'm trying to use the RadRibbonView with the RadRibbonBackstage.
C# 4.0 with assemblies v2011.2.712.40

In a RadRibbonBackstageItem, I have put some listboxes, to let the user select items, before clicking on a button. Here is a stripped source.

<telerik:RadRibbonWindow x:Class="FrmMain"
        Height="700" Width="1000"
        WindowState="Maximized" WindowStartupLocation="CenterOwner" IconVisibility="Collapsed" Title="Title">
    <Grid x:Name="RootGrid">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition />
        </Grid.RowDefinitions>
        <telerik:RadRibbonView x:Name="ribbonView" ApplicationName="App" BackstageClippingElement="{Binding ElementName=RootGrid}">
            <telerik:RadRibbonView.Backstage>
                <telerik:RadRibbonBackstage>
                    <telerik:RadRibbonBackstageItem Header="Open" IsDefault="True">
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition />
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition />
                            </Grid.ColumnDefinitions>
 
                            <Grid Margin="15 15 0 15">
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="Auto" />
                                    <RowDefinition Height="Auto" />
                                    <RowDefinition />
                                </Grid.RowDefinitions>
                                <TextBlock Text="Title" FontSize="14" FontWeight="Bold" Margin="0 0 0 2" />
                                <Rectangle Grid.Row="1" Height="1" Fill="{StaticResource DottedLineBrush}" />
                                <ListBox Grid.Row="2" x:Name="lstOpenOne" Margin="0 4 0 0">
                                    <ListBox.ItemTemplate>
                                        <DataTemplate>
                                            <Grid>
                                                <Border BorderThickness="1" CornerRadius="4">
                                                    <TextBlock Text="{Binding Path=Label}" />
                                                </Border>
                                            </Grid>
                                        </DataTemplate>
                                    </ListBox.ItemTemplate>
                                </ListBox>
                            </Grid>
 
                            <Rectangle Margin="10, 5" Grid.Column="1" Width="1" Fill="{StaticResource VerticalSplitterBrush}" />
 
                            <Grid Grid.Column="2">
                                <Grid.RowDefinitions>
                                    <RowDefinition />
                                    <RowDefinition />
                                    <RowDefinition Height="Auto" />
                                </Grid.RowDefinitions>
 
                                <StackPanel Grid.Row="0" Margin="15 15 0 15">
                                    <TextBlock Text="Type" FontSize="14" FontWeight="Bold" Margin="0 0 0 2" />
                                    <Rectangle Height="1" Fill="{StaticResource DottedLineBrush}" />
                                    <ListView x:Name="lstOpen2" Margin="0 4 0 0" />
                                </StackPanel>
                                <StackPanel Grid.Row="1" Margin="15 15 0 15">
                                    <TextBlock Text="Zone d'acquisition" FontSize="14" FontWeight="Bold" Margin="0 0 0 2" />
                                    <Rectangle Height="1" Fill="{StaticResource DottedLineBrush}" />
                                    <ListView x:Name="lstOpen3" Margin="0 4 0 0">
                                        <ListBox.ItemTemplate>
                                            <DataTemplate>
                                                <TextBlock Text="{Binding Path=Name}" />
                                            </DataTemplate>
                                        </ListBox.ItemTemplate>
                                    </ListView>
                                </StackPanel>
 
                                <Button Grid.Row="2" Margin="0 4 0 0" Content="Open" x:Name="btnOpen" Click="btnOpen_Click" />
                            </Grid>
                        </Grid>
                    </telerik:RadRibbonBackstageItem>
                    <telerik:RadRibbonBackstageItem Header="Item 2">
                        <TextBlock Text="Blablabla" />
                    </telerik:RadRibbonBackstageItem>
                    <telerik:RadRibbonBackstageItem Header="Item 3">
                        <TextBlock Text="Blablabla too" />
                    </telerik:RadRibbonBackstageItem>
                </telerik:RadRibbonBackstage>
            </telerik:RadRibbonView.Backstage>
 
            <telerik:RadRibbonTab Header="Tab">
                <!-- Nothing related here-->
            </telerik:RadRibbonTab>
 
        </telerik:RadRibbonView>
         
        <Grid Grid.Row="1">
            <!-- Some controls -->
        </Grid>
        <Grid Grid.Row="2">
            <!-- Some controls -->
        </Grid>
    </Grid>
</telerik:RadRibbonWindow>

When my listboxes are populated with lots of items, the backstage item container is resized according to the listbox desired full height, 
making the backstage scrollbar being shown, instead of listbox's scrollbar.

Is this a small bug, or is there a thing I have missed ?

Thanks.

Damien
AEDT developer
Top achievements
Rank 1
 answered on 28 Mar 2013
1 answer
80 views
HI,

i tried to open the SalesDashboard in VS2010. It is running in debug-mode, but it is not possible to open perhaps the MainPage.xaml,
error: An Instanz of "ViewModel" could not be created,... it's not possible to learn out of this Project...

is there any working SalesDashboard-Project somewhere?

thanks
best regards
rene
Dimitrina
Telerik team
 answered on 28 Mar 2013
1 answer
139 views
I am working on a radgridview and I ran into a problem. In my gridview I hide a column from the header row after it is grouped. When I filter a certain column and then drag that column to the group panel the filtering still applies to that column, however, the filter indicator is no longer present, and since I hide that column from the header the user has no way of seeing that the column is still filtered. I just want the user to have some visual display that the column is still filtered. I would like the filter indicator to be on the group panel item after I drag it there if that is possible. Can this be achieved? If not what are some other options that would help me with this problem.

Thanks for any help 
Nedyalko Nikolov
Telerik team
 answered on 28 Mar 2013
2 answers
268 views
I have GridView 2012.3.1314.40. This view is created with EnableColumnVirtualization and EnableRowVirtualization true.
Data is added slowly by another thread.

When browsing this GridView I get an System.NullReferenceException with the following stack

Error in function Unhandled exception: System.NullReferenceException: Object reference not set to an instance of an object.
   at Telerik.Windows.Controls.GridView.GridViewHeaderCell.SetLeftGripperVisibility()
   at Telerik.Windows.Controls.GridView.GridViewHeaderCell.HookupGripperEvents()
   at Telerik.Windows.Controls.GridView.GridViewHeaderCell.OnApplyTemplate()
   at System.Windows.FrameworkElement.ApplyTemplate()
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at Telerik.Windows.Controls.GridView.GridViewCellsPanel.MeasureCell(GridViewColumn column, GridViewCellBase cell, Size size)
   at Telerik.Windows.Controls.GridView.GridViewCellsPanel.RealizeAndMeasureCells(Int32 startIndex, Int32 predictedLastIndex, Func`2 calculateNextIndex)
   at Telerik.Windows.Controls.GridView.GridViewCellsPanel.UpdateVirtualizedCells()
   at Telerik.Windows.Controls.GridView.GridViewCellsPanel.MeasureOverride(Size availableSize)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.ContextLayoutManager.UpdateLayout()
   at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
   at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
   at Telerik.Windows.Controls.GridView.GridViewHeaderCell.SetLeftGripperVisibility()
   at Telerik.Windows.Controls.GridView.GridViewHeaderCell.HookupGripperEvents()
   at Telerik.Windows.Controls.GridView.GridViewHeaderCell.OnApplyTemplate()
   at System.Windows.FrameworkElement.ApplyTemplate()
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at Telerik.Windows.Controls.GridView.GridViewCellsPanel.MeasureCell(GridViewColumn column, GridViewCellBase cell, Size size)
   at Telerik.Windows.Controls.GridView.GridViewCellsPanel.RealizeAndMeasureCells(Int32 startIndex, Int32 predictedLastIndex, Func`2 calculateNextIndex)
   at Telerik.Windows.Controls.GridView.GridViewCellsPanel.UpdateVirtualizedCells()
   at Telerik.Windows.Controls.GridView.GridViewCellsPanel.MeasureOverride(Size availableSize)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.ContextLayoutManager.UpdateLayout()
   at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
   at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

I do not know what is causing this exception and how to prevent or catch it without killing my application first.

Any help would be appreciated.

Pieter
Pieter
Top achievements
Rank 2
 answered on 28 Mar 2013
11 answers
663 views
I am trying to get the header row of my group to stretch to the full grid width.

I had a look at the following online documentation: http://www.telerik.com/help/wpf/gridview-styling-group-row.html and as a result I tried the following. Unfortunately it doesn't seem to work correctly, what do I need to do get it to stretch properly?

<telerik:RadGridView.Resources>
    <Style TargetType="telerik:GridViewGroupRow">
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
    </Style>
    <Style TargetType="telerik:GridViewHeaderRow">
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
    </Style>
    <Style TargetType="telerik:GridViewGroupPanel">
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
    </Style>
</telerik:RadGridView.Resources>
Yoan
Telerik team
 answered on 28 Mar 2013
1 answer
112 views

The clear button is clearing the input field in the PropertyGrid but the value on the model is never set.

<DataTemplate x:Key="RequiredCondition">
      <telerik:RadComboBox ItemsSource="{Binding Path=DataContext.Conditions, RelativeSource={RelativeSource FindAncestor,
                                             AncestorType={x:Type views:PropertyEditorView}}, Mode=OneWay}"
                           DisplayMemberPath="Name"
                           SelectedItem="{Binding CurrentPropertySet[RequiredCondition]}"
                           ToolTip="{Binding ElementName=cboRequiredCondition, Path=SelectionBoxItem.Description}"
                           ClearSelectionButtonContent="Clear"
                           ClearSelectionButtonVisibility="Visible"
                           TextSearchMode="Contains"
                           x:Name="cboRequiredCondition"/>
  </DataTemplate>
Ventzi
Telerik team
 answered on 28 Mar 2013
1 answer
94 views
Hi,

We are currently checking out Telerik controls to be used for our new project. Are the points below feasible?
1. Can we have a mergefield that is a Dictionary?

Ex. We have an Item class with a Dictionary property. Now, I want a mergefield that points to the keys of the the Dictionary property.

    Ex:
    <MERGEFIELD BeerBrands["Bud"]> or <MERGEFIELD BeerBrands.Bud>
   
    where Beerbrands = class property w/ch is a Dictionary
      Bud is the Key of the dictionary.  The result should be the value of the dictionary.

2. Taking this a step further, can we have a mergefield where the fieldName points to a Dictionary<string, new Dictionary<string, string>>.
    Ex. <MERGEFIELD BeerBrands.Bud.Price>

   where Beerbrands = class property w/ch is a Dictionary;
         Bud = key of the 1st Dictionary;
         Price = key of the 2nd dictionary

Regards,
Mari
Boby
Telerik team
 answered on 28 Mar 2013
1 answer
169 views

Hello,

 

I have a View whith a GridView bound to RadDataFilter bound to an QueryableEntityCollectionView<T> exposed in a View-Model.

I have few questions :

Does when the user add filter to the RadDataFilter the data is filtered directly in SQL ?
How to implement assync data loading ? I have the folowing exception when using the DeferRefresh method :

Cannot change or check the contents or Current position of the QueryableCollectionView whileRefresh is being deferred.

Thank you,

Benjamin

Rossen Hristov
Telerik team
 answered on 28 Mar 2013
2 answers
169 views
Hi,
I  am using the below code to display the bar code in WPF.

<telerik:RadBarcode39 x:Name="BarCodeDisplay" Grid.Row="4" Height="80" Width="100" HorizontalAlignment="Center" VerticalAlignment="Center" ShowChecksum="False" Text="Hello"/>

 

The code is getting displayed with the Text "Hello" below the bar. I need to just display the bar code without the Human readable text.
ShowText property is available in .NET and not in WPF. Let me know if there is any property to be set to hide the readable text "Hello",
Vinetha
Top achievements
Rank 1
 answered on 28 Mar 2013
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
Security
VirtualKeyboard
HighlightTextBlock
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?