Telerik Forums
UI for WPF Forum
0 answers
90 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
140 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
103 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
133 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
280 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
127 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
163 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
0 answers
111 views

Hello.

How to make GridViewComboBoxColumn search by DisplayMemberPath?

ItemsSource - Dictionary<Guid, string>

While searching :System.InvalidCastException Message=Invalid cast from "System.String" to "System.Guid". 


ItemsSource="{Binding Directions}"
DataMemberBinding="{Binding Direction}" 
SelectedValueMemberPath="Key"
DisplayMemberPath="Value"

IsLightweightModeEnabled="True" doesn't help 

Code in attach.

Igor.Antohin
Top achievements
Rank 1
Iron
 updated question on 27 Mar 2022
0 answers
107 views

Why does this simple task not work on radGridView when the FilterMode is FilterRow?

I put the test code below behind a button click event for what I thought was a simple 5 minute test.

Data is loaded, grid is looking good, then I click the button

 

FilterDescriptor Test = new FilterDescriptor();

 

Test.Value = "ABC";

Test.Operator = FilterOperator.StartsWith;

Test.Member = "COLUMNNAME";

 

GridTest.FilterDescriptiors.add(Test); <------------- EXCEPTION

 

This throws and exception with message "The method or operation is not implemented"

 

 

 

John
Top achievements
Rank 1
 asked on 25 Mar 2022
1 answer
183 views

Hello,

 

I'm trying to expand all parent of my XmlElement in my RadTreeView. I can't add a specific property on my binded elemnt because it's an XmlNode. I am trying to use onSelected or onSelectionChanged events but can't have a concluent result because i can't find the whole path if parent is collapsed.

 

Thank you

Genachats
Top achievements
Rank 1
Iron
 answered on 24 Mar 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?