Telerik Forums
UI for WPF Forum
1 answer
162 views

I am having an issue using the .NET Core components within VS 2019 Professional. It is the latest build of the components.

When I am trying to use the editor the XAML designer is throwing an unhandled exception 'System.InvalidOperationException - The contained "ItemCollection" is not an ancestor of "Window".

I have created a youtube window showing the issue.

https://www.youtube.com/watch?v=fm1isYifGzY&feature=youtu.be

Many thanks,

Rob

 

Vladimir Stoyanov
Telerik team
 answered on 20 Nov 2019
3 answers
155 views

Hi,

I need to style the FontPropertiesDialog.

I want to remove the theme, set the background and foreground color.

Where do I find the template of this dialog?

 

regards

Dietmar

Peshito
Telerik team
 answered on 20 Nov 2019
2 answers
550 views

The article about using generic sort descriptor for custom sorting is super unclear

https://docs.telerik.com/devtools/wpf/controls/radgridview/sorting/how-to/generic-descriptor

 

The SortDescriptor<Club, int> returns a simple number that is just the StadiumCapacity of the club, but how do you sort on more complex data using the SortDescriptor or ColumnSortDescriptor? E.g. using a comparison function?

 

We have one column that we want to override the standard sorting, but it's part of a multi-column sorting and we have to be able to load the initial sorting state, so the example of just sorting the item source in the sorting event and then just canceling the even is not sufficient.

 

We also tried deriving from the ColumnSortDescriptor and overriding CreateSortKeyExpression, but it is not clear how to use the parameter expression, or build on the SortKeyExpression created by the base.

Dilyan Traykov
Telerik team
 answered on 19 Nov 2019
2 answers
104 views

Hi,

how can I use the FilterPopUp if I set ShowColumnHeaders="false"?

I have a seperate filter icon which call this code behind:

MyGridView.ChildrenOfType<FilteringDropDown>().First().IsDropDownOpen = true;

 

With ShowColumnHeaders="true" I can open the FilterPopUp by clicking my icon or the build in filter icon. If I set ShowColumnHeaders="false" I'll get a System.InvalidOperationException: 'Sequence contains no elements' exception.

Dinko | Tech Support Engineer
Telerik team
 answered on 19 Nov 2019
2 answers
565 views

The fluent theme auto hides the vertical scrollbars of the grid, is it possible to change this behaviour so that they always show? 

I have tried setting ScrollViewer.VerticalScrollBarVisibility="Visible" in the grid properties but it makes no difference, I think it must be coming from deeper the theme.

Thanks,

Richard

Richard
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 19 Nov 2019
2 answers
229 views

I am attempting to create a composite filter in a RadGridView.

I have a column which is a string value (ReasonTrigger) and a column which is a date column (Create Timestamp). 

If I specify a single filter (not a composite) and use a Distinct Value for the ReasonTrigger, the dropdown for that column displays all of the possible values for that column for the entire collection associated with the grid. The correct data displays which are only the rows for the alert type. See attached file - WorkingDropdown.png.

 I also need to be able to further filter by specifying a Create Timestamp which is within the last 24 hours. If I add a second individual filter (not using composite), the ReasonTrigger dropdown only shows the type that qualifies based on the ReasonTrigger and the date criteria.

If I use a composite combining the ReasonTrigger and the Create Timestamp, the same behavior occurs as the previous example. The drop down only contains the distinct value specified and the correct rows but does not show the other distinct values (which should appear but not be checked). See attached files - NotWorkingDropDown.png and NotWorkingDropDown2.png

Methods below.

 

Thank you.

Tom

 

//*************************************************************************************************************

// No composite - single distinct value filter - attached file - WorkingDropDown.png

// this works well for the AlertType (see dropdown image attached - WorkingDropdown.PNG)

  private void RefreshGridColumnsByFilterNoComposite()
        {
            Telerik.Windows.Controls.GridViewColumn countryColumn = this.radGridViewAlerts.Columns.AsQueryable<Telerik.Windows.Controls.GridViewColumn>                          ().Where(c => c.Name == "ReasonTrigger").FirstOrDefault();
            Telerik.Windows.Controls.GridView.IColumnFilterDescriptor countryFilter = countryColumn.ColumnFilterDescriptor;

            this.radGridViewAlerts.FilterDescriptors.SuspendNotifications();
            countryFilter.DistinctFilter.AddDistinctValue(AlertTypeDescription);
            this.radGridViewAlerts.FilterDescriptors.Add(countryFilter);
            this.radGridViewAlerts.FilterDescriptors.ResumeNotifications();
        }

//*****************************************************************************************

// Composite Filter - Distinct filter and date filter combined into a composite filter - attached files - NotWorkingDropdown.png and NotWorkingDropdown2.png

  private void RefreshGridColumnsByFilterComposite()
        {
            Telerik.Windows.Data.FilterDescriptor createdInLast24Hours;
            CompositeFilterDescriptor newForSpecificAlertTypeCompositeFilter;
            Telerik.Windows.Controls.GridViewColumn reasonTriggerColumn =                 this.radGridViewAlerts.Columns.AsQueryable<Telerik.Windows.Controls.GridViewColumn>().Where(c => c.Name == "ReasonTrigger").FirstOrDefault();
            Telerik.Windows.Controls.GridView.IColumnFilterDescriptor countryFilter = reasonTriggerColumn.ColumnFilterDescriptor;


            newForSpecificAlertTypeCompositeFilter = new CompositeFilterDescriptor();
            this.radGridViewAlerts.FilterDescriptors.SuspendNotifications();

            // add distinct value filter for 
            countryFilter.DistinctFilter.AddDistinctValue(AlertTypeDescription);
            newForSpecificAlertTypeCompositeFilter.FilterDescriptors.Add(countryFilter);

            // add filter for create timestamp 
            createdInLast24Hours = new Telerik.Windows.Data.FilterDescriptor("CreateTimestamp", Telerik.Windows.Data.FilterOperator.IsGreaterThan, query.GetSQLServerDatetime().AddHours(-24));
            newForSpecificAlertTypeCompositeFilter.FilterDescriptors.Add(createdInLast24Hours);

            newForSpecificAlertTypeCompositeFilter.LogicalOperator = FilterCompositionLogicalOperator.And;

            this.radGridViewAlerts.FilterDescriptors.Add(newForSpecificAlertTypeCompositeFilter);

            this.radGridViewAlerts.FilterDescriptors.ResumeNotifications();
        }

Thomas
Top achievements
Rank 1
 answered on 19 Nov 2019
1 answer
419 views
I have the following GridViewDataColumn with the checkbox and textblock Elements in the celltemplate. If the checkbox is checked, the textblockcontent in CellTemplate should be updated. But actualy the textcontent is updated when the cell get into edit mode. How can i update the content of textblock in the view if the Checkbox is checked.  
 
 
<telerik:GridViewDataColumn DataMemberBinding="{Binding IsChecked, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" IsReadOnlyBinding="{Binding Unavailable}" EditTriggers="CellClick"  Header="Check" Width="Auto">
    <telerik:GridViewDataColumn.CellTemplate>
        <DataTemplate DataType="{x:Type views:ListItem}">
            <Grid>
                <CheckBox IsChecked="{Binding Path=IsChecked}" IsEnabled="{Binding Path=Unavailable, Converter={StaticResource InverseBooleanConverter}}" Command="{...}, Path=Data}"
                          CommandParameter="{...}">
                    <TextBlock Text="{Binding Status, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" TextAlignment="Right"></TextBlock>
                </CheckBox>
 
            </Grid>
        </DataTemplate>
    </telerik:GridViewDataColumn.CellTemplate>
Dimitar Dinev
Telerik team
 answered on 18 Nov 2019
1 answer
322 views
I want to display checkbox with text next to each other. But the solution below does not work. Only Checkbox is displayed. What is wrong?
 
<telerik:GridViewCheckBoxColumn DataMemberBinding="{Binding IsChecked, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" IsReadOnlyBinding="{Binding Unavailable}" EditTriggers="CellClick"  Header="Check" Width="Auto">
                                <telerik:GridViewCheckBoxColumn.CellTemplate>
                                    <DataTemplate DataType="{x:Type views:ItemList}">
                                        <Grid>
                                            <CheckBox IsChecked="{Binding IsChecked}" IsEnabled="{Binding Unavailable, Converter={StaticResource InverseBooleanConverter}}" Command="{.....}, Path=Data}"
                                                      CommandParameter="{...}">
                                                <CheckBox.Content>
                                                    <TextBlock Text="{Binding Status, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" TextAlignment="Right"></TextBlock>
                                                </CheckBox.Content>
 
                                            </CheckBox>
 
                                        </Grid>
 
                                    </DataTemplate>

 

....

Dimitar Dinev
Telerik team
 answered on 18 Nov 2019
1 answer
138 views

     I have a live updating RadCartesianChart and I noticed the data plots from right to left then scrolls.

I want the data to start plotting on the left then scroll as new data comes in...

Martin Ivanov
Telerik team
 answered on 18 Nov 2019
1 answer
199 views

     My chart currently plots a new data point once per second. Currently the chart will just scrunch and get smaller as it fills with data.

I would like to show a specific number of data points at any given time say 50 for example, And allow users to scroll back through older data points.

The first thing is how do I configure the RadCartesianChart to only show say the 50 latest samples in view?

Then allow user to scroll backwards to view older data?

Martin Ivanov
Telerik team
 answered on 18 Nov 2019
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
Slider
Expander
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
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?