Telerik Forums
UI for WPF Forum
7 answers
182 views
Hi,

is it possible to select available operators for a specific property (type)? I clarify this request: I have some flags enumerations in my business objects. I would like to filter objects by these flags enumerations. If you have a flags enum with following members: First = 1, Second = 2, Third = 4. And you want to filter all objects which have value "Second" set. The default operators for enum types are "Equal" and "Is not equal". But for the flags enumerations the correct questions would be additional "contains" and "not contains". I know how to implement a DropDown with Checkboxes for specific flag selection to make a graphical representation of this question. But how is it possible to add the two more operators "contains" and "not contains" to the list of available operators? And how could I implement user defined code "behind" this operators?

Best regards,
Oliver
Mark
Top achievements
Rank 1
 answered on 27 Jul 2011
1 answer
139 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
89 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
60 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
143 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
106 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
140 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
154 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
161 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
99 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?