Telerik Forums
UI for WPF Forum
2 answers
74 views
It seems that given certain minimum, maximum and steps manually on the AxisX, the chart will snap minimum and maximum to some values, and I was wondering if there was a way to avoid this.

Example: I have an overview chart that display data from 2007 to 2013 with a step of 366, the chart starts somewhere in middle 2005 while I want it to start at January 1st, 2007 to make sure the tick mark a year starting.
Julien
Top achievements
Rank 1
 answered on 13 Aug 2010
1 answer
109 views
Is there a way to number the rows in a gridview to where it would look similar to Excel?

Thanks,
Katie
Vanya Pavlova
Telerik team
 answered on 13 Aug 2010
1 answer
292 views
Hello,
I've got another problem today. Is it posible to send column header text as a ConverterPerameter for CellTemplate?
Vanya Pavlova
Telerik team
 answered on 13 Aug 2010
5 answers
185 views
Hello all,

I am currently evaluating your RadMap-Control for my company.

Since we have a scenario where the map provider and the RadMap-Control are on the same machine we would like to optimize the tile-transfer.
Therefore I derived from WebRequest, WebResponse and IWebRequestCreate and registered my custom IWebRequestCreate-implementation for my URI-scheme. So I can return a specific URI (matching my registered IWebRequestCreate) in the GetTile-Method of my MapProvider. Then my custom WebRequest-Implementation is used, which can use my local map provider.
So far so good - but unfortunately there is a bug in the WebClient-Class that is used by the RadMap-Control which prevents the use of a custom WebRequest. The Method "ReadDataAsyncCallback" of WebClient which is used by the RadMap-Control casts the IAsyncResult-Parameter to a LazyAsyncResult which is an internal class of the System.Net-Namespace. Therefore I cannot provide an IAsyncResult-Implementation in my custom WebRequest that derives from LazyAsyncResult as you can see.

I am wondering if it is possible to fix this issue. I would have two solutions in mind:

   1. Instead of using the WebClient-Class in the RadMap-Control just use the WebRequest-Class
   2. Make it possible to write a MapProvider that returns a stream instead of an URI

best regards
   Markus
Andrey
Telerik team
 answered on 13 Aug 2010
3 answers
227 views
It is now possible to change the rowheight.
But... when using GridViewComboBoxColumn or GridViewDataColumn the possibility to set the rowheight does not work anymore...
Pavel Pavlov
Telerik team
 answered on 13 Aug 2010
5 answers
199 views
I have an existing project and I like to add WPF controls to it. In the documentation it says, that unter the Visual Studio Telerik menu, there sould be a option "Convert to Telerik WPF Application". But it is not there. Is there a possibility to make a project Telerik aware, so that the "Convert to Telerik WPF Application" is shown, as well as "Configure Project" / "Upgrade Wizzard"?

Thankx, Harry
Petar
Telerik team
 answered on 13 Aug 2010
16 answers
568 views
Hello!
I know how to hide pin button, close button
but I need to hide the context menu button.
can you help me?

Thank you!
RoxanaC
Miroslav Nedyalkov
Telerik team
 answered on 13 Aug 2010
2 answers
175 views
Hi,

I have a custom ExtendedGauge control derived from RadGauge, which adds a DynamicDictionary dep.property. Server-side sends some data in DynamicDictionary format, and if you databind a DynamicDictionary object to the DynamicDictionary property of ExtendedGauge, it creates a RadialGauge. We added DynamicDictionary property to support MVVM in our pages.

 

private static void DynamicDictionaryChangedCallback(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e)

 

{

 

    ExtendedGauge extendedGauge = dependencyObject as ExtendedGauge;

 

 

    if (e.NewValue is DynamicDictionary)

 

    {

        extendedGauge.LoadDynamicDictionary();

        extendedGauge.RegisterDynamicDictionaryDataChangedEvent();

    }

}

when DynamicDictionary property changes LoadDynamicDictionary method is called, which parses DynamicDictionary values and creates a RadialGauge.

 

 

private void LoadDynamicDictionary()

 

{

 

    try

 

    {

        InitWithDefaults();

 

        if (this.DynamicDictionary != null)

 

        {

 

            // parse gauge parameters from the DynamicDictionary

 

            ParseGaugeParams();

        }

 

        // create a new gauge

 

 

        this.Content = CreateRadialGauge();

 

    }

 

    catch { } // ignore exception

 

}

CreateRadialGauge method is listed below:

 

 

private RadialGauge CreateRadialGauge()

 

{

 

    // Create Needle

 

 

 

 

 

    Needle needle = new Needle();

 

    needle.Name =

"needle";

 

    needle.Foreground =

new SolidColorBrush(Colors.Yellow);

 

    needle.Background =

new SolidColorBrush(Colors.Yellow);

 

    needle.IsAnimated =

true;

 

    needle.Duration =

new Duration(TimeSpan.FromSeconds(2));

 

    needle.Value =

this.value;

 

 


    // Create RadialScale

 

 

 

 

 

    RadialScale radialScale = new RadialScale();

 

    radialScale.Min =

this.minValue;

 

    radialScale.Max =

this.maxValue;

 

    radialScale.Indicators.Add(needle);

 

    int sliceCount = this.sliceColors.Count;

 

 

    double sliceLength = (this.maxValue - this.minValue) / sliceCount;

 

 

    
    this
.sliceColors.ToList().ForEach(slicePair =>

 

    {

        radialScale.Ranges.Add(

new RadialRange

 

 

 

 

        {

            Min = slicePair.Key * sliceLength,

            Max = (slicePair.Key + 1) * sliceLength,

            StartWidth = 0.05,

            EndWidth = 0.05,

            Background =

new SolidColorBrush(slicePair.Value)

 

        });

    });

 

    
    // Create RadialGauge

 

 

 

 

 

    RadialGauge radialGauge = new RadialGauge();

 

    radialGauge.Items.Add(radialScale);

 

    return radialGauge;

 

}

When I created the RadialGauge and assign it to the content property of the ExtendedGauge (ContentControl), I ran into an infinite loop. Is this a bug in RadGauge or am i doing something wrong?

Thanks,

Erkan

[2010-08-03 10:23:47,802] [ERROR] [10] [88] - System.InvalidOperationException: UIElement.Measure(availableSize) cannot be called with NaN size.
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Control.MeasureOverride(Size constraint)
   at Telerik.Windows.Controls.Gauges.IndicatorBase.MeasureOverride(Size availableSize)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at Telerik.Windows.Controls.Gauges.IndicatorBase.Telerik.Windows.Controls.Gauges.IGaugeIndicator.Measure(Size )
   at Telerik.Windows.Controls.Gauges.IndicatorList.MeasureOverride(Size availableSize)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Canvas.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
   at System.Windows.Controls.ItemsPresenter.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Control.MeasureOverride(Size constraint)
   at Telerik.Windows.Controls.Gauges.RangedControl.MeasureOverride(Size availableSize)
   at Telerik.Windows.Controls.Gauges.RadialScale.MeasureOverride(Size availableSize)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
   at System.Windows.Controls.ItemsPresenter.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Control.MeasureOverride(Size constraint)
   at Telerik.Windows.Controls.Gauges.GaugeBase.MeasureOverride(Size availableSize)
   at Telerik.Windows.Controls.Gauges.RadialGauge.MeasureOverride(Size availableSize)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
   at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Border.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Control.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
   at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Border.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Control.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
   at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Border.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Page.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
   at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Border.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Control.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
   at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Decorator.MeasureOverride(Size constraint)
   at System.Windows.Documents.AdornerDecorator.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Border.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Window.MeasureOverrideHelper(Size constraint)
   at System.Windows.Window.MeasureOverride(Size availableSize)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.ContextLayoutManager.UpdateLayout()
   at System.Windows.UIElement.UpdateLayout()
   at System.Windows.Interop.HwndSource.SetLayoutSize()
   at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)
   at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)
   at System.Windows.Window.SetRootVisual()
   at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)
   at System.Windows.Window.CreateSourceWindowImpl()
   at System.Windows.Window.SafeCreateWindow()
   at System.Windows.Window.ShowHelper(Object booleanBox)
   at System.Windows.Window.Show()
   at System.Windows.Window.ShowDialog()
   at Telerik.Windows.Controls.RadWindowPopup.WindowPopupWindowFactory.WindowPopupWindowImpl.OpenPopup()
   at Telerik.Windows.Controls.RadWindowPopup.WindowPopup.Open(Boolean isModal)
   at Telerik.Windows.Controls.RadWindow.ShowWindow(Boolean modal)
   at Telerik.Windows.Controls.RadWindow.ShowDialog()
   at Telerik.Windows.Controls.RadWindow.ConfigureModal(RadAlert content, DialogParameters dialogParams)
   at Telerik.Windows.Controls.RadWindow.Alert(DialogParameters dialogParameters)
   at Utility.Mvvm.MessageBoxUtility.ShowAlertDialog(String content, Window ownerWindow) 

Erkan Durmaz
Top achievements
Rank 1
 answered on 13 Aug 2010
1 answer
143 views
Hello Sir/Madam,


     I want to know how to use Telerik RadWindow instead of WPF window. Please kindly guide me the steps to follow.
 

 
Viktor Tsvetkov
Telerik team
 answered on 13 Aug 2010
0 answers
148 views
pls i have having serious problem with my application.whenever any transaction takes place,it records the date the transaction took place in this format,04/08/2010(mm,dd,yyyy).from the client end they are suppose to be able to view report for all transaction ,but the problem is that the rad date picker brings out the date in this format
4/8/2010 12:00am but i was able to use this code RadDatePicker1.SelectedDate.Value.ToShortDateString(); to get only the date.what i need is for the date value gotten from this rad date picker to be in the same format with the first one ,that is 04/08/2010 must be in the same format as 4/8/2010. i have tried using SELECT CONVERT(CHAR(10),4/8/2010,110) it didnt work.what sql code do i use.
sigbenu
Top achievements
Rank 1
 asked on 13 Aug 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
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
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?