Telerik Forums
UI for WPF Forum
1 answer
79 views

<telerik:RadGridView.FilterDescriptors>   

     <telerik:CompositeFilterDescriptor LogicalOperator="Or">       

          <telerik:CompositeFilterDescriptor.FilterDescriptors>             

               <telerik:FilterDescriptor Member="Hardcoded" Operator="IsEqualTo" Value="false"/>        

          </telerik:CompositeFilterDescriptor.FilterDescriptors>   

     </telerik:CompositeFilterDescriptor>

</telerik:RadGridView.FilterDescriptors>

Dimitar Dinev
Telerik team
 answered on 18 Sep 2019
5 answers
170 views

When the editor becomes active, the contextualgroup IsActive is set to true and RibbonTab appear visible. When user selects it, it looks like in "before" picture. Everything ok. But when in this time the editor is closed, IsActive is set to false, but no other RibbonTab is automatically selected and in appears like in "after" picture. In the samples, i have not seen any special source code to select to another RibbonTab in this case. What is necessary to do in this case and how to define RibbonTab to be selected when ContextualGroup.IsActive is set to false?

 

Thanks, Ivo Kovacka

 

 

Martin Ivanov
Telerik team
 answered on 18 Sep 2019
7 answers
966 views

Hi,

I need to hide a RadWindow completely and have tried multiple ways but they do not give the expected result. In fact, I have tried minimizing the window and hiding the icon from the taskbar (but I haven't found such a method in the documentation), or setting the visibility to Hidden but none of those completely hide the Window. How is it possible to hide a window, other than by closing it?

Kind regards,

Alexandre

Martin Ivanov
Telerik team
 answered on 18 Sep 2019
12 answers
490 views

telerik version - 2018.2.515.40

Check box tick color in GridViewCheckBoxColumn does not react to Expression Dark theme when it is in view mode.

<telerik:GridViewCheckBoxColumn Header="{Binding OperatorCaption, Mode=OneWay}" DataMemberBinding="{Binding opr}"/>
<telerik:GridViewCheckBoxColumn Header="{Binding TechnicianCaption, Mode=OneWay}" DataMemberBinding="{Binding technician}"/>
<telerik:GridViewCheckBoxColumn Header="{Binding EngineerCaption, Mode=OneWay}" DataMemberBinding="{Binding engineer}"/>
<telerik:GridViewCheckBoxColumn Header="{Binding AdminCaption, Mode=OneWay}" DataMemberBinding="{Binding administrator}"/>
Vladimir Stoyanov
Telerik team
 answered on 17 Sep 2019
1 answer
152 views

I have a RadComboBox trying out the new AllowMultipleSelection feature but the problem is that it keeps auto-selecting an item in the ItemsSource on first display even though the control was initialized to have nothing selected and the user never had a chance to select anything. The SelectionChanged event doesn't capture this first stealth selection so all my viewmodel selection state is screwed up.

 

Is there a way to stop it?

Dilyan Traykov
Telerik team
 answered on 17 Sep 2019
1 answer
98 views

In a pivot grid,if I have a numeric field in the "Row Labels", I can use the "Select step" feature to group the values. However, how do I supply a min and a max like I can do in Excel's "Group by" feature? The reason I want this is that my data has some outliers and I want to collapse them into a single group like "> 100" or "< 0" instead of excluding them.

Thanks

Vladimir Stoyanov
Telerik team
 answered on 17 Sep 2019
2 answers
121 views

Hey,

Am I able to set some spacing or border/brush line between only main tasks?

 

Vladimir Stoyanov
Telerik team
 answered on 16 Sep 2019
1 answer
237 views

Hey, 

In my scenario I have one ScheduleView which takes data from 2 places:

a) Google Calandar (iCal)

b) my own database.

I would like to disable delete option for appointments from Google, but allow to delete from my Database.

 

Is there any chance for me?

Vladimir Stoyanov
Telerik team
 answered on 16 Sep 2019
7 answers
378 views

Hi,

I'm having trouble applying both FitColumnWidthToContent and CellTextAlignment.

Re: FitColumnWidthToContent , I'm using a custom data provider. It obtains its data through a 2-step process. First, to help clean up memory (the grid is being used essentially as a pivot table and so it gets heavy use), the existing collection is cleared and the associated custom data property is nullified prior to each load:

CustomData?.Clear();
CustomDataProvider = null;

Then the data is reloaded via CustomData = PivotsDB.RetrieveData();

Both CustomData and CustomDataProvider are properties that call RaisePropertyChanged() as per your ViewModelBase helper class.

As a consequence of this setup, the Loaded event for my RadVirtualGrid only fires once, i.e. the fist time the grid is loaded.

To implement your suggested code re: FitcolumnWidthToContent, I therefore created a private method:

private void DataChanged(object sender, PropertyChangedEventArgs e)
        {
            if (e.PropertyName.Equals("CustomData"))
                return;
            for (int i = 0; i < RadVirtualGrid1.InitialColumnCount; i++)
            {
                RadVirtualGrid1.FitColumnWidthToContent(i);
            }
        }

...and registered this method in the code-behind file:

            InitializeComponent();
            var mvm = Application.Current.MainWindow.DataContext as MainWindowViewModel;
            PivotsViewModel vm = mvm.CurrentPageViewModel as PivotsViewModel;
            vm.PropertyChanged += DataChanged;

I have confirmed that my DataChanged method is firing, but it has no effect on the column sizes. And, yes, I have set my MeasureTextOnRender="True".

The problem with CellTextAlignment is much more straightforward. I'm using your recommended code as follows:

private void RadVirtualGrid1_CellDecorationsNeeded(object sender, Telerik.Windows.Controls.VirtualGrid.CellDecorationEventArgs e)
        {
            e.CellTextAlignment = TextAlignment.Right;
        }

...but CellTextAlignment is not a member of CellDecorationEventArgs, and if it is an extension method, VS isn't helping me find it.

Wayne

Dilyan Traykov
Telerik team
 answered on 16 Sep 2019
3 answers
557 views

Have a bit of an odd situation. I have two AutoCompleteBoxes. Both are bound are in a near-identical manner, the only difference being that the 2nd one is bound to a filtered view of the data bound to the 1st box:

Box 1: ItemsSource="{Binding SearchRecords}" DisplayMemberPath="SearchValue" SelectedItem="{Binding SearchBox1SelectedItem, Mode=TwoWay}"

Box 2: ItemsSource="{Binding SearchRecords2View}" DisplayMemberPath="SearchValue" SelectedItem="{Binding SearchBox2SelectedItem, Mode=TwoWay}"

After the second selection is made, I take some query actions, which work correctly. I then attempt to blank both boxes to clear the slate for the next user action:

SearchBox1SelectedItem = null;
SearchBox2SelectedItem = null;

Both property setters handle this in the same way:

if (_searchBox1SelectedItem != value)
                {
                    _searchBox1SelectedItem = value;
                    RaisePropertyChanged();
                }

 if (_searchBox2SelectedItem != value)
                {
                    _searchBox2SelectedItem = value;
                    RaisePropertyChanged();
                }

The effect on the SearchBox1 is as expected, i.e. the box clears itself, as shown in its properties as per AutoCompleteBox1.jpg, attached.

But this does not happen as expected for SearchBox2. Instead, it seems to have made an aborted attempt to clear itself, as per AutoCompleteBox2.jpg. Note how the SelectedItem value for SearchBox2 has been nullified, as intended, but it retains 1 record in its SelectedItems list, and also note how its SearchText, which is set to "Bil", should in fact be "Billy Joel", which is what still appears in the Search Box.

Any ideas?

 

Vladimir Stoyanov
Telerik team
 answered on 13 Sep 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
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
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?