Telerik Forums
UI for WPF Forum
7 answers
338 views

Hi

I have a richtextbox and I want each section has its own header. In the following code I have set the header but all the sections have the same header.

I have three question

1) How can I have different header for each section.

2) How can I have access to the selected section?

3) How can I access to other sections. Because there is no index for collection sections in the Document.

I will appreciate if someone answers. Thanks in advance.

            dd.Section section = new dd.Section();
            dd.Paragraph paragraph = new dd.Paragraph();
            dd.Span span = new dd.Span(this.txtHeader.Text);
            
            paragraph.Inlines.Add(span);
            section.Blocks.Add(paragraph);
            dd.RadDocument document = new dd.RadDocument();
            document.Sections.Add(section);

            dd.Header header = new dd.Header();
            header.Body = document;
            this.radRichTextBox.UpdateHeader(this.radRichTextBox.Document.Sections.First, dd.HeaderFooterType.Default, header);

Media
Top achievements
Rank 1
 answered on 20 Oct 2016
1 answer
138 views

Hello!

I have a issue about show conent of RadDocumentPane when LoadLayout.

in my project,I LoadLayout of a docking from xml file,the Layout can be loaded right,

the conent in other  RadPane can be shown right,but content in RadDocumentPane can not show.

this is my code:

<telerik:RadDocking x:Name="MainDocking">
            <telerik:RadDocking.DocumentHost >
                <telerik:RadSplitContainer>
                    <telerik:RadSplitContainer InitialPosition="DockedLeft" Orientation="Vertical">
                        <telerik:RadPaneGroup>
                            <telerik:RadPane Header="a1" telerik:RadDocking.SerializationTag="a2" CanUserClose="False">
                                <TextBlock Text="CanShow" />
                            </telerik:RadPane>
                        </telerik:RadPaneGroup>
                    </telerik:RadSplitContainer>
                    <telerik:RadSplitContainer>
                        <telerik:RadPaneGroup>
                            <telerik:RadDocumentPane x:Name="documentPane" CanUserClose="False" Title="Robot" Header="Robot">
                                <TextBlock Text="CanNotShow" />
                            </telerik:RadDocumentPane>
                        </telerik:RadPaneGroup>
                    </telerik:RadSplitContainer>
                </telerik:RadSplitContainer>
            </telerik:RadDocking.DocumentHost>
</telerik:RadDocking>

 

back code:

private MainWindow()
        {
            InitializeComponent();
            LoadLayout();
        }
        public void LoadLayout()
        {
            var path = Path.Combine(vm.rootPath, "1.xml");
            using (var fileStream = File.Open(path, FileMode.Open, FileAccess.Read))
            {
                var reader = new StreamReader(fileStream);
                var serializationString = reader.ReadToEnd();
                LoadLayoutFromString(serializationString);
            }
        }

        private void LoadLayoutFromString(string xml)
        {
            using (Stream stream = new MemoryStream(Encoding.UTF8.GetBytes(xml)))
            {
                stream.Seek(0, SeekOrigin.Begin);
                this.MainDocking.LoadLayout(stream);
            }
        }

 

what should I do?

Wang
Top achievements
Rank 1
 answered on 20 Oct 2016
2 answers
311 views

Hi Everyone,

I want similar control as shown in attached image. I want to populate pop up window with list control when we click on button. Similar to test studio recorder control.

Is there single to achieve it? can any one tell me how to implement it ?

Regards,

Rajendar.

Martin Ivanov
Telerik team
 answered on 20 Oct 2016
1 answer
265 views
Hi have some 'hint text' (which I set up by WatermarkContent  property) in my RadAutoCompleteBox. But when I am calling RadAutoCompleteBox.Focus() in my source code, 'hint text' just despairs. How can set focus on control and save 'hint text'?
Nasko
Telerik team
 answered on 19 Oct 2016
1 answer
196 views

I would like to create a Google Chrome like application with tabs positioned in the application header.

Does the RadWindow provide any Features to achieve this?

It's pretty easy to position it right, but the tabs become unclickable this way:

<Grid Margin="0,-23,0,0" >
    <telerik:RadTabControl HeaderBackground="{x:Null}" x:Name="radTabControl" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.ColumnSpan="2">
        <telerik:RadTabItem x:Name="RadTabItem" Header="RadTabItem" Height="24" Width="100">
            <Grid Background="Transparent"/>
        </telerik:RadTabItem>
    </telerik:RadTabControl>
</Grid>
Kalin
Telerik team
 answered on 19 Oct 2016
1 answer
79 views

Hi,

 

I am using Radchart and I use StackedBarSeriesDefinition and SeriesMappingCollection to bind it to Rad chart.

I have shortened the string to show it in x-axis. ie the Xcategory value. I need to show the full text on hover the label. Do we have any such things to show tooltip on Xaxis value?

 

 

Peshito
Telerik team
 answered on 19 Oct 2016
1 answer
160 views

Hi,

I want to hide some times in the TimePicker without loosing the position of the displayed times.

Currently, when I set the StartTime and the EndTime, the removed times are "collapsed" in the component.

Instead of "collapsed", I want to hide the removed times.

See screenshots.

How can I modify the TimePicker style for my need?

Nasko
Telerik team
 answered on 19 Oct 2016
1 answer
167 views
I'm working on a wpf application, i created a RADPivotGrid User control and added it to my WPF application with static ressource (Adding RadPivotGrid to your application), but its show up invisible or missing.
Polya
Telerik team
 answered on 19 Oct 2016
2 answers
177 views

Hi All,

 

I am using Telerik RadGridView with filters. When clicking the filter icon for each column, filter box appears. When I press ALT+TAB then my application get minimizes but the filter reamins in the screen. 

 

Can anyone helps me how to minimize the filter box when we tab outs. Below I have pasted the RadGridView in Xaml.

 

<telerik:RadGridView x:Name="rdgView" EnableRowVirtualization="False" DataLoadMode="Synchronous"
                     UseLayoutRounding="True" SnapsToDevicePixels="True" RenderOptions.EdgeMode="Aliased"
                     telerik:TouchManager.IsTouchHitTestVisible="False" IsReadOnly="False" CanUserInsertRows="{Binding InsertNewRow}"
                     AutoGenerateColumns="False" ColumnWidth="*"   ShowGroupPanel="False" ItemsSource="{Binding EmployeeCollection,Mode=TwoWay}"
                     CanUserSortColumns="True"  Height="Auto" VerticalAlignment="Top"
                     IsSynchronizedWithCurrentItem="True"
                     VirtualizingPanel.VirtualizationMode="Recycling" ScrollViewer.VerticalScrollBarVisibility="Auto"
                     ScrollViewer.HorizontalScrollBarVisibility="Auto"    CanUserFreezeColumns="True" Margin="10,5,10,0"
                               telerik:StyleManager.Theme="Transparent"
                                           Grid.Row="1" GroupRenderMode="Flat" NewRowPosition="Top"
            DistinctValuesLoading="rdgView_DistinctValuesLoading"
 >

ajin prasad
Top achievements
Rank 1
 answered on 19 Oct 2016
5 answers
132 views
Hi, 

When creating my polar charts I sometimes need them to be open ended (if say I only have 180 degrees of data). Currently when I plot them they automatically close (image attached). Is there an "IsClosed" property for the series? I'm using the ChartSeriesProvider.

Thanks,

James
Marcello
Top achievements
Rank 1
Iron
 answered on 18 Oct 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
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?