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

I want to display a TimeSpan within a RadGauge. My thoughts were that I should use a NumericScale. However, I cannot seem to get it to work. I want to make a TimeSpan look like a digital clock in the form of hh:mm:ss.

Is there a way to do this with the RadGauge? If so, is there some sample code that demonstrates this?

Basically, I am looking to create something that looks like the clock in the Time Monitoring Tool found in the demos here: http://demos.telerik.com/wpf/
Frustrated Dev
Top achievements
Rank 1
 answered on 10 Dec 2008
1 answer
161 views
I'd like to display the foreign key value rather than the ID in the combobox editors.  I found this example (http://www.telerik.com/community/forums/wpf/gridview/how-to-display-the-foreign-key-value-in-grid.aspx), however with the new Q3 release this approach no longer works.

Is there an new approach for handling this now?

Thanks,
  Christopher
Nedyalko Nikolov
Telerik team
 answered on 05 Dec 2008
3 answers
151 views
Hi All.

I have about a 1500 items of CallItem class in List collection.

This is description of CallItem:
public class CallItem  
    {  
        private DateTime callDateTime;  
 
        public DateTime CallDateTime  
        {  
            get { return callDateTime; }  
            set { callDateTime = value; }  
        }  
        private String calledNumber;  
 
        public String CalledNumber  
        {  
            get { return calledNumber; }  
            set { calledNumber = value; }  
        }  
        private String logicCall;  
 
        public String LogicCall  
        {  
            get { return logicCall; }  
            set { logicCall = value; }  
        }  
        private Int64 callDuration;  
 
        public Int64 CallDuration  
        {  
            get { return callDuration; }  
            set { callDuration = value; }  
        }  
        private Double costWithTaxes;  
 
        public Double CostWithTaxes  
        {  
            get { return costWithTaxes; }  
            set { costWithTaxes = value; }  
        }  
        private Double costWithDiscount;  
 
        public Double CostWithDiscount  
        {  
            get { return costWithDiscount; }  
            set { costWithDiscount = value; }  
        }  
 
        private String abonentNumber;  
 
        public String AbonentNumber  
        {  
            get { return abonentNumber; }  
            set { abonentNumber = value; }  
        }  
 
        public CallItem(String abonentNumber, DateTime callDateTime, Int64 callDuration, String calledNumber, Double costWithDiscount, Double costWithTaxes, String logicCall)  
        {  
            this.abonentNumber = abonentNumber;  
            this.callDateTime = callDateTime;  
            this.callDuration = callDuration;  
            this.calledNumber = calledNumber;  
            this.costWithDiscount = costWithDiscount;  
            this.costWithTaxes = costWithTaxes;  
            this.logicCall = logicCall;  
        }  
          
    }  
 

I geting all records and bindind they to GridView like this:
List<CallItem> items = GetAllItems();  
dataGridView.ItemsSource = items;  
dataGridView.CreateFilterDescriptions();  
 

And when I (or user) drag and dropping column (for example AbonentNumber) on grouping panel I need to waiting about 35 seconds.

if I heed to waiting about 35 seconds when I need grouping 1500 records then how long I need to waiting if I must grouping about 15000 records or 150000 records?

How i can increase performance of grouping in GridView? Or may be for my task I dont need to use GridView and grouping?

Andy
Top achievements
Rank 1
 answered on 05 Dec 2008
3 answers
431 views
This has happened on a couple of my WPF pages that use the GridView.  I select an item on my list which populates some textboxes.  I update those textboxes, click "Update" and then reload the GridView.  Reloading the GridView consists of re-retrieving the data and setting the ItemsSource.  On this particular page I have, it binds properly the first time, but all subsequent re-binds I get this.  Any ideas what might be happening?
Nedyalko Nikolov
Telerik team
 answered on 05 Dec 2008
3 answers
331 views
Hello

I have a WPF GridView with Parent / Child data and would like the GridView to fill the space with as much as possible.

In my test scenario, I have 2 parents.  The first parent has approx 1200 records, the second parent has about 4 records.

I have about 50% of the page as white space, though the horizontal scrollbar is at the very bottom of the page as it should be.

 I have triad a VerticalAlignment="Stretch" and VerticalContentAlignment="Stretch" with no change.

Any ideas for the resolution is appreciated.

Thank you for great products.
Nedyalko Nikolov
Telerik team
 answered on 04 Dec 2008
5 answers
612 views
What is the best way to completely turn animation off?  I tried setting all of the properties to TimeSpan of zero, as well as setting AnimationSettings to null.  My window has 23 charts on the screen when it loads, each with a bar and line series.  I still see an odd flicker when the window loads.  It looks like it briefly displays the bar and line pieces in various places, then it positions and sizes everything (after that it looks fine...this happens in about a second).  Maybe the animation is still there, but it is trying to happen very fast.
Velin
Telerik team
 answered on 03 Dec 2008
1 answer
149 views
Hi,

I am receiving (quite frequently) the following in my Project Output Screen when using the DataGrid for WPF

System.Windows.Media.Animation Warning: 6 : Unable to perform action because the specified Storyboard was never applied to this object for interactive control.; Action='Stop'; Storyboard='System.Windows.Media.Animation.Storyboard'; Storyboard.HashCode='14445493'; Storyboard.Type='System.Windows.Media.Animation.Storyboard'; TargetElement='Telerik.Windows.Controls.GridView.GridViewExpandableRow'; TargetElement.HashCode='14788679'; TargetElement.Type='Telerik.Windows.Controls.GridView.GridViewExpandableRow' 

and

System.Windows.Media.Animation Warning: 6 : Unable to perform action because the specified Storyboard was never applied to this object for interactive control.; Action='Stop'; Storyboard='System.Windows.Media.Animation.Storyboard'; Storyboard.HashCode='14445493'; Storyboard.Type='System.Windows.Media.Animation.Storyboard'; TargetElement='Telerik.Windows.Controls.GridView.GridViewRow'; TargetElement.HashCode='1651401'; TargetElement.Type='Telerik.Windows.Controls.GridView.GridViewRow' 

Is there a way to resolve this. I would really prefer that it didn't happen.

Cheers

Justin

Nedyalko Nikolov
Telerik team
 answered on 02 Dec 2008
1 answer
166 views
Hi All!

How I can collapsing all groupHeaders rows by programming grouping?

Source code of grouping:
            dataGridView.GroupDescriptions.Clear();  
            Telerik.Windows.Data.RadGroupDescription desc = new Telerik.Windows.Data.RadGroupDescription("LogicCall");  
            Telerik.Windows.Data.SumFunction funcCallDuration = new Telerik.Windows.Data.SumFunction("CallDuration""CallDuration""Duration:");  
            desc.AggregateFunctions.Add(funcCallDuration);  
            dataGridView.GroupDescriptions.Add(desc); 

PS. May I collapsing all groupHeader when user drag'n'drop fields to the grouping panel?
Nedyalko Nikolov
Telerik team
 answered on 01 Dec 2008
1 answer
207 views
Hello!

I have a table with time of call in seconds.
I grouping my table and add a SumFunction.
All works great!

But I need display result of SumFunction like this: HH:MM:SS where HH - hours, MM - minutes and SS - seconds.

Can you tell me how to do it?

I can create inheritance class from SumFunction like this:
public class mF : Telerik.Windows.Data.SumFunction  
    {  
        public mF()  
        {  
        }  
 
        public mF(string propertyName, string calculationField, string caption)  
        {  
            base.Name = propertyName;  
            base.SourceField = calculationField;  
            base.Caption = caption;  
        }  
 
        private String GetTime(Decimal totalSeconds)  
        {  
            Int32 hours = (Int32)Math.Floor((double)totalSeconds / (double)3600);  
            Int32 minutes = (Int32)Math.Floor((double)(totalSeconds - (hours * 3600)) / (double)60);  
            Int32 seconds = (Int32)totalSeconds - (hours * 3600) - (minutes * 60);  
 
            return hours.ToString() + ":" + minutes.ToString() + ":" + seconds.ToString();  
        }  
 
        public override Telerik.Windows.Data.AggregateResult Calculate(Telerik.Windows.Data.GroupRecord targetGroup)  
        {  
            Telerik.Windows.Data.AggregateResult result = base.Calculate(targetGroup);  
            result.Value = GetTime(Convert.ToDecimal(result.Value, System.Globalization.CultureInfo.CurrentCulture));  
            return result;  
        }  
    } 
But this class properly work only if I have 1 grouping. 
If I add another one grouping i have exception (what it was necessary to expect, because format HH:MM:SS SumFunction cant convert to Decimal).

Please, help.
Hristo Deshev
Telerik team
 answered on 01 Dec 2008
1 answer
131 views
Hi,

The Visual Studio C# Examples Solution is not buildable.
The first error is in CarDashboard.Example.xaml.cs (Line #91): 
-  no overload for method 'Begin' takes '0' arguments

The C# Samples application crashes also after a few seconds.
 
My Environment:
- CLR3.5
- VS2008SP1
- Silverlight 2.0
- SQL Server 2005
- Telerik Build 2008.3.1105.35

Btw. The online WPF (Silvelright) demo does crash while switching from one sample to another.

Cheers,
Jani
Valeri Hristov
Telerik team
 answered on 01 Dec 2008
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
InlineAIAssistant
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?