Telerik Forums
UI for WPF Forum
0 answers
364 views

Hello,

 

i'm currently working with some hierarchical data that i wanted to present using a RadGridView with its ChildTable feature.

 

Unfortunately i'm running in quite severe performance issues once i try to auto expand the child tables (waiting between 15 to 25 seconds to see my data).

I've read that placing the RadGridView in a container with infinite height (like ScrollViewer, Grid with height 'Auto', etc) could lead to such performance issues, but i didn't place it in such containers.

 

I prepared and attached a little demo project to reproduce my problem.

 

It would be great if someone got some tips for me on how to improve the performance when expanding multiple levels of hierarchies in a RadGridView.

 

Greetings,

Josh

 

Joshua
Top achievements
Rank 1
 asked on 04 Apr 2022
3 answers
275 views

Hi,

 

We wish to auto open the settings pane whenever the user selects a particular shape. What is the standard way of achieving this?

We have added a event handler for the selection changed event, just need the method to trigger the settings pane open.

Thank you.

Petar Mladenov
Telerik team
 answered on 04 Apr 2022
1 answer
263 views

Hi

I have a checkbox as a cell in one of my gridviews. if you double click it, the chech box  will hides.

how can I disable double click , to prevent hiding the checkbox?

I tried:

setting e.handled to true  in "PreviewMouseDoubleClick" but did not work(still hides)

 



<telerik:GridViewDataColumn>

<telerik:GridViewColumn.CellTemplate>

<DataTemplate>
<CheckBox>
#close tags#

 

Martin Ivanov
Telerik team
 answered on 04 Apr 2022
0 answers
124 views

Hi,

We are having  an issue with the settings pane of the diagram control wherein if we add a shape to the diagram, edit its text, and click on the settings pane directly, the content (text) of the control is not reflected in the settings pane text tab. Also, any change that you make, say to text or fonts etc. is not immediately reflected on the control. This is causing a great deal of confusion to our users.

How do we force the settings pane to pick up the latest value from the control and make sure it applies changes immediately (so they are visible to the user as they make them)?

I have attached a video demonstrating this issue: https://somup.com/c3ffh2O1kO

Please help.

 

Mrugendra
Top achievements
Rank 1
Iron
 asked on 04 Apr 2022
1 answer
185 views

Hi,

In my WPF MVVM solution, I'm using Telerik RadMap control with the free ArcGIS Provider to show maps,

I also use Telerik InformationLayer control to show extra data coming from my ViewModel, and it's all working well.

Now I have a paid account at ESRI, and after I log in to my account I can see and use on the ESRI website some extra Feature Layers like "Electric Dataset" and more.

I see ESRI does have an API for .NET to be able to display a map and add a feature layer, and they also show an example of how to do it by using their own WPF esri:MapView control.

But the problem is that I don't want to replace my current RadMap control with another new control because I'm worried about all my existing InformationLayers complexity, and I probably would need to code them again especially to match the new control.

My question is, Is there is a way I could combine using RadMap control with a paid ESRI ArcGIS provider?

 

Thanks in advance for your answers

Efi

Efi
Top achievements
Rank 1
 updated question on 31 Mar 2022
1 answer
153 views

I want to create a overview where all my 200+ tasks can be seen at one view. To do this, I wanted to make my row height to 5 pixels. So I added this code to my usercontrol:

<system:Double x:Key="RowHeight">5</system:Double><Style TargetType="telerik:EventContainer" BasedOn="{StaticResource EventContainerStyle}"> <Setter Property="MaxHeight" Value="{StaticResource RowHeight}" /> <Setter Property="MinHeight" Value="{StaticResource RowHeight}" /> </Style><Style TargetType="telerik:MilestoneContainer" BasedOn="{StaticResource MilestoneContainerStyle}"> <Setter Property="MaxHeight" Value="{StaticResource RowHeight}" /> <Setter Property="MinHeight" Value="{StaticResource RowHeight}" /> </Style><Style TargetType="telerik:SimpleCellContainer" BasedOn="{StaticResource SimpleCellContainerStyle}"> <Setter Property="MaxHeight" Value="{StaticResource RowHeight}" /> <Setter Property="MinHeight" Value="{StaticResource RowHeight}" /> </Style><Style TargetType="telerik:CellContainer" BasedOn="{StaticResource CellContainerStyle}"> <Setter Property="MaxHeight" Value="{StaticResource RowHeight}" /> <Setter Property="MinHeight" Value="{StaticResource RowHeight}" /> <Setter Property="Padding" Value="0" /> </Style><Style TargetType="telerik:CellEditingContainer" BasedOn="{StaticResource CellEditingContainerStyle}"> <Setter Property="MaxHeight" Value="{StaticResource RowHeight}" /> <Setter Property="MinHeight" Value="{StaticResource RowHeight}" /> </Style><Style TargetType="telerik:SimpleTreeCellContainer" BasedOn="{StaticResource SimpleTreeCellContainerStyle}"> <Setter Property="MaxHeight" Value="{StaticResource RowHeight}" /> <Setter Property="MinHeight" Value="{StaticResource RowHeight}" /> </Style><Style TargetType="telerik:DragResizeSlotHighlightContainer" BasedOn="{StaticResource DragResizeSlotHighlightContainerStyle}"> <Setter Property="MaxHeight" Value="{StaticResource RowHeight}" /> <Setter Property="MinHeight" Value="{StaticResource RowHeight}" /> </Style><Style TargetType="telerik:CellHighlightContainer" BasedOn="{StaticResource CellHighlightContainerStyle}"> <Setter Property="MaxHeight" Value="{StaticResource RowHeight}" /> <Setter Property="MinHeight" Value="{StaticResource RowHeight}" /> </Style><Style TargetType="telerik:TreeCellHighlightContainer" BasedOn="{StaticResource TreeCellHighlightContainerStyle}"> <Setter Property="MaxHeight" Value="{StaticResource RowHeight}" /> <Setter Property="MinHeight" Value="{StaticResource RowHeight}" /> </Style><Style TargetType="telerik:TreeCellEditingContainer" BasedOn="{StaticResource TreeCellEditingContainerStyle}"> <Setter Property="MaxHeight" Value="{StaticResource RowHeight}" /> <Setter Property="MinHeight" Value="{StaticResource RowHeight}" /> </Style><Style TargetType="telerik:TreeCellContainer" BasedOn="{StaticResource TreeCellContainerStyle}"> <Setter Property="MaxHeight" Value="{StaticResource RowHeight}" /> <Setter Property="MinHeight" Value="{StaticResource RowHeight}" /> </Style>

But the height is only changed on the EventContainer, not the full row:

 

How can I change the full row height?

Thanks.

Regards, Marco

Dilyan Traykov
Telerik team
 answered on 31 Mar 2022
1 answer
178 views

I am using RadSplitButton.  I want the drop-down to be enabled even if the command itself is not valid to execute.   Is this a valid use-case for this control?

My dropdown content is a list of items.  The RadSplitButton content shows the currently selected item.  The command operates on the currently selected item and can only be executed if it is valid for that item.   

But as soon as the command becomes invalid for the currently selected item, the entire RadSplitButton control becomes disabled.  So I am unable to use the dropdown to select a different item, for which it might be valid.

Am I trying to use this control in a manner for which it was not intended?

Stenly
Telerik team
 answered on 30 Mar 2022
1 answer
341 views

Hi

we tried to change template for radcombobox. but encountered a problem.

when popup is shown and try to move window or focus other window/app, it remains open. note that we set OpenDropdownOnFocus and IsEditable to true

we use c#, wpf, .net core

thanks


<Style TargetType="telerik:RadComboBox"> <Setter Property="TextSearchMode" Value="Contains"/> <Setter Property="IsFilteringEnabled" Value="true"/> <Setter Property="OpenDropDownOnFocus" Value="True"/> <Setter Property="EditableTemplate"> <Setter.Value> <ControlTemplate TargetType="telerik:RadComboBox"> <Grid> <telerik:RadToggleButton Name="ToggleButton" Background="{TemplateBinding Background}" Foreground="{StaticResource _comboboxForeground}" Template="{StaticResource MyRadToggleButton}" Focusable="false" IsChecked="{Binding Path=IsDropDownOpen,Mode=TwoWay,RelativeSource={RelativeSource TemplatedParent}}" ClickMode="Press"> </telerik:RadToggleButton> <ContentPresenter Name="ContentSite" IsHitTestVisible="False" Content="{TemplateBinding SelectionBoxItem}" ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}" ContentTemplateSelector="{TemplateBinding ItemTemplateSelector}" Margin="3,3,23,3" VerticalAlignment="Center" HorizontalAlignment="Left" /> <TextBox x:Name="PART_EditableTextBox" Margin="5,1,25,1" Style="{StaticResource _Panel_TextBoxStyle}" Background="Transparent" BorderThickness="0" VerticalAlignment="Center"/> <Popup Name="Popup" Grid.ColumnSpan="2" Placement="Bottom" IsOpen="{TemplateBinding IsDropDownOpen}" AllowsTransparency="True" Focusable="False" PopupAnimation="Slide"> <Grid Name="DropDown" SnapsToDevicePixels="True" MinWidth="{TemplateBinding ActualWidth}" MaxHeight="{TemplateBinding MaxDropDownHeight}"> <Border Grid.ColumnSpan="2" Grid.RowSpan="2" x:Name="DropDownBorder" SnapsToDevicePixels="True" MaxWidth="{TemplateBinding ActualWidth}" BorderThickness="0" BorderBrush="White"/> <ScrollViewer Grid.ColumnSpan="2" ScrollViewer.CanContentScroll="False" Grid.Row="1" SnapsToDevicePixels="True"> <StackPanel IsItemsHost="True" Background="{StaticResource _comboboxPopupBackground}" > </StackPanel> </ScrollViewer> </Grid> </Popup> </Grid> <ControlTemplate.Triggers> <Trigger Property="IsFocused" Value="False"> <Setter Property="IsDropDownOpen" Value="False"/> </Trigger> <DataTrigger Binding="{Binding ElementName=PART_EditableTextBox, Path=IsFocused}" Value="false"> <Setter Property="IsDropDownOpen" Value="False"/> </DataTrigger> <DataTrigger Binding="{Binding ElementName=ToggleButton, Path=IsChecked}" Value="True"> <Setter Property="FocusManager.FocusedElement" TargetName="PART_EditableTextBox" Value="{Binding ElementName=PART_EditableTextBox}"/> </DataTrigger> <Trigger Property="IsMouseOver" Value="True"> <Setter TargetName="ToggleButton" Property="Background" Value="{StaticResource _comboboxHover}"/> </Trigger> </ControlTemplate.Triggers> </ControlTemplate> </Setter.Value> </Setter> </Style>

Dilyan Traykov
Telerik team
 answered on 29 Mar 2022
1 answer
168 views

Hi

In a radgridview I have some rows that I would like to stay always on top, in the order I set in the initial loading.
The other rows can be sorted in the default mode for the column click.

Please note that the number of rows "locked" is known only at runtime.

In the first figure you could see the original sorting. The gray rows are that I would to stay on top:

In the second figure you could see the result after sorting on coulmn "Inizio": the sorting is correct obviously, but I would like that the 3 gray rows stay on the top anyway:

Thank you

Luigi

Dilyan Traykov
Telerik team
 answered on 28 Mar 2022
1 answer
206 views

Hello,

We're trying to create a data paging system using the RadGridView, and are having difficulty with the filtering.
Here's the scenario. 

First, we set up the filtering mode = Filter row.

When a filter is applied, we intercept the Colum info that's being filtered in the "Grid_Filtering" event to create our Filtering information to pass back to the web services to get data.  

The issues is that the grid filters (Let's say it reduces the rows to 3), then as we call our web service to get data from the back end, which may have 10 items in the dataset.

My question is;  Are there any examples where one can gather the filter information, then prevent the internal grid from filtering, then applying our new data set?

We've cobbled it together, but it looks bad having the grid display one data set, only to have it clear out and load another.
What we're trying to do is pull the pages via webservice instead of loading the entire dataset into memory.

Dilyan Traykov
Telerik team
 answered on 28 Mar 2022
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?