Telerik Forums
UI for WPF Forum
1 answer
196 views

This is related to https://www.telerik.com/forums/radsplitcontainer-not-reporting-docking-state-or-width-height-correctly, I hadn't realised the XAML had a RadDocking inside another RadDocking.

The code looks like this:

<telerik:RadDocking Name="radDocking" telerik:RadDocking.SerializationTag="DockingTag">
            
            <telerik:RadSplitContainer Name="container" InitialPosition="DockedTop">
                <telerik:RadPaneGroup Name="ContainerGroup">
                    <telerik:RadDocumentPane Name="OutputPane" Header="Output"/>
                </telerik:RadPaneGroup>
                <telerik:RadPaneGroup Name="FormGroup">
                    <telerik:RadDocking>
                        <telerik:RadSplitContainer>
                            <telerik:RadPaneGroup>
                                <telerik:RadPane x:Name="Form1" Header="Form 1"/>
                            </telerik:RadPaneGroup>
                            <telerik:RadPaneGroup>
                                <telerik:RadPane x:Name="Form2" Header="Form 2"/>
                            </telerik:RadPaneGroup>
                        </telerik:RadSplitContainer>
                    </telerik:RadDocking>
                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
            
</telerik:RadDocking>

When the layout is saved (using radDocking.SaveLayout), I get this:

<RadDocking SerializationTag="DockingTag">
	<SplitContainers>
		<RadSplitContainer Dock="DockedTop" Height="359">
			<Items>
				<RadPaneGroup SelectedIndex="0">
					<Items>
						<RadDocumentPane IsDockable="True" Header="Output"/>
					</Items>
				</RadPaneGroup>
				<RadPaneGroup SelectedIndex="-1">
					<Items/>
				</RadPaneGroup>
			</Items>
		</RadSplitContainer>
	</SplitContainers>
</RadDocking>
This appears to have lost the two forms Form1 and Form2. How do I save layout with a RadDocking inside another?
Dilyan Traykov
Telerik team
 answered on 11 Nov 2021
3 answers
219 views

When set IsRightToLeft in Culture then ApplicationMenu is not correct.

 

Arkady
Top achievements
Rank 1
Iron
Iron
 updated answer on 11 Nov 2021
1 answer
196 views
How can I prevent the bars below the bottom of the Z Axis from being displayed? In the attached image I don't want the data below 10°c to display. It seems to draw everything from Z=0. I need it to draw from Z>=10 (which is the bottom value of the Z Axis)
Martin Ivanov
Telerik team
 answered on 10 Nov 2021
1 answer
168 views
Hello,

In RadPivotFieldList, how could we remove the NumberFormat part on the Dropdwnlist in the values part?

Thanks
Stenly
Telerik team
 answered on 10 Nov 2021
1 answer
436 views

 

I have a requirement to override the Minimize function of the radWindow (clicking the Minimize Button on the Title Bar). Instead of the Window Minimizing to the bottom left of the screen I intend to simply reduce the Height of the Window leaving just the Title Bar showing (in its original position). Restoring the Window will again simply set the Height back to its original value to expand the Window….

So, I need to set Handle = true when the SC_MINIMIZE Message is received, this will prevent the Window from minimizing, then i can implement my own code to change the Height of the Window… This is the code so far…

        private void RadWindow_HostCreated(object sender, HostWindowCreatedEventArgs e)

        {

            e.HostWindow.SourceInitialized += HostWindow_SourceInitialized;

        }

 

        private void HostWindow_SourceInitialized(object sender, EventArgs e)

        {

            var source = PresentationSource.FromVisual((Window)sender) as HwndSource;

            if (source != null) source.AddHook(new HwndSourceHook(HandleMessages));

        }

 

        private IntPtr HandleMessages(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled)

        {

            if (msg == 0x0112 && ((int)wParam & 0xFFF0) == 0xF020)

            {

                handled = true;

            }

 

            return IntPtr.Zero;

        }

 

However, while I seem to be catching Windows Messages in the HandleMessages function, it is not setting handled = true; when i click the Windows Minimize Button

Any help would be appreciated…

Martin Ivanov
Telerik team
 answered on 10 Nov 2021
1 answer
417 views

Hi (QwQ),

I met a problem that "IsReadOnly=true" of GridViewDataColumn doesn't work.

<telerik:GridViewDataColumn Header="IsChecked" DataMemberBinding="{Binding IsChecked}"
                        Style="{DynamicResource GridViewColumnStyle}" IsReadOnly="True">
    <telerik:GridViewDataColumn.CellTemplate>
        <DataTemplate>
            <CheckBox IsChecked="{Binding IsChecked}" Style="{DynamicResource CheckBoxStyle}"/>
        </DataTemplate>
    </telerik:GridViewDataColumn.CellTemplate>
</telerik:GridViewDataColumn>
I can still edit the checkbox in column.
Stenly
Telerik team
 answered on 09 Nov 2021
1 answer
483 views

Hi(=^_^=),

I have set the Style and EditorStyle of GridViewCheckBoxColumn.

Here it is:

<telerik:GridViewCheckBoxColumn Header="IsChecked1" 
DataMemberBinding="{Binding IsChecked}"
Style="{DynamicResource GridViewColumnStyle}" 
EditorStyle="{DynamicResource CheckBoxStyle}">
</telerik:GridViewCheckBoxColumn>

But the CheckBoxStyle only works when it is being edited.

Like this:

So..Which style can i set to change the normal style of checkbox?

Martin Ivanov
Telerik team
 answered on 09 Nov 2021
1 answer
199 views

Hello,

In my WPF application I want to integrate a page indicator, like everybody knows from mobile devices, to browse/slide through e.g. some images or pages/controls and the dots at the bottom indicating the current position.

I saw that Telerik provides something like that for Xamarin (SlideView: https://docs.telerik.com/devtools/xamarin/controls/slideview/slideview-overview). 

Is there something similar for WPF I just don't see? Or any suggestion how I can realize this easily (e.g. with bit of restyling of another control)? Or maybe is it possible to host Xamarin control in WPF?

 

Thanks

Martin Ivanov
Telerik team
 answered on 09 Nov 2021
0 answers
280 views

Hi,

I just upgrade my solution from telerik wpf 2021.1.325.310  to 2021.3.914.45. I performed the wizard upgrade but after restart vs2019, and rebuild of solution I get runtime exceptions like this: 
'The invocation of the constructor on type 'Telerik.Windows.Controls.RadBusyIndicator' that matches the specified binding constraints threw an exception.' Line number '50' and line position '3'.
If I delete RadBusyIndicator:

''The invocation of the constructor on type 'Telerik.Windows.Controls.RadNotifyIcon' that matches the specified binding constraints threw an exception.' Line number '56' and line position '5'.'

And so on...
I restored old version and I'm waiting for help.
Thank you

Luigi

 

Luigi
Top achievements
Rank 3
Bronze
Iron
Iron
 asked on 09 Nov 2021
0 answers
216 views

I use diagram each Tab Item.

And I tried save & load diagram.

it worked. but, connection's Source/Target is null when I change the tab.

then I checked DeserializeLink in GraphSource.

'base.DeserializeLink(connection, info)' is not return Source/Target.

Help me,,,

 

in GraphSource.

public override void SerializeLink(Link link, SerializationInfo info)
        {
            this.ClearCache();
            base.SerializeLink(link, info);
        }
        public override Link DeserializeLink(IConnection connection, SerializationInfo info)
        {
            return base.DeserializeLink(connection, info);
        }
kim
Top achievements
Rank 1
Iron
 asked on 09 Nov 2021
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
InlineAIAssistant
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?