Telerik Forums
UI for WPF Forum
2 answers
84 views
Hello,

I have a trouble whith the color of the numericindicator in my application namely altough the foreground  is setted to blue and it is the same color like scale, color of th numericindicator darker.

Could please check code below and screenshot.

Thnx

Daniel
<telerik:IndicatorList>
                            <telerik:Needle x:Name="needleRPM"
                                 Value="{Binding Path=RPM}"
                                 Style="{DynamicResource NeedleStyle1}"                                 
                                 >
                                <telerik:Needle.ArrowBackground>
                                    <LinearGradientBrush EndPoint="0,0.5" StartPoint="1,0.5" MappingMode="RelativeToBoundingBox">
                                        <GradientStop Color="#FFFFD25A" Offset="0.6"/>
                                        <GradientStop Color="#FFFF2222" Offset="1"/>
                                        <GradientStop Color="#FFFFD25A"/>
                                        <GradientStop Color="Red" Offset="0.323"/>
                                    </LinearGradientBrush>
                                </telerik:Needle.ArrowBackground>
                            </telerik:Needle>
                            <telerik:NumericIndicator x:Name="Speed"
                                Panel.ZIndex="-1000"                          
                                CornerRadius="10"
                                Top="0.17"
                                Left="0.33"
                                RelativeHeight="0.35"
                                RelativeWidth="0.7"
                                TemplatePrefix="HexagonalSevenSegs"
                                Foreground="{Binding BigGaugeScaleColor}"
                                Background="{x:Null}"                             
                                Format="{}{0:F0}"
                                Value="{Binding Path=Speed}"                               
                                >
                                <telerik:NumberPosition CornerRadius="25" Margin="1,3,0,3" Background="{x:Null}"/>
                                <telerik:NumberPosition CornerRadius="25" Margin="1,3" Background="{x:Null}"/>
                                <telerik:NumberPosition CornerRadius="25" Margin="1,3,0,3" Background="{x:Null}"/>
                            </telerik:NumericIndicator>
                            <telerik:RadialBar x:Name="radialBar"
                                UseRangeColor="True"
                                RangeColorMode="Default"
                                Value="0" VerticalAlignment="Top"
                            />                          
                        </telerik:IndicatorList>
Daniel Ruehle
Top achievements
Rank 1
 answered on 11 Nov 2010
9 answers
240 views
Hi,

I'm using the RadTreeView in a MVVM scenario.
Depending on the model's IsSelectable property the corresponding item should be either selectable by the user or not.
Since this doesn't seem to be supported by the RadTreeViewItem container itself (which would be a nice new feature ;)),
the only way I found in this case is to listen on the container's PreviewSelected event and setting the "e.Handled" value to "true" if the item shouldn't be selectable.
So it looks like:

void RadTreeView_PreviewSelected(object sender, RadRoutedEventArgs e)
{
  var item = e.GetItem<IMyModel>(); // extension helper method
 
  // check item that will be selected   
  if (item != null && !item.IsSelectable)
    e.Handled = true;


But this results in a major drawback:
Upon canceling selection of the new item 'X', i'm loosing the currently selected item.
Afterwards the item 'X' has the focus rectangle and the selected item is null.
So the question is:
Is there a possiblity to cancel the selection of a new item without loosing the previous selection ?

It tried to hook the PreviewSelected, PreviewUnselected, Unselected, Selected events.
But even if set an additional flag on "PreviewSelected" which indicates that I want to revert/ignore the next unselection, I'm out of luck.
- PreviewUnselected is called before PreviewSelected => I can't determine whether to cancel or not since i don't know the future ;)
- Unselected gets actually called directly after PreviewSelected, but the RadTreeView's SelectedItem is still unchanged.
  Setting the "e.Handled" value to "true" won't change anything.
 
The second question would be:
Upon the "Unselected"-Event shouldn't the treeview's currently selected item be either the next selected item or null ?

Thanks in advance

Thorsten Klingert

Hristo
Telerik team
 answered on 11 Nov 2010
5 answers
155 views
Hi,

I've just recently started using the Telerik tools and I'm rapidly becoming a fan.

I have one feature request though;

I have a chart which can be seen in the attached file, currentgraph.png. As you can see, I'm using the Marked Zones feature - which is great - but what I would really like to see, is the option of doing what I've done in the other attached file, newgraph.png (made in Paint, but I'm sure you get the idea).

This way, I don't have to stare at the ugly red block of background all the time, and when something red appears on my chart, I know it needs my attention.

Is there a feature that I don't know or is there any hope of seeing this feature in a future release?
Yavor
Telerik team
 answered on 11 Nov 2010
6 answers
190 views
hi
how can i Get Value of Cell from Selected Item in RadGridView .
davood ramezani
Top achievements
Rank 1
 answered on 11 Nov 2010
3 answers
299 views
I have an ObservableCollection of POI's that I bind to an InformationLayer. The results are that I get a bunch of silver balloons with a red dot in the middle. How can I control the color inside the balloon? This would be great to color code my balloon by priority. Also, how can I get a tooltip to display stuff like the address, misc text, etc?

poiInformationLayer.DataMappings.Add(new DataMapping("Location", DataMember.Location));
              
            //Bind POI collection to the poi layer.
            Binding binding = new Binding();
            binding.Source = poiCollection;
            this.poiInformationLayer.SetBinding(ItemsControl.ItemsSourceProperty, binding);

public class PointOfInterest
    {
        private Location _location;
        private ZoomRange _zoomRange;
        private double _baseZoomLevel;
        private string _title;
        private string _imageUri;
        private string _description;
  
        public Location Location
        {
            get
            {
                return _location;
            }
            set
            {
                _location = value;
            }
        }
  
        public ZoomRange ZoomRange
        {
            get
            {
                return _zoomRange;
            }
            set
            {
                _zoomRange = value;
            }
        }
  
        public double BaseZoomLevel
        {
            get
            {
                return _baseZoomLevel;
            }
            set
            {
                _baseZoomLevel = value;
            }
        }
  
        public string Title
        {
            get
            {
                return _title;
            }
            set
            {
                _title = value;
            }
        }
  
        public string ImageUri
        {
            get
            {
                return _imageUri;
            }
            set
            {
                _imageUri = value;
            }
        }
  
        public string Description
        {
            get
            {
                return _description;
            }
            set
            {
                _description = value;
            }
        }
  
    }
  
    public class POICollection : ObservableCollection<PointOfInterest>
    {
        public POICollection()
        {
        }
    }
Rod Yager
Top achievements
Rank 1
 answered on 10 Nov 2010
1 answer
185 views
I'm trying to use the Tab key to navigate between items in an OutlookBar. I've noticed that Ctrl-Tab works, but Tab by itself doesn't. The Silverlight version of the OutlookBar does navigate between controls using only the Tab key.
Is there something that I'm missing to get this working the same way on both WPF and Silverlight, with just the Tab key?

Here's some XAML that's similar to the layout that I'm trying to create:
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
            <ColumnDefinition Width="2*" />
        </Grid.ColumnDefinitions>
        <telerik:RadOutlookBar>
            <telerik:RadOutlookBarItem>
                <StackPanel>
                    <TextBox>Try to</TextBox>
                    <TextBox>tab</TextBox>
                    <TextBox>between</TextBox>
                    <TextBox>us</TextBox>
                </StackPanel>
            </telerik:RadOutlookBarItem>
        </telerik:RadOutlookBar>
        <StackPanel Grid.Column="2">
            <TextBox></TextBox>
            <TextBox></TextBox>
            <TextBox></TextBox>
            <TextBox></TextBox>
        </StackPanel>
    </Grid>
Petar Mladenov
Telerik team
 answered on 10 Nov 2010
1 answer
149 views
We are having problems loading a saved layout and I reproduced it with the project that George (Telerik Team) attached to this thread:

http://www.telerik.com/community/forums/wpf/docking/unable-to-dock-pane-after-a-loadlayout.aspx#1362147

Here are the steps:

1) Undock the Documents RadDocumentPane.
2) Enter a name in the textbox.
3) Click Save.
4) Click Load. Notice that this works.
5) Right click the Documents title bar and select "Floating".
6) Click Save.
7) Click Load. Notice the ArgumentOutOfRangeException indicating that the parameter name "index" is out of range.

If you compare the two XML documents that are produced by steps 3 and 6, you will see that a SelectedIndex of -1 appears for the RadPaneGroup named RadDocumentGroup in the second XML document. This appears to be the source of the exception.

<RadSplitContainer>
  <Items>
    <RadPaneGroup SerializationTag="DocumentGroup" SelectedIndex="-1">
      <Items />
    </RadPaneGroup>
  </Items>
</RadSplitContainer>

The RadDocumentPane that used to exist in the Items group has been moved to a RadSplitContainer outside of the document host, which makes sense to me.

<RadSplitContainer InitialPosition="FloatingOnly" FloatingWidth="737" FloatingHeight="515" FloatingX="1769" FloatingY="467" IsInOpenWindow="True" WindowZIndex="1" RelativeWidth="100" RelativeHeight="100" IsAutoGenerated="True">
  <Items>
    <RadPaneGroup RelativeWidth="100" RelativeHeight="100" IsAutoGenerated="True" SelectedIndex="0">
      <Items>
        <RadDocumentPane SerializationTag="DocumentPane" IsDockable="False" Title="Documents" Header="Documents" CanUserClose="False" />
      </Items>
    </RadPaneGroup>
  </Items>
</RadSplitContainer>

George
Telerik team
 answered on 10 Nov 2010
1 answer
208 views
Hello,

We are using  GridViewComboBoxColumns in our grid and our situation is this:

In some cases the SelectedValue will not exist in the ItemsSource and the observed behavior of the column is leave it empty.  Is there any way we could change that value to be something other than empty text like "Item Not Found"?

Are there templates that we can modify to accommodate this?  If so, which ones and how would they have to be changed?

Thanks!
Maya
Telerik team
 answered on 10 Nov 2010
1 answer
201 views
Hi,

i would like to hide (set collapsed) the text input box from the raddatepicker.

how can this be done?
Kaloyan
Telerik team
 answered on 10 Nov 2010
2 answers
134 views
Hello all,

I need some help getting multiple Y axis to work.  I can get other graphs to work, but as soon as I go to multiple Y axis I get nothin.

In my xaml I have this --> 

<telerikChart:RadChart x:Name="radChart" />
In my code behind I have this --> (Which is copied from the online help files, the only changes are in bold)

radChart.DefaultView.ChartArea.AxisY.Title = "Megawatt [MW]";
AxisY axisY = new AxisY();
axisY.AxisName = "AxisY_South";
axisY.Title = "Kilowatt [kW]";
radChart.DefaultView.ChartArea.AdditionalYAxes.Add( axisY );
  
//Series mapping for the collection with index 0
SeriesMapping seriesMapping = new SeriesMapping();
seriesMapping.CollectionIndex = 0;
seriesMapping.LegendLabel = "North [MW]";
seriesMapping.SeriesDefinition = new BarSeriesDefinition();
seriesMapping.SeriesDefinition.ShowItemLabels = false;
seriesMapping.ItemMappings.Add( new ItemMapping( "Actual", DataPointMember.YValue ) );
radChart.SeriesMappings.Add( seriesMapping );
//Series mapping for the collection with index 1
seriesMapping = new SeriesMapping();
seriesMapping.CollectionIndex = 1;
seriesMapping.LegendLabel = "South [kW]";
seriesMapping.SeriesDefinition = new BarSeriesDefinition();
seriesMapping.SeriesDefinition.AxisName = "AxisY_South";
seriesMapping.SeriesDefinition.ShowItemLabels = false;
seriesMapping.ItemMappings.Add( new ItemMapping( "Goal", DataPointMember.YValue ) );
radChart.SeriesMappings.Add( seriesMapping );
radChart.ItemsSource = TMbyDate;

...

TMbyDate works with itemmapping Actual or Goal for single Y axis so I dont think it is my data.

Any ideas?  By copying and pasting and then changing 3 variables I hope I have ruled out typos.
Is there more that the online help isn't telling?  What am I missing?

Also, how come this example doesn't tell me when to put in the DataPointMember.XValue?

Thanks
Travis
Evgeni "Zammy" Petrov
Telerik team
 answered on 10 Nov 2010
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
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
SplashScreen
Rating
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
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?