Telerik Forums
UI for WPF Forum
1 answer
132 views

Hello!

Is it possible to collapse empty space in my RadRibbonBackstage?

<telerik:RadRibbonView.Backstage>
   <telerik:RadRibbonBackstage HorizontalContentAlignment="Left" ScrollViewer.VerticalScrollBarVisibility="Disabled" ScrollViewer.HorizontalScrollBarVisibility="Disabled">
      <telerik:RadRibbonBackstageItem Header="...">
         <controls:InventoryControl DataContext="{Binding Path=...}"/>
      </telerik:RadRibbonBackstageItem>
         ...
   </telerik:RadRibbonBackstage>
</telerik:RadRibbonView.Backstage>

My version is 2021.1.325.45.

Martin Ivanov
Telerik team
 answered on 27 Apr 2021
5 answers
975 views

Hello.

In the grid view, the selection unit is set to 'FullRow' and the selection mode is set to 'Extended'.

I want to know how to make a checkbox column and do multi-check.(Refer to the image)

 

Using GridViewSelectColumn will do something similar.

However, It is immediately reflected when selecting a row and does not support binding.

And I have to keep the checkbox variable when I close or open the window.

 

So I try to use GridViewCheckBoxColumn.

 

Anotherway is to put CellTemplate in GridViewDataColumn and do EventBindings, but the logic is not correct.

 

<telerik:RadGridView Margin="10 0" Width="300"
                     ItemsSource="{Binding Rooms}"
                     behaviour:GridViewMultiSelection.SelectedItems = "{Binding RoomItems}"
                     SelectionUnit="FullRow"
                     SelectionMode="Extended"
                     AutoGenerateColumns="False"
                     ShowColumnHeaders="True"
                     ShowGroupFooters="False"
                     ShowGroupPanel="False"
                     RowIndicatorVisibility="Collapsed"
                     RowDetailsVisibilityMode="Visible"
                     EnableColumnVirtualization="True"
                     EnableRowVirtualization="True"
                     VirtualizingPanel.IsVirtualizing="True"
                     ScrollViewer.HorizontalScrollBarVisibility ="Auto"
                     ScrollViewer.VerticalScrollBarVisibility ="Auto"
                     FrozenColumnsSplitterVisibility="Collapsed"
                     IsFilteringAllowed="False"
                     AutoExpandGroups="False"
                     >
 
    <telerik:RadGridView.Columns>
        <!--<telerik:GridViewSelectColumn/>-->
        <telerik:GridViewDataColumn Header="Name" Width="*"   IsReadOnly="True" DataMemberBinding="{Binding Name}" />
        <telerik:GridViewDataColumn Header="ID"   Width="0.7*" IsReadOnly="True" DataMemberBinding="{Binding Id}" IsVisible="False"/>
        <!--<telerik:GridViewDataColumn DataMemberBinding="{Binding IsChecked}" Header="Verification" Width="75" >
                        <telerik:GridViewDataColumn.CellTemplate>
                            <DataTemplate>
                                <CheckBox IsChecked="{Binding IsExcept}">
                                    <telerik:EventToCommandBehavior.EventBindings>
                                        <telerik:EventBinding   EventName="Checked"
                                                                Command="{Binding RelativeSource={RelativeSource AncestorType=telerik:RadGridView}, Path=DataContext.OnCheckedCommand}" />
                                    </telerik:EventToCommandBehavior.EventBindings>
                                </CheckBox>
                            </DataTemplate>
                        </telerik:GridViewDataColumn.CellTemplate>
                    </telerik:GridViewDataColumn>-->
        <telerik:GridViewCheckBoxColumn Header="Verification" Width="75" DataMemberBinding="{Binding IsChecked}"
                                        IsReadOnly="False" EditTriggers="CellClick" AutoSelectOnEdit="True" IsThreeState="False" >
        </telerik:GridViewCheckBoxColumn>
    </telerik:RadGridView.Columns>
</telerik:RadGridView>

 

 

If the above problem is not solved, is there a way to keep the variable when closing or opening the window using GridViewSelectColumn?

Thanks.

 

Vladimir Stoyanov
Telerik team
 answered on 27 Apr 2021
6 answers
337 views

Hey. I already had a license. But I cannot find the Project Configuration Wizard in my VS 2019 Extensions. Here is the screenshot. 

 

 

Vera
Telerik team
 answered on 26 Apr 2021
0 answers
236 views

Hello.

 

I am trying to change a specific background color of a row in a GridView.

Here, I used rowstyle and RowStyleSelector to see that the color has changed. (Both apply)

 

(My function) Clicking the button checks the GridView Row and changes the background color of only the matching values.

Both work when you up or down the mouse wheel. I think this is not efficient for me.

 

I know that RowStyle uses Convert and RowSelector overrides Style SelectStyle.

Is this just the difference? Or what is the performance efficiency that is good when using my function?

 

Thanks.

Psyduck
Top achievements
Rank 5
Bronze
Bronze
Bronze
 asked on 26 Apr 2021
5 answers
1.3K+ views
Hi there,

In this link http://www.telerik.com/community/code-library/wpf/general/mvvm-context-amp-row-doubleclick-functionality.aspx, it is using the CommandBindingBehavior to bind the MouseDoubleClick event. The Problem is the the even fires when dbl clicking the header or scrollbar.

How can I make it fire when the actual row or cell is double clicked?

Thanks!

May
Chris
Top achievements
Rank 1
Iron
 answered on 25 Apr 2021
1 answer
192 views

Hi.

I think I have a problem with binding.

I use a RadGridView with 3 columns and binding. I set DataContext in code behind and use it in binding here.

I also use TextBlockWithSearchProperty. It's common  TextBlock with my custom property SearchText, it works normally.

The problem is that GridView create a few TextBlockWithSearchProperty objects and  view works normal. I can see a data that I show in view, but in code behind  property Text (TextBlockWithSearchProperty) is equal to "" and DataContext is equal to null. I don't understand why?

How can I fix it? Or what I do wrong?

<telerik:RadGridView Name="GridView"  Margin="5" 
                              AutoGenerateColumns="False" ItemsSource="{Binding Path=SelecteDay.Items}">


            <telerik:RadGridView.Columns>

                <telerik:GridViewDataColumn Header="Time"

                                            DataMemberBinding="{Binding Time, StringFormat=\{0:hh\\:mm\}}"
                                            CellEditTemplate="{StaticResource TimePicker}" Width="100" />


                <telerik:GridViewDataColumn Header="Text" x:Name="TextColumn" 
                                            DataMemberBinding="{Binding Text, UpdateSourceTrigger=PropertyChanged}" 
                                            Width="*"  IsFilterable="True" FilterMemberPath="Text"> 
                    
                    <telerik:GridViewDataColumn.CellTemplate>
                        <DataTemplate >
                            <infrastructure:TextBlockWithSearchProperty Text="{Binding Text, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                                                        SearchText="{Binding RelativeSource={RelativeSource AncestorType={x:Type telerik:RadGridView}},                                                                                                Path=DataContext.SearchText, Mode=OneWay}"
                                                                        d:DataContext="{Binding}" />
                        </DataTemplate>
                    </telerik:GridViewDataColumn.CellTemplate>
                </telerik:GridViewDataColumn>
            </telerik:RadGridView.Columns>

        </telerik:RadGridView>

Chris
Top achievements
Rank 1
Iron
 answered on 25 Apr 2021
4 answers
427 views

Hello,

I'm using the Progress Telerik UI for WFP sample application (R1 2021 SP1) to review the capabilities of RadNotifyIcon.

Unfortunately, the balloon features are not working at all for me. For example, navigating to the "Notify Icon Configurator" sample app, the "Show balloon" and "Hide balloon" both do nothing.

Everything else seems fine - the icon is visible, and the popup features are working. Just the balloon messages are not.

I'm running the latest build of Windows 10 with two 4k monitors are 200% scaling.

Any thoughts on a fix or workaround would be appreciated.

- Mark R.

Vladimir Stoyanov
Telerik team
 answered on 23 Apr 2021
6 answers
1.2K+ views
Hi,

I am new to WPF, I am using MVVM pattern in WPF and generating a Datatable structure at the runtime, then binding Datatable with RadGridView, which is working as expected.

Problem: I want RadGridView configurable (where user can add new row, delete row and edit the data) and on save button click everything should be saved in the database. I am able to bind existing data from the Datatable to RadGridView, but not able to edit, delete or add new rows. I have set "True" value for CanUserDeleteRows and CanUserInsertRows. I am not sure where I am going wrong.

In one of the Telerik blog, I read that we should bind Dataview to RadGridView (as Dataview inplements INotifyPropertyChanged), but if I do that then my RadGridView appears to be empty everytime (not even show coloumns).

Any help will be highly appreciated.

Thanks in advance!
Vladimir Stoyanov
Telerik team
 answered on 23 Apr 2021
2 answers
250 views

Hello Community.

Is it possible to use Telerik UI with ARIA for WPF / XAML / VB without using ASP.NET or Silverlight?

We're looking for a solution to read ARIA tags with JAWS Screen Reader from a Desktop Application.

Greetings

Jürgen

Jürgen
Top achievements
Rank 1
 answered on 23 Apr 2021
2 answers
236 views

Hi Team,

We are facing the below exception in our applicaiton. Currently we are using version 4.0 telerik radtreeview in our application . can you please confirm whether it is related version issue or any other reason and  How to resolve this issue?

Stack Trace:
Timestamp: 3/23/2021 15:58:17           Message: HandlingInstanceID: c392afd7-c81e-4acf-86d3-2bc248a1b9ab
An exception of type 'System.NullReferenceException' occurred and was caught.
-----------------------------------------------------------------------------
03/23/2021 11:58:17
Type : System.NullReferenceException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Message : AUID = 724 - Object reference not set to an instance of an object.
Source : PresentationFramework
Help link :
Data : System.Collections.ListDictionaryInternal
TargetSite : Void Remove(System.Windows.Controls.Primitives.GeneratorPosition, Int32, Boolean)
HResult : -2147467261
Stack Trace :    at System.Windows.Controls.ItemContainerGenerator.Remove(GeneratorPosition position, Int32 count, Boolean isRecycling)
   at Telerik.Windows.Controls.TreeView.TreeViewPanel.CleanupRange(IList children, IItemContainerGenerator generator, Int32 startIndex, Int32 count)
   at Telerik.Windows.Controls.TreeView.TreeViewPanel.CleanupContainers(Int32 firstViewport, ItemsControl itemsControl)
   at Telerik.Windows.Controls.TreeView.TreeViewPanel.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
   at System.Windows.Controls.ItemsPresenter.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged)
   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Control.MeasureOverride(Size constraint)
   at Telerik.Windows.Controls.RadTreeViewItem.MeasureOverride(Size availableSize)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at Telerik.Windows.Controls.TreeView.TreeViewPanel.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
   at System.Windows.Controls.ItemsPresenter.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
   at System.Windows.Controls.ScrollContentPresenter.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged)
   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.ScrollViewer.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Border.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Control.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Border.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged)
   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged)
   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
   at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Border.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Control.MeasureOverride(Size constraint)
   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.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 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

 

Thanks,

Srinivasan

Uma
Top achievements
Rank 1
 answered on 23 Apr 2021
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
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
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?