Telerik Forums
UI for WPF Forum
3 answers
119 views

Hi,

as you can see from the attached images, when i rotate the screen (i am on a surface pro 4 with 200% zoom but it's happening also with 100%) the radwindow (as a mainwindow) does not handle the rotation correctly

please check also the project here https://onedrive.live.com/redir?resid=D2C17D45B1412CBA!114&authkey=!AAkiuRoVn6n7nVo&ithint=file%2czip

the scenario is different if you start the window in landscape or portait mode.

but in both scenario the window can't completely maximize

Georgi
Telerik team
 answered on 17 Mar 2016
2 answers
230 views

Hi,

I have built an application with the Telerik WPF UI which is used to host other application using the Win32 SetParent function. Basically I can use it to host a number of other applications, similar as to how Chrome or Edge works. It works fine: I can host any application inside a number of radpanes. To achieve this, I have a WindowsFormsHost with a Panel on it. I use the Hwnd of the Panel to reparent the window of another process.

However, when I start undocking a pane by dragging it, the reparented window suddenly disappears and the pane is empty. I tried to handle this by listening to the PaneStateChange and PreviewPin events but that is not enough. I need to know that the pane will become undocked so I can park the parented window somewhere else while the pane is made to float. Is there a formal way to achieve this?

Thanks

Guido
Top achievements
Rank 1
 answered on 17 Mar 2016
3 answers
205 views

Hi,

I'm using the RadWindow as MainWindow for my app but when I try to maximize it, the RadWindow only takes half of the screen and buttons are hidden (see screenshot 1 and 2).

I can drag the RadWindow to get its size and buttons back.

This behavior happends also in the Demo application of UI for WPF (as shown in screenshots 3 and 4), so I think about a bug on Windows 10.

Is there any workaround for this issue ?

Regards

Georgi
Telerik team
 answered on 17 Mar 2016
3 answers
354 views

Hello,
I have a RadDocument and want to exchange a specific text against a table with the same HorizontalAlignment and other style properties. i.e.:

some text some text some text some text
some text some text some text some text
             "centered bold text"
some text some text some text some text
some text some text some text some text

(the text "centered bold text" have to exchange against my table withHorizontalAlignment = Center and FontWeight = Bold)

TextRange rt = search.FindAll("centered bold text").First();
document.CaretPosition.MoveToPosition(rt.StartPosition);
document.Selection.AddSelectionStart(rt.StartPosition);
document.Selection.AddSelectionEnd(rt.EndPosition);

How can I get information about the style settings of the text at the CaretPosition?

The insertion of the table isn't without styles works:

RadDocumentEditor editor = new RadDocumentEditor(document);
// How to get the styles
editor.Delete(false);
Table table = GetSomeTelerikTable();
// How to set the style - especially Horizontal alignment for center/right
// table.HorizontalAlignment = RadHorizontalAlignment.Center;
editor.InsertTable(table);
...
// I tried the following for a fixed value of HorizontalAlignment, but this didn't work:
//editor.ChangeTableHorizontalAlignment(RadHorizontalAlignment.Center);
...
document.MeasureAndArrangeInDefaultSize();

How can I set this style properties for my new table?

Thanks a lot

 

Mihail
Telerik team
 answered on 17 Mar 2016
1 answer
174 views
I want to use a busy indicator or progress bar or something to display a spinning wheel and not the rest of the content.  help!
Yana
Telerik team
 answered on 17 Mar 2016
2 answers
298 views
I am trying to provide custom label definition for dynamic line series.I could not set access LabelDefinitions for line series type  inside CategoricalSeriesDescriptor.Style . Can you please suggest how to do it ? 
<telerik:RadCartesianChart.SeriesProvider>
    <telerik:ChartSeriesProvider Source="{Binding YourData}">
        <telerik:ChartSeriesProvider.SeriesDescriptors>
            <telerik:CategoricalSeriesDescriptor ItemsSourcePath="YourData" ValuePath="Value" CategoryPath="Category">
                <telerik:CategoricalSeriesDescriptor.Style>
                    <Style TargetType="telerik:LineSeries">
                        <Setter Property="LabelDefinitions">
                            <Setter.Value>
                                <telerik:ChartSeriesLabelDefinition HorizontalAlignment="Center" VerticalAlignment="Center" >
                                    <telerik:ChartSeriesLabelDefinition.Template>
                                        <DataTemplate>
                                            <TextBlock Foreground="DarkBlue" Text="{Binding DataItem.Value}" />
                                        </DataTemplate>
                                    </telerik:ChartSeriesLabelDefinition.Template>
                                </telerik:ChartSeriesLabelDefinition>
                            </Setter.Value>
                        </Setter>
                    </Style>
                </telerik:CategoricalSeriesDescriptor.Style>
            </telerik:CategoricalSeriesDescriptor>
        </telerik:ChartSeriesProvider.SeriesDescriptors>
    </telerik:ChartSeriesProvider>
</telerik:RadCartesianChart.SeriesProvider>
Sivakumar
Top achievements
Rank 1
 answered on 17 Mar 2016
4 answers
155 views

Hello

UI for WPF 2015.2.623.45

I use RadMaskedTextInput in a xbap web application and have an issue with pasting text. Sporadically the application crashes with a

System.ArgumentOutOfRangeException
Message: Index was out of range. Must be non-negative and less than the size of the collection.

exception.

The pasted string does not contain any special charactes.

 

Regards

Thomas

Martin Ivanov
Telerik team
 answered on 16 Mar 2016
2 answers
250 views

Hello,

I need a working sample, or at least some help on filter + pagination.

The sample you provided in the SDK Samples Browser is glitched.

As you can see in the following images (and a gif) the filter behavior is completely messed up

 

It is essential for my grid to have filter + pagination, so if you can please assist me on this, I am be grateful.

 

Regards

Vitor
Top achievements
Rank 1
 answered on 16 Mar 2016
2 answers
142 views

Hi!

 

Is there any way to access the NavigationItemButton associated to a certain RadRadialMenuItem? I would like to show the submenus in case that the parent menuitem is clicked, therefore I need exactly the same behaviour for my menuitem as the NavigationItemButton offers.

It would be great if this would be possible in XAML only.

 

Thanks in advance.

Michael
Top achievements
Rank 1
 answered on 16 Mar 2016
1 answer
182 views

Hi,

I've followed the example here to colour each point of my BarSeries, but I can't make it work. Instead, all the points have turned invisible. The only difference I've noticied between my code and the example is that I use a ChartDataSource object as my points' source, instead of directly binding my collection to the property ItemsSource.

This is my relevant code:

<telerik:ChartDataSource Grid.Column="1" x:Name="VolumeChartDataSource" ItemsSource="{Binding VolumeSerie}" />

Then, on the series definition:

<telerik:RadCartesianChart.Series>
    <telerik:BarSeries x:Name="VolumeS" ItemsSource="{Binding ElementName=VolumeChartDataSource}" ValueBinding="Y" CategoryBinding="X">
        <telerik:BarSeries.RenderOptions>
            <telerik:Direct2DRenderOptions />
        </telerik:BarSeries.RenderOptions>
        <telerik:BarSeries.PointTemplate>
            <DataTemplate>
                <Rectangle Fill="{Binding Path=DataItem.Color}" />
            </DataTemplate>
        </telerik:BarSeries.PointTemplate>
    </telerik:BarSeries>
</telerik:RadCartesianChart.Series>

The datapoint class inside VolumeSerie has the properties X, Y and Color, all already set.

Am I missing something?

Thanks,

Jonathan.

Dinko | Tech Support Engineer
Telerik team
 answered on 16 Mar 2016
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?