Telerik Forums
UI for WPF Forum
1 answer
146 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
279 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
672 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
120 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
99 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
180 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
181 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
3 answers
119 views
I found this article about the Scheduler control in which I could see the possibility of creating an appointment with an Hourly recurrence.

I have tried to do the same with the RadScheduleView's create a new Appointment View, but I can't seem to find a way to have that Hourly recurrence option. I can't go lower than a daily recurrence. I need to be able to create an hourly recurrence from the appointment creation view.

How would I go about doing that?

Thank you

Yana
Telerik team
 answered on 28 Mar 2013
0 answers
129 views
I have a GridView and it is binding a collection of objects that have around 30 fields/properties.  It ends up with around 30 columns and 1000+ rows.

If I use a Template for some of the columns I notice that the grid becomes much slower.  Are there any known issues or things I should look at in order to improve performance?

I have seen the demo with lots of columns and cells and if I don't style or use a Template my grid has relatively good performance.  It's when I try to use a Template that it starts to get slow.

My Template is used to create a left or right border and also display visual cues (border, color, tooltip) under certain conditions.  It's got about 8 border elements and 7 triggers.  Normally only one border element is visible and the other visual cues are collapsed, but the grid still performs very slowly.  However, even if I only use 1 border element in the template the grid becomes slower.

Douglas
Top achievements
Rank 1
 asked on 27 Mar 2013
1 answer
105 views
Hi,

I am trying to put what I am calling an app bar in a RadPane (see xaml) with limited success.

I want the app bar initially hidden but it it appears even though the RadPane is set to hidden.  If I set it to hidden in the window_loaded event that also does not hide the RadPane. When I mouse click on the RadPane header and then set visibility it works accordingly, What I am trying to do is when the user clicks on the RadPane header the code-behind will display the app bar.  By clicking on the RadPane header again the app bar will hide (Or a button in the app bar is pressed).  This seems to work OK except for the initial problem with not hiding the RadPane.  The other problem I am having is when  the app bar is hidden the TreeView control does not use the space of the hidden app bar.  The other feature that would be nice to have is an animation effect that slides the RadPane uo or down when displayed or hidden,  This is inside the RadDocking.

Thanks
Rich.

     <telerik:RadPaneGroup< telerik:ProportionalStackPanel.RelativeSize="75,25">
                        <telerik:RadPane Name="AvailableTables" 
                                     ContextMenuTemplate="{x:Null}"
                                     CanUserClose="False" CanFloat="False" CanUserPin="False">
                            <telerik:RadPane.TitleTemplate>
                                <DataTemplate>
                                    <TextBlock Text="Available Tables" MouseDown="AvailableColumnsHeader_MouseDown"/>
                                </DataTemplate>
                            </telerik:RadPane.TitleTemplate>
                            <Grid>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="Auto"/>
                                    <RowDefinition Height="Auto"/>
                                </Grid.RowDefinitions>
                                
                                <telerik:RadPaneGroup Name="AvailableColumnsAppBarGroup" Background="LightGray">
                                    <telerik:RadPane  Name="AvailableColumnsAppBar" Height="32"  PaneHeaderVisibility="Collapsed" Visibility="Hidden">
                                        <WrapPanel HorizontalAlignment="Left" >
                                            <telerik:RadToggleButton Name="btnLocked"  IsChecked="False" IsThreeState="False" Height="30"
                                                         Margin="4,3,2,2" Content="Locked" Width="50" ></telerik:RadToggleButton>
                                       </WrapPanel>
                                    </telerik:RadPane>
                                </telerik:RadPaneGroup>
                                
                                <telerik:RadTreeView  Name="tvAvailableTables"
                                              Grid.Row="1"
                                                  SelectionChanged="tvAvailableTables_SelectionChanged"
                                                  SelectionMode="Multiple"
                                                  ScrollViewer.VerticalScrollBarVisibility="Auto" 
                                                  ScrollViewer.HorizontalScrollBarVisibility="Auto">
                                </telerik:RadTreeView>
                            </Grid>
                        </telerik:RadPane>
                    </telerik:RadPaneGroup>
George
Telerik team
 answered on 27 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
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?