Telerik Forums
UI for WPF Forum
1 answer
76 views
Hi,
1) I am using amounts in my grid view data coloumn. I want it to be right alligned as values in excel.
2) I have totals textblock below my amount field. I am not using the aggregate functions of grid view as I have to apply custom Sum. Could you please tell me, how can I update my totals, on changing the amount in GridView.
Thanks
Muhammad Zubair
Maya
Telerik team
 answered on 16 Aug 2010
1 answer
150 views
Hi,

I am having problems with my grid
when the columns of the grid does not get the right size , it shows up a blank column at the end and i dont want that space . how do i do to get it out?


Thanks, Alexandre.
Vlad
Telerik team
 answered on 16 Aug 2010
2 answers
98 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
131 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
309 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
202 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
254 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
222 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
599 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
192 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
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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?