Telerik Forums
UI for WPF Forum
2 answers
400 views

Hello,

I was going over the documentation page for a combo box column in a RadGridView.  The "one click" solution shows adding styles to the Column definition in XAML to set "OpenDropDownOnFocus" to true.

Is there a way this can be accomplished in code?  I am using the NoXaml binaries.  I tried the following:

var col = new GridViewComboBoxColumn { DataMemberBinding = new Binding("Lookup") };
col.ItemsSourceBinding = new Binding("Lookups");
col.EditorStyle = new Style(typeof(RadComboBox));  // Editor Style is null by default
col.EditorStyle.Setters.Add(new Setter {
  Property = RadComboBox.OpenDropDownOnFocusProperty,
  Value = true
});
// Item template displays other properies in the "Lookup" object.
col.ItemTemplate = (DataTemplate)Application.Current.Resources["lookup"];

But when the grid renders now, the dispaly works, but the editor for the combobox columns no longer have content. 

Since I'm using the NoXaml binaries, do I need to explicitly define the EditorTemplate as well because the EditorStyle overrides the implicit template?

Gord
Top achievements
Rank 1
 answered on 18 Apr 2016
5 answers
349 views

I am not sure whether this should be classed as a bug or not.

When using the VisualStudio2013 Dark Theme and closing a RadWindow it "Shrinks" and fades away. However the window is still active whilst it is shrinking.

In my use case I have a RadWindow as a popup with a RadListBox containing several items. On the RadListBox's SelectionChanged Event some work is carried out and I call Close() on the RadWindow. This happens very quickly and if a user double clicks a RadListBoxItem rather than single clicking the RadWindow it is already closing and the RadListBoxItem below the selected item moves under the curser as the RadWindow "Shrinks". This item then fires the same event.

As a work around I am going to set IsEnabled=false on all my RadWindows before calling Close() as this fixes the issue.

I just wondered whether this could effect other peoples projects in different ways, and whether the IsEnabled=false should be set somewhere else within the Telerik code as an automated process.

Regards,

Shaun

 

 

Shaun
Top achievements
Rank 1
 answered on 18 Apr 2016
1 answer
187 views

WPF Telerik RadGridView disappeared when i applied global style.

                    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:fw="clr-namespace:SSMS.Framework;assembly=SSMS.Framework">
 
    <Style TargetType="telerik:RadGridView">
        <Setter Property="ShowGroupPanel" Value="False" />
        <Setter Property="AutoGenerateColumns" Value="False" />
        <Setter Property="RowIndicatorVisibility" Value="Collapsed" />
        <Setter Property="CanUserFreezeColumns" Value="False" />
        <Setter Property="IsReadOnly" Value="True" />
        <Setter Property="BorderThickness" Value="1,1,1,0" />
    </Style>
 
    <Style x:Key="BoldStyle" TargetType="telerik:GridViewRow" BasedOn="{StaticResource GridViewRowStyle}">
        <Setter Property="FontWeight" Value="Bold" />
    </Style>
 
...........................etc

If i remove the below part from GridViewStyle.xaml, the grid appearing fine, but i want to configure those settings globally.

<Style TargetType="telerik:RadGridView">
            <Setter Property="ShowGroupPanel" Value="False" />
            <Setter Property="AutoGenerateColumns" Value="False" />
            <Setter Property="RowIndicatorVisibility" Value="Collapsed" />
            <Setter Property="CanUserFreezeColumns" Value="False" />
            <Setter Property="IsReadOnly" Value="True" />
            <Setter Property="BorderThickness" Value="1,1,1,0" />
</Style>

I am using Telerik WPF 2016.1.112.45
I am sure, before it was worked on the version 2015.3.1104.45.
Anything I missed?
Karuppasamy
Top achievements
Rank 1
 answered on 16 Apr 2016
2 answers
537 views

I am using Interaction triggers to Data bind the Data filter event to Relay commands in view model, I can do this for FilterOperatorsLoading event that is directly in DataFilter but i need to listen to 2 other events that are in FilterDescriptors.

This event works:

<i:EventTrigger EventName="FilterOperatorsLoading">
                    <cmd:EventToCommand Command="{Binding FilterOperatorsLoadingCommand}" PassEventArgsToCommand="True" />
</i:EventTrigger>

How can do that same for RadDataFilter.FilterDescriptors.CollectionChanged and RadDataFilter.FilterDescriptors.ItemChanged event

Thanks

vikas mittal

Vikas
Top achievements
Rank 1
 answered on 15 Apr 2016
1 answer
134 views

Good afternoon,

In each page of our WPF application we have a few user controls from the Telerik library. We're running the Visual Studio profiler and noticed that for each UC from Telerik, all the themes are being parsed at runtime, as it can be seen from the screenshot attached or at this link.

The theme is being explicitly set at the beginning of the app and we haven't been able to find any help/documentation on this matter.

We would like to prevent this additional render time for each control to achieve the most fluid UI we can.

Any help would be appreciated.

Thanks in advance,

Diogo

Masha
Telerik team
 answered on 15 Apr 2016
1 answer
194 views

Hi to all,

I have this problem in design-time, sometimes it appears this error when I show a GridView.

My XAML is this:

<Window
                xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                mc:Ignorable="d"
                x:Class="TelerikCustomGridView.MainWindow"
                Title="MainWindow" Height="350" Width="525">
    <Grid>
        <telerik:RadGridView ItemsSource="{Binding Clienti}" GroupRenderMode="Flat" AutoExpandGroups="True">
            <telerik:RadGridView.GroupDescriptors>
                <telerik:GroupDescriptor Member="NAZIONE" SortDirection="Ascending"/>
                <telerik:GroupDescriptor Member="PROVINCIA" SortDirection="Ascending"/>
            </telerik:RadGridView.GroupDescriptors>
            <telerik:RadGridView.FilterDescriptors>
                <telerik:FilterDescriptor Member="PROVINCIA" Operator="IsNotNull"/>
            </telerik:RadGridView.FilterDescriptors>
        </telerik:RadGridView>
    </Grid>
</Window>

Yoan
Telerik team
 answered on 15 Apr 2016
3 answers
812 views

Hi!

 

Is there any fast/easy way to change the expander image of RadExpander like expander of TreeListView?

 

Thanks!

Martin
Telerik team
 answered on 15 Apr 2016
1 answer
508 views

Hi,

We are using RadGridView to display data from the DataTable. In one of the column we have selected "StartsWith" has the filter. After setting the filter if we close and re open the view, we are getting the following error and the application crashes. This is once we load the layout even before Data is loaded.

 

System.NotImplementedException: The method or operation is not implemented.
   at Telerik.Windows.Data.Expressions.FilterOperatorExpressionBuilderBase.GenerateStartsWith(Expression left, Expression right)
   at Telerik.Windows.Data.Expressions.OperatorValueFilterDescriptorExpressionBuilderBase.CreateBodyExpression()
   at Telerik.Windows.Data.Expressions.FilterDescriptorCollectionExpressionBuilder.CreateBodyExpression()
   at Telerik.Windows.Data.Expressions.FilterDescriptorCollectionExpressionBuilder.CreateBodyExpression()
   at Telerik.Windows.Data.Expressions.FilterDescriptorCollectionExpressionBuilder.CreateBodyExpression()
   at Telerik.Windows.Data.ICompositeFilterDescriptorExtensions.GetFilterFunction(ICompositeFilterDescriptor filterDescriptors, Type itemType)
   at Telerik.Windows.Data.QueryableCollectionView.InitializeInternalList(IQueryable view)
   at Telerik.Windows.Data.QueryableCollectionView.CreateInternalList()
   at Telerik.Windows.Data.QueryableCollectionView.get_InternalList()
   at Telerik.Windows.Data.QueryableCollectionView.GetEnumerator()
   at System.Linq.Enumerable.<OfTypeIterator>d__aa`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)

 

After digging through the column properties, I found out that FilterMemberType was null. Once I set the property to string type. Its not throwing error anymore.

Please let me know is it the right way to do it or if you have any better solution.

 

Thanks and regards,

Alex

 

 

 

Yoan
Telerik team
 answered on 15 Apr 2016
4 answers
483 views
Hi.

I searched for it before but without success. Can anyone tell me how I can change the height of the RadGridViewRows?
Thank you for any help.

Greetz
Yoan
Telerik team
 answered on 15 Apr 2016
8 answers
242 views

Hello Telerik,

 

So far I could get my Grid cells styles to be dynamically changed based on my own roles, using this tutorial

http://docs.telerik.com/devtools/wpf/controls/radgridview/style-selectors/cell-style-selector.html

 

but there are two things left to be done regarding this issue.

still following the given approach, I want to:

 

- set an image to a checkbox, whether it is true or false.

- and also set that style in a separate file, so that it may be reused. inside a resourcedictionary file.

 

My point is, I will have several grids through my application using the same set of styles in their cells. based on each own role.

 

Please help me to achieve that!

 

Vitor
Top achievements
Rank 1
 answered on 14 Apr 2016
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
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?