Telerik Forums
UI for WPF Forum
1 answer
149 views

Hi there,

I select the complete text of my RadRichTextBox by code and also want to show the Selection Mini Tool Bar also by code?
Any ideas how to do so?

Actual this only shows up when the selection was done by mouse.

Thank you, Andi

Dimitar
Telerik team
 answered on 29 Apr 2021
0 answers
130 views

Dear sir,

I am using the  Rad Cartesian Chart control in my project.

ItemSource is bounded to a Chart Data that is an Observable Collection.

The value X value (Category ) is the time and Y is value of the data (element that is set to sinuses )

The Chart Data is cleared every 20 sec - a cycle and the new data is add from time=0  re-plotting.

In some scenarios  (Such as dragging of an element on screen) an additional  series is plotted where  y= const. 

Once the cycle is competed all lines are cleared and a new plot starts with no problem. 

 Adding values to Chart Data and clearing it is all by the UI thread. 

Do you have a idea for what may cause this?

I am attaching screen shots hope this will c

Thank you,

Harel Sarit

Hen
Top achievements
Rank 1
Veteran
 asked on 29 Apr 2021
1 answer
371 views

Hello,

Issue when adding columns and aggregate functions programmatically. Version 2019.2

The Group Footer aggregate function works as expected, but when I try to add formatting, it fails.

e.g. if the sum total is 100, the value in the footer appears as "N"

I've tried different format strings - always the same result - what am I doing wrong ?

var c = new GridViewDataColumn
                {
                    Header = columnField.ColumnHeader,
                    MinWidth = 100,
                    DataMemberBinding = new Binding(columnField.ColumnName) { StringFormat = columnField.FormatString },
                    UniqueName = columnField.ColumnName
                };

var sumFunction = new SumFunction() { SourceFieldType = Type.GetType("System.Decimal"), ResultFormatString="N" };

c.AggregateFunctions.Add(sumFunction);

 

 

 

 

 

 

Dilyan Traykov
Telerik team
 answered on 29 Apr 2021
7 answers
202 views

Hello,

I'm using your provided method to manipulate the connector positions in MVVM:

https://docs.telerik.com/devtools/wpf/controls/raddiagram/howto/raddiagrams-mvvm#bind-the-source-and-target-connector-positions-of-the-connection

In my RadDiagram, I am using the RoutedConnections-Property for the auto routing mechanism as described here:

https://docs.telerik.com/devtools/wpf/controls/raddiagram/features/routing

With the OrgTreeRouter:

var router = new OrgTreeRouter()
{
     TreeLayoutType = TreeLayoutType.TreeRight,
     ConnectionOuterSpacing = 20,
};
_ctlDiagram.RoutingService.Router = router;

 

I am setting the Route-Property for the specific RadDiagramConnection to False, but nothing happens...

Only if I disable the RoutedConnections-Property, I can achieve the behaviour I want, but then the connections are no longer routed at all.

I attach two screenshots to help you to understand my issue.

Can you help me with that?

regards,

Tobias

Petar Mladenov
Telerik team
 answered on 28 Apr 2021
1 answer
85 views

in order to allow the user select the text in the select box and copy it to his clipboard. 

We're having a problem that the text cleans up immediately after selection

the code look like:

<telerik:RadComboBox SelectedItem="{Binding ...}" DisplayMemberPath="Name" IsEditable="True"

SelectAllTextEvent="GotFocus" isTextSearchEnabled="False"...>

We try to change SelectAllTextEvent="GotFocus" to SelectAllTextEvent="None"

But that did not solve the problem.

 

Dinko | Tech Support Engineer
Telerik team
 answered on 28 Apr 2021
0 answers
148 views

after the last published version of telerik libraries I have a problem with the radmap control.
Before I was able to add providers by programming in behind code (radmap.providers.add ...), now I have a problem(nothing change in code only dlls telerik) and it crashes my applications. When adding provider to a control, radmap gets "Invalid input string format" error
I used this method because I change the url in the provider and in order to refresh the content of a given provider I had to delete it earlier and add it soon.

my provider base on UriImageProvider.

before last version of telerik i had and worked url of provider for example:  "http://server:port/arcgis/rest/services/test/MapServer/export?bbox=23.4333229064942,52.1333826707921,23.8082803998675,52.0174907373669&size=2184.28571428571,1098.42857142857&imageSR=3857&format=png&transparent=true&dpi=96&dynamicLayers=%5b%7b%22source%22%3a%7b%22type%22%3a+%22mapLayer%22%2c%22mapLayerId%22%3a+44%7d%2c%22drawingInfo%22%3a%7b%22showLabels%22%3a+False%7d%7d%2c%5d&f=image"

now its problem

how to update my provider after add to radmap?

Is there currently another way to add provider and change the url in the provider and refresh on the map?

How to display image from arcgis server which provider i have to used ?tilemadsource,imagemapsource,UriImageProvider maybe another?

Krystyna
Top achievements
Rank 1
 updated question on 28 Apr 2021
1 answer
126 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
924 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
315 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
219 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?