Telerik Forums
UI for WPF Forum
1 answer
143 views
I ve created span form code behind see the code:
public MainWindow()
     {
         InitializeComponent();
         Telerik.Windows.Documents.Model.Section section = new Telerik.Windows.Documents.Model.Section();
         Telerik.Windows.Documents.Model.Paragraph paragraph = new Telerik.Windows.Documents.Model.Paragraph();
         Telerik.Windows.Documents.Model.Span span = new Telerik.Windows.Documents.Model.Span("span1. dfgfdgfd ");
         Telerik.Windows.Documents.Model.Span span2 = new Telerik.Windows.Documents.Model.Span("span2.");
 
         paragraph.Inlines.Add(span);
         paragraph.Inlines.Add(span2);
         section.Blocks.Add(paragraph);
         radRichTextBox1.Document.Sections.Add(section);
     }
on selection of current span using GetCurrentSpanBox().Text when the cursor is on "dfgfdgfd " i should get this "span1. dfgfdgfd " but i m getting "dfgfdgfd" this only. it recognize "SPACE" as a span. why?
private void radRichTextBox1_MouseUp(object sender, MouseButtonEventArgs e)
     {
         textBox1.Text = radRichTextBox1.Document.CaretPosition.GetCurrentSpanBox().AssociatedSpan.Text;
     }
Alex
Telerik team
 answered on 27 Jul 2011
2 answers
98 views
Hi,
I want to use the same legend on several graph without duplicate xaml everywhere but when i do this the legend is displayed only in one chart :

the definition of my legend:
<telerik:ChartLegend x:Uid="ClassificationLegend"
                         x:Key="ClassificationLegend"
                         Name="ClassificationLegend"
                         Visibility="Visible"
                         Header=""
                         Padding="0,0,5,0"
                         HorizontalContentAlignment="Right"
                         VerticalAlignment="Center"
                         BorderThickness="0"
                         Background="Transparent"
                         UseAutoGeneratedItems="False">
        <telerik:ChartLegendItem x:Uid="telerik:ChartLegendItem_1"
                                 Label="Success"
                                 MarkerFill="{x:Static sim:ClassificationStatusColors.SuccessBrush}" />
        <telerik:ChartLegendItem x:Uid="telerik:ChartLegendItem_2"
                                 Label="Hesitation"
                                 MarkerFill="{x:Static sim:ClassificationStatusColors.HesitationBrush}" />
        <telerik:ChartLegendItem x:Uid="telerik:ChartLegendItem_3"
                                 Label="Unknown"
                                 MarkerFill="{x:Static sim:ClassificationStatusColors.UnknownBrush}" />
        <telerik:ChartLegendItem x:Uid="telerik:ChartLegendItem_4"
                                 Label="Misrecognition"
                                 MarkerFill="{x:Static sim:ClassificationStatusColors.MisrecognitionBrush}" />
    </telerik:ChartLegend>

The way i use it:
<telerik:RadChart Name="chartStrategyPerformanceMax"
Background="Transparent"
BorderThickness="0"
IsTabStop="False"
DataContext="{Binding RelativeSource={RelativeSource AncestorType=telerik:RadFluidContentControl, Mode=FindAncestor},  Path=DataContext}"
ItemsSource="{Binding StatusGroup}"
PaletteBrushes="{Binding BrushPalette}">
<telerik:RadChart.SeriesMappings>
<!-- snip -->                
</telerik:RadChart.SeriesMappings>
  
<telerik:RadChart.DefaultView>
<telerik:ChartDefaultView ChartLegend="{StaticResource ClassificationLegend}">
<telerik:ChartDefaultView.ChartArea>
<telerik:ChartArea LegendName="ClassificationLegend"
         SmartLabelsEnabled="True" />
</telerik:ChartDefaultView.ChartArea>
</telerik:ChartDefaultView>
</telerik:RadChart.DefaultView>
</telerik:RadChart>
and same in another chart:
<telerik:RadChart ItemsSource="{Binding DocumentsClassificationScore}"
            PaletteBrushes="{x:Static sim:ClassificationStatusColors.ClassificationPalette}">
        <telerik:RadChart.DefaultView>
            <telerik:ChartDefaultView ChartLegend="{StaticResource ClassificationLegend}">
                <telerik:ChartDefaultView.ChartArea>
                <telerik:ChartArea LegendName="ClassificationLegend"/>
            </telerik:ChartDefaultView.ChartArea>
        </telerik:ChartDefaultView>
    </telerik:RadChart.DefaultView>
...

I think because of the staticResource only one instance of the legend is created and this instance can only be owned by one chartarea (am i right ?).
But there is no LegendStyle and even i don't know a way to add LegendItem by style so, is there a way to not copy/paste the same lines in all my graph. A way in declarative xaml of course and without code behind...

- Cedric -
Cedric
Top achievements
Rank 1
 answered on 27 Jul 2011
1 answer
63 views
Hi there, 

Can we change the UI template when dragging item and hovering into possible dropping position on to RadTreeListView?

Currently the UI to show that an item is able to drop is shown as attached: <oops, I just realized that I can't attach>
Here is the direct link to the image

By default, It is a blue line in between two rows. I would like to change the behavior so that it is also able to highlight the Destination Rows. In this case I would like to change the color of Destination Rows. 

regards, 

Arinto
Pavel Pavlov
Telerik team
 answered on 27 Jul 2011
1 answer
152 views
Hi,

Just another issue I've found with the help for WPF controls: The API Reference section is missing Telerik.Windows.Controls.DataVisualization (which contains RadTimeBar). I'm currently using the corresponding section in the Silverlight help in the mean time.

Kind regards,
Dave.
Evgenia
Telerik team
 answered on 27 Jul 2011
3 answers
109 views
Is there a way to dynamically specify number of NumberPosition items within NumericIndicator in XAML?
Andrey
Telerik team
 answered on 27 Jul 2011
7 answers
154 views
Hi,
I 've several chart displayed in the same time but only one has a legend. This legend is usefull for all the graph so i declare in xaml all the legend item i want to display with their colors :
<telerik:ChartLegend x:Uid="ClassificationLegend"
                         x:Key="ClassificationLegend"
                         Name="ClassificationLegend"
                         Visibility="Visible"
                         Header=""
                         Padding="0,0,5,0"
                         HorizontalContentAlignment="Right"
                         VerticalAlignment="Center"
                         BorderThickness="0"
                         Background="Transparent"
                         UseAutoGeneratedItems="False">
        <telerik:ChartLegendItem x:Uid="telerik:ChartLegendItem_1"
                                 Label="Success"
                                 MarkerFill="{StaticResource SuccessBrush}" />
        <telerik:ChartLegendItem x:Uid="telerik:ChartLegendItem_2"
                                 Label="Hesitation"
                                 MarkerFill="{StaticResource HesitationBrush}" />
        <telerik:ChartLegendItem x:Uid="telerik:ChartLegendItem_3"
                                 Label="Unknown"
                                 MarkerFill="{StaticResource UnknownBrush}" />
        <telerik:ChartLegendItem x:Uid="telerik:ChartLegendItem_4"
                                 Label="Misrecognition"
                                 MarkerFill="{StaticResource MisrecognitionBrush}" />
    </telerik:ChartLegend>

And of course, i want the bar & pie use the same colors.
so i added for each graph the palette brush:

<telerik:RadChart.PaletteBrushes>
                <SolidColorBrush x:Uid="SolidColorBrush_5"
                                 Color="{StaticResource SuccessColor}" />
                <SolidColorBrush x:Uid="SolidColorBrush_6"
                                 Color="{StaticResource HesitationColor}" />
                <SolidColorBrush x:Uid="SolidColorBrush_7"
                                 Color="{StaticResource UnknownColor}" />
                <SolidColorBrush x:Uid="SolidColorBrush_8"
                                 Color="{StaticResource MisrecognitionColor}" />
            </telerik:RadChart.PaletteBrushes>


But when the data are populated some series are missing because there is no value returned by the query.
If the number of series is not always 4 the is a gap with the palette : the wrong colors are used.
if my query return always the four series but with 0 values for the missing series the pie chart try to display the 0 because i set 
ItemLabelFormat="#%{p0}"
What can i do ?

- Cedric -
Sia
Telerik team
 answered on 27 Jul 2011
1 answer
158 views
Hi.

We are delivering process automation system for the oil industry.

We are also delivering process simulators that target our control system.
In the simulator, human operators are dealing with mock system faults and process issues.

I want to design an instructors panel where the instructor drags scenarios onto a timeline to schedule them for activation and then watch in real time as the the scenario enters the "now" time and activates and observes how the human operators respond. The visual item representing the scenario updates visually to indicate how the scenario is progressing.
Scenarios are designed in Workflow Foundation and they can be run in parallell.

So:
* Can the timebar show items in real time with the whole timeline moving through some point which represents the "now" time?
* I would like to pose a restriction so that no new items can be dropped to a timestamp any sooner than, for example, 10 seconds in the future.
* Once activated, a scenario cannot be removed. It must run to completion.
* The composer UI must be able to run in "offline" mode so one no longer has a moving timeline, all items are defined in offsets from a "start" point, and that you can press "save" and later compose on it in the live environment.

Does this sound like the timebar?
Tsvetie
Telerik team
 answered on 27 Jul 2011
1 answer
162 views
I want to invoke the create appointment event in RadScheduleview using mouse single click instead of double click. How to do this?
Dani
Telerik team
 answered on 27 Jul 2011
0 answers
104 views
1. when i add new gridviewrowid. every time ,i need roll the page, then the result show.
                
GridViewRowInfo gvi =
this.radGridViewSource.SelectedRows[0];<BR>               
this.radGridViewSource.SelectedRows.Clear();<BR>               
this.radGridViewSource.SelectedRows.Add(gvi);<BR>
2.when i run one time step1 and operation a bool column grouping, and run step 1 and operation the bool column grouping ......
then the grouping show many repeat grouping conditon.

yinhu
Top achievements
Rank 1
 asked on 27 Jul 2011
1 answer
94 views
We have timeslotitemtemplate property in radscheduler. I could not find it in radscheduleview. I want to know what is the equivalent for radscheduler timeslotitem in radscheduleview. Someone can help me plz?
Dani
Telerik team
 answered on 27 Jul 2011
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
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
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
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?