Telerik Forums
UI for WPF Forum
3 answers
246 views
Have a particular scenario that has me stumped and am open to suggestions.

Utilising a TImebar, Sparkline and RadChart [Line chart] to view 3 months of 15 minute data points [so ~8640 points]

Generally the main chart is set to display a months data, with the timebar being used to select varieous periods to view.

The Following apply

1. Cant use sampling all the points nees to be visible [I know, I know.....]
2. Chart is bound to an observable collection, when the timebar selection changes, the collection is recreated from new by seleting a subset from the larger dataset [in another collection]
3. Using the simplest view of the chart possible, all animations off, not point marks, no gridlines

The problem is that there is always an appreciable delay whilst the radchart is re-rendered [1-2 seconds].
I can accept this performance, the issue is more of making the user aware of the activity rather than a UI freeze.

Tried setting the cursor in the TimebarSelectionChanged event, tried refreshing the data in a bachgound thread [didn't expect that to help really as the actual data refresh is virtually instant]

I feel the need for a BeginRender, Rendered pair of events to use.

Any suggestions much appreciated.
Yavor
Telerik team
 answered on 23 Feb 2012
5 answers
178 views
Is there any way to customize the RadGauge Bezel?  Specifically I would like to be able to change the color?  This would be for linear or radial gauges. Thanks
Andrey
Telerik team
 answered on 23 Feb 2012
5 answers
90 views
I have a 4 tilewindows and because it was created dynamicly so I'm unable to change each tilewindows' tilestate. How can I do that?

BTW I'm new to C# designing so if anyone knows how to do it, better come up with some examples, Thanks
Xiver
Top achievements
Rank 1
 answered on 23 Feb 2012
1 answer
86 views
Hi

Not sure if I'm being thick here, but I can't figure this out after hours of trying.

If I have two Permission Ranges (I assume it applies to most other annotations, but this is what I've been using). 

They appear on the page like this, separated by a carriage return:

[Range 1]
[Range 2]

If I set the Document Position inside Range 1, and use "MoveToNext()", it moves straight from one span into the next.  I'm trying to insert something in-between the two, and I'm finding it impossible for the Document.Insert() not to end up inside one of the PermissionRanges!

Any pointers appreciated!

Charlie
Charles
Top achievements
Rank 1
 answered on 22 Feb 2012
2 answers
87 views
I have a RadGrid with a CheckBoxColumn and AutoGenerateColumns="False". When I check a checkbox in the CheckBoxColumn and press Tab, the CheckBox shows the unchecked state. When I next press Shift-Tab to place focus back in the cell, the CheckBox shows the checked state.

Very simple code:
<telerik:RadGridView
    ItemsSource="{Binding MyCv}"
    AutoGenerateColumns="False">
    <telerik:RadGridView.Columns>
        <telerik:GridViewCheckBoxColumn
            DataMemberBinding="{Binding MyBool}"/>
    </telerik:RadGridView.Columns>
</telerik:RadGridView>

If I use autogenerated columns, the checkbox always shows the correct state. Am I doing something wrong or is this a bug?

I'm using the 2012 Q1 version
Erik
Top achievements
Rank 1
 answered on 22 Feb 2012
2 answers
280 views
Hi,

I have a requirement that I have a group of buttons that are always available (e.g. Help, Messaging, Refresh) and I'm looking for the best way to do this.  A couple of thoughts I had were:

1) Have a button group with the horizontal alignment set to right on each of my tabs.
-It seems that I can't mix button groups with Left and Right HorizontalAlignment.
2) Have a second RadRibbonView with no application button in the top right corner with the static button group.
The second RadRibbonView doesn't display.  If I use RadRibbonBar, I can get it do display, but it doesn't align with the other RadRibbonBar.
3) Create my own xaml to mimic the RadRibbonView
-Won't look quite right, and will be more work.

Can you tell me the best way to accomplish what I'm trying to do?

Thanks in advance,
Wyatt

Wyatt
Top achievements
Rank 1
 answered on 22 Feb 2012
5 answers
159 views

Hi!

I'm using Linear Gauge in my full screen project, for example, it looks like this:

<telerik:RadVerticalLinearGauge x:Name="linearGauge" Width="100" Height="300">
            <telerik:LinearScale x:Name="linearScale" Min="1" Max="12" >
                <telerik:LinearScale.Indicators>
                    <telerik:Marker x:Name="indicator" Value="5"/>
                </telerik:LinearScale.Indicators>
            </telerik:LinearScale>
        </telerik:RadVerticalLinearGauge>

I've understand how to scale the gauge, but I can't scale the marker. Method with changing RelativeHeight value I've found in help does'n work - the error is "The property 'RelativeHeight' was not found in type 'Marker'". Styling doesn't work either.  Please help!


Thanks!

James
Top achievements
Rank 1
 answered on 22 Feb 2012
3 answers
86 views
Hi,

I'm new to developing and have downloaded a trial of the WPF controls.I am trying to follow an example explaining how to use the geocode features. I have tried a few different ways but i always get the same error  "Object reference not set to an instance of an object." when it tries to run the code
Me.geocodeProvider.GeocodeAsync(geocodeRequest)

here is my full code any help would be greatly appreciated.

XAML
<Window x:Class="MainWindow"
           Title="MainWindow" Height="480" Width="620">
 
    <telerik:RadMap x:Name="RadMap" Height="540" VerticalAlignment="Top" ZoomLevel="7" Center="53.7500, -1.8333" MouseLocationIndicatorVisibility="Visible" NavigationVisibility="Collapsed" MapMouseDoubleClick="radMap1_MapMouseDoubleClick" MouseDoubleClickMode="None">
        <telerik:RadMap.Provider>
            <telerik:BingMapProvider Mode="Aerial" IsLabelVisible="True"
           IsTileCachingEnabled="True"
           ApplicationId="MY BING MAPS KEY" />
         
            </telerik:RadMap.Provider>
 
        <telerik:InformationLayer x:Name="informationlayer">
       
            </telerik:InformationLayer>
             
 
            ></telerik:RadMap>   
         
   
 
</Window>


VB
Imports Telerik.Windows.Controls.Map
 
Partial Public Class MainWindow
    Dim geocodeProvider As BingGeocodeProvider
    Dim geocodeLocation As Location
 
    Public Sub New()
        InitializeComponent()
    End Sub
 
    Private Sub WindowLoaded(ByVal sender As Object, ByVal e As RoutedEventArgs)
 
 
 
 
 
 
        ' Init geocode provider.
        geocodeProvider = New BingGeocodeProvider() With { _
         .ApplicationId = "MY BING MAPS KEY", _
         .MapControl = Me.radMap _
        }
        AddHandler Me.geocodeProvider.GeocodeCompleted, AddressOf Me.Provider_GeocodeCompleted
        ' Me.geocodeProvider.GeocodeCompleted += New EventHandler(Of GeocodeCompletedEventArgs)(AddressOf Provider_GeocodeCompleted)
    End Sub
 
 
    Private Sub BeginGeocodingRequest()
        Dim address As New Address() With { _
         .CountryRegion = "UK", _
         .PostalCode = "LS17 6HA" _
        }
 
        Dim geocodeRequest As New GeocodeRequest() With { _
         .Address = address _
        }
        Me.geocodeProvider.GeocodeAsync(geocodeRequest)
    End Sub
 
    Private Sub Provider_GeocodeCompleted(ByVal sender As Object, ByVal e As GeocodeCompletedEventArgs)
        Dim response As GeocodeResponse = e.Response
        If response.Results.Count > 0 Then
            Me.radMap.SetView(response.Results(0).BestView)
 
            ' Me.informationlayer.ItemsSource = response.Results(0).Locations
            Me.informationlayer.ItemsSource = response.Results(0).Locations
        End If
    End Sub
 
    Private Sub radMap1_MapMouseDoubleClick(ByVal sender As System.Object, ByVal eventArgs As Telerik.Windows.Controls.Map.MapMouseRoutedEventArgs)
        Dim address As New Address() With { _
                .CountryRegion = "UK", _
                .PostalCode = "LS17 6HA" _
               }
 
        Dim geocodeRequest As New GeocodeRequest() With { _
         .Address = address _
        }
        Me.geocodeProvider.GeocodeAsync(geocodeRequest)
    End Sub
End Class



Thanks :)
Lindell
Top achievements
Rank 1
 answered on 22 Feb 2012
1 answer
232 views
In the attached image, I need access to this property to control the height of the rows.
Dani
Telerik team
 answered on 22 Feb 2012
7 answers
344 views
If I bind a RadGridView to a ListCollectionView with a filter, and I chance a value in a Grid cell that causes the filter to return false for that row, I get an exception in the Grid cell.

Code to reproduce:

public class MyEntity : INotifyPropertyChanged
{
    private bool _myBool;
    public bool MyBool
    {
        get { return _myBool; }
        set
        {
            _myBool = value;
            PropertyChanged(this, new PropertyChangedEventArgs("MyBool"));
        }
    }
 
    public event PropertyChangedEventHandler PropertyChanged;
}

public partial class MainWindow
    {
        public MainWindow()
        {
            InitializeComponent();
            DataContext = this;
 
            MyEntities = new ObservableCollection<MyEntity> { new MyEntity(), new MyEntity(), new MyEntity() };
            MyCv = (ListCollectionView)CollectionViewSource.GetDefaultView(MyEntities);
            MyCv.Filter = MyBoolFilter;
        }
 
        public ObservableCollection<MyEntity> MyEntities { get; set; }
 
        public ListCollectionView MyCv { get; set; }
 
        private bool MyBoolFilter(object item)
        {
            return !((MyEntity)item).MyBool;
        }
    }

<Window x:Class="GridViewTest.MainWindow"
        Title="MainWindow" Height="350" Width="525">
 
    <telerik:RadGridView ItemsSource="{Binding MyCv}"/>
     
</Window>

Steps to reproduce:
1. check one of the checkboxes in the grid
2. move focus to somewhere else

I use version Q3 2011 SP1, .Net 4.0

Is there a way around this problem?


Erik
Top achievements
Rank 1
 answered on 22 Feb 2012
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
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?