Telerik Forums
UI for WPF Forum
2 answers
477 views

Hello,

My typical use case requires importing saved html into the editor. The problem I am having is that sometimes that HTML isn't always perfect and will not have a font family specified. This causes the editor to default to Verdana. For the life of me, I can't seem to figure out how to change that to be some other font. Can someone tell me where Verdana is set as the default font? I've tried setting pretty much every font property I can find, but it doesn't seem to matter when I do the html import.

Thanks!

-Tom

Tom
Top achievements
Rank 1
 answered on 20 Dec 2017
5 answers
129 views

Hi,

1) setting ExpressionEditor.Item = DataRow, the control show correct fields (Names and Types) but it is not working (the result preview is allway empty)

2) Is possible to force a result type? In example, I want a boolean expression.

3) String Functions appears in documentation images but not in real control, why?

Thanks,

marc.

Dilyan Traykov
Telerik team
 answered on 20 Dec 2017
9 answers
565 views

Hi,

How to get the cellborder focus rectangle (see attached) in the Telerik.Windows.Controls.RadSpreadsheet.ActiveWorksheet?

I tried this but this doesn't give the desired output:

View.sprSpecification.ActiveWorksheet
.Cells[rowIndex, colIndex]
.SetBorders(new CellBorders(new CellBorder(CellBorderStyle.Thin, ThemableColor.FromArgb(alfa: 255, red: 255, green: 0, blue: 0))));

 

I'm using Telerik 2017.2.614.45.NoXaml

 

Thanks,

Sri

Anna
Telerik team
 answered on 20 Dec 2017
1 answer
118 views

Dear Telerik Team,

I have problem how to change label and get list of legend in chart WPF. For detail Question please see the attached file.

 

Tq.

 

Dilyan Traykov
Telerik team
 answered on 19 Dec 2017
1 answer
108 views
Dear Sirs,

I work with RadVirtualGrid with DataProvider with which I would like to have a border on the entire row when it is selected, instead of having a border only on the cell.

Follows attached two files with images of what I would like to have and what I have now.
Dilyan Traykov
Telerik team
 answered on 19 Dec 2017
1 answer
171 views

Hello, I found a weird behavior with the trackball display when the chart is a bit large. Right now I'm displaying some statistics for a year worth of data, which demands a user scroll. I'm not using the Pan and Zoom as it adds complexity to the experience with the chart, so I'm just expanding the RadCartesianChart Width until it display all the data that I need to show, like this:

<ScrollViewer VerticalScrollBarVisibility="Disabled"
      HorizontalScrollBarVisibility="Auto"
      HorizontalAlignment="Stretch"
      VerticalAlignment="Stretch">
         <telerik:RadCartesianChart HorizontalAlignment="Left" Height="Auto"
                          Width="{Binding ItemsCount, Converter={StaticResource ChartBarSeriesCountToWidthConverter}}">
         </telerik:RadCartesianChart>
</ScrollViewer>

 

The problem is that, when I'm displaying the TrackBallInfoControl, and the Width of the Chart is higher than 15000 px, the Trackball control stops to move with the mouse and gets stuck at the 15000 px mark. The TrackBallLines are working fine, the problem only happens with the modal (tooltip) that is displayed.

The problem seems to be in the ChartTrackBallBehavior.

Why do you have such restriction, and how can I overcome it? Are there any workarounds for the RadCartesianChart and TrackBallInfoControl to make it work without facing this problem?

Thanks in advance

Martin Ivanov
Telerik team
 answered on 19 Dec 2017
3 answers
89 views
I am working on an application and using the Persistence Framework to save the settings of the Gridview I am using. I have the code from your demos in place and everything seems to work except I continue to get an InvalidCastException on the ColumnSortDescriptors when I save the seetings only in certain situations. If I group one column then save the settings the application will throw the exception, however, if I only change the sort of one column and save then everything saves perfectly and the exception is not thrown on the same line of code. Any help would be greatly appreciated. I will attach a picture of the exception to the post.
Vladimir Stoyanov
Telerik team
 answered on 19 Dec 2017
1 answer
215 views

I am developing an application and I used LayoutControl , I noticed that the window persist in memory when I close it  , even if I use GC.Collect() to wake up garbage collector, there is a memory leaks concerning LayoutControl.  

Otherwise, if I put any other telerik component like RadGridView or RadMenu the window object is removed from the memory after closing .

Please help because I use  LayoutControl in 120 interfaces.

I use ANTS Memory Profiler 8 , Telerik UI for WPF R3 2017 SP1 , win7 sp1 x64 , visual studio 2013.

Demo application : https://drive.google.com/open?id=1jzyLK9w6YMURHIIF4dkDUxUbzJrBWWPU

Petar Mladenov
Telerik team
 answered on 19 Dec 2017
2 answers
200 views
Hello, is it possible to force PDfViwer select only the whole words, but not the parts of them ? Thanks in advance
FirstName
Top achievements
Rank 1
 answered on 19 Dec 2017
1 answer
174 views

Hello

I need change some PropertyDefinition's IsEnabled on run time,my solution is change PropertyDefinition's IsReadonly
public virtual void SetEnabled() 
{
            var squidProperties = this.FindChildByType<RadPropertyGrid>() as RadPropertyGrid;
            if (squidProperties == null)
                return;
            foreach (var item in squidProperties.PropertyDefinitions)
            {
                item.IsReadOnly = !_enable;
                if (item.HasNestedProperties) 
                {
                    foreach (var subItem in item.NestedProperties) 
                    {
                        subItem.IsReadOnly = !_enable;
                    }
                }
            }
  }

when the PropertyDefinition has  EditorTemplate, when  the EditorTemplate is single control  as the following code  it is works right

<telerik:PropertyDefinition.EditorTemplate>
              <DataTemplate>    
                         <telerik:RadWatermarkTextBox 
                                                             IsReadOnly="{Binding IsReadOnly, RelativeSource={RelativeSource AncestorType=telerik:PropertyGridField}}"
                                                             Text="{Binding Filter}" />                                
                 </DataTemplate>
</telerik:PropertyDefinition.EditorTemplate>

but  when the EditorTemplate is nested controls  as the following code,  it is works wrong

   <telerik:PropertyDefinition.EditorTemplate>
                        <DataTemplate>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="*" />
                                    <ColumnDefinition Width="auto" />
                                </Grid.ColumnDefinitions>
                                <telerik:RadWatermarkTextBox Grid.Column="0"
                                                             IsReadOnly="{Binding IsReadOnly, RelativeSource={RelativeSource AncestorType=telerik:PropertyGridField}}"
                                                             Text="{Binding Filter}" />
                                <telerik:RadButton  />
                            </Grid>
                        </DataTemplate>
</telerik:PropertyDefinition.EditorTemplate>

the RadWatermarkTextBox status is not readonly, when set the PropertyDefinition isreadonly true 

what is the reason for this?

Dilyan Traykov
Telerik team
 answered on 19 Dec 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?