Telerik Forums
UI for WPF Forum
1 answer
106 views
I would like to be able to change the background color of the Column Headers of a GridView when the Grid has any items (rows) and stop it when there no items (rows). I would really like to make it flash a new background color but I will settle for just being able to change the background color of the GridView Column Headers when it has items (rows). Is this possible? If so can you provide an example?

I am currently using version 2011.2.712.35.

Thanks,

Billy Jacobs
Vanya Pavlova
Telerik team
 answered on 09 Jan 2012
2 answers
121 views
I have recently been attempting to plot a series of data points on a Cartesian ChartView where each of the data points has a DateTime component.  The series of data points is spaced pretty regularly at one-minute intervals.  However, there are some gaps where there are no data points, and I didn't want the ChartView to leave gaps in these cases, so this meant that I needed a categorical axis for the horizontal axis; a DateTimeCategoricalAxis seemed to be a good choice for this.  The good news is that after several failed attempts at getting the data points to show up where I expected them, I got it to work by setting the DateTimeComponent property of the DateTimeCategoricalAxis to "Ticks".  However, this is the ONLY way that I've gotten it to work.  And something about this seemed a bit non-intuitive...

It would seem to me that the default behavior when plotting data points (in which each references a DateTime which includes a time component) against an axis called a "DateTimeCategoricalAxis" would be that BOTH the date and time components would be considered and that the date AND time TOGETHER would be treated as a distinct value.  But this isn't the way it works by default.  Instead, it seems that the default behavior on this axis is for the Date component of the DateTime value to be used for grouping values, and the time portion is effectively ignored.  I understand that some assumption has to be made, but this doesn't seem to be the conservative assumption.  In light of this behavior, this axis might be more fittingly named a DateCategoricalAxis?  In the example above, I thought that specifying "Minute" for the DateTimeComponent would group things by minute -- effectively giving me no more than one data point per category, but instead, I got multiple data points spread across 60 minutes, because my data spanned multiple hours (and multiple days).  Request:  Would you please consider changing the default behavior of the DateTimeCategoricalAxis to group by "Ticks", so that the Date AND Time components of a DateTime are considered?


I also tried out some of the other options for the DateTimeComponent of this axis.  Before using them, I thought I understood what they would probably do.  For example, I figured that using the Hour option would cause all data points which fell within the same hour of time (within the context of all larger units of time) to be grouped together (same X coordinate).  But after testing them I see I was wrong.  Instead of considering the unit of time in the context of larger units of time, the options consider a particular component of a datetime in isolation.  For example, there are only 24 hours in a day, so using the "Hour" option of the DateTimeComponent will only cause up to 24 categories to be created, and all data points will be plotted in one of those categories.  In all honesty, I can see the usefulness of such a feature, and now that I've used it it makes sense to me.  But I honestly think that it would be equally useful -- if not more so -- to support grouping of data points [on a DateTimeCategoricalAxis] by a contextualized date time component -- perhaps via a new boolean property that indicates that the DateTimeComponent property value is contextualized [to all larger units of time].  Request:  Could you please support some kind of contextualized date time component (as explained above)?

So, there are my observations/thoughts/suggestions/requests as it pertains to the DateTimeCategoricalAxis.  Ultimately, I'm glad that setting the DateTimeComponent to "Ticks" gives me what I was after, but I'd also be glad to hear that you might consider the things I've mentioned here.

Paul
Paul
Top achievements
Rank 1
 answered on 06 Jan 2012
3 answers
1.0K+ views
Hi...
Can u tell me way where i can change the Date format of the control in XAML. I m following MVVM pattern. Is dere any inbuilt property by which we can directly change d date format...???
Plz reply ASAP.
Thanx n regards
Shehnaz Khan.
Ivo
Telerik team
 answered on 06 Jan 2012
3 answers
186 views
Hi,

I have been working on a project that uses RadMap with Bing provider for few months and everything seemed fine but recently I am seeing a delay of 13 seconds.The delay will not occur if I remove the code of provider assignment.

BingMapProvider provider = new BingMapProvider(MapMode.Road, false, "key");
radMap1.ZoomLevel = 12;
radMap1.Provider = provider;//delay will not occur if I remove this line
radMap1.Center = new Location(24.487987518310547, 54.483178253173828);

<telerik:RadMap Name="radMap1"  ZoomLevel="12" HorizontalAlignment="Stretch" Margin="0"  VerticalAlignment="Stretch"
            MouseDragMode="None" MouseClickMode="None"  MapMouseClick="radMap_MapMouseClick" MouseLeftButtonDown="radMap1_MouseLeftButtonDown" MouseLeftButtonUp="radMap1_MouseLeftButtonUp" MouseMove="radMap1_MouseMove"></telerik:RadMap>

Thanks

Madani
Evgenia
Telerik team
 answered on 06 Jan 2012
1 answer
104 views
Hi, 

I am using telerik rad gridview to display customers. My customer object have another class as a property. 

So the object looks like: 

public class Product
{
public int ProductID {get; set;}
public decimal Amount {get; set;}
public string ProductName {get; set;}
}
 
public class Customer
{
public int CustomerID {get; set;}
public Product CurrentProduct {get; set;}
public string FirstName {get; set;}
public string LastName {get; set;}
}
 
Now I binding a list of customers to the grid and displaying Product Info too. But how do I do an aggregate function? Normally I would put Amount as the source field for the function.
Dimitrina
Telerik team
 answered on 06 Jan 2012
1 answer
134 views
When trying to recreate the demo using my own data model, I'm getting an error when I try to use the ObjectContext in xaml.

How do you get around the issue of the visual studio designer trying to instantiate an object context at design time?
Rossen Hristov
Telerik team
 answered on 06 Jan 2012
1 answer
194 views
hi all
how can use custom format like this:
##/####/####
in first place only can enter numbers between 10 to 45
in second place only can enter numbers between 1025 to 7850
in third place only can 3000 to 8000
any one can help?
thankful.
Petar Mladenov
Telerik team
 answered on 06 Jan 2012
1 answer
91 views
Hello,

I am working in .net 3.5. I am unable to create a RadRichTextBox in my current project since I do not have the System.ComponentModel.Composition assembly referenced. According to the FAQ for RadRichTextBox, this assembly is distributed in the binaries directory; however, I am unable to find this assembly there. Which file do I need to use to reference this assembly?

Thanks!
Mike
Boby
Telerik team
 answered on 06 Jan 2012
3 answers
246 views
Hi,

I am new to using Telerik controls
 
Requirement
  • I am having two header panel (Customer,Salary)
  • under that many items are displaying without any issue
  • i want to collapse/expand the Customer header panel and it's items as a default selection when the page is loaded. 

For More details please see the attached image the Breverage header should be automatically collapsed like that i need...

      
How to acheive this.
My code is as below

<HierarchicalDataTemplate x:Key="availablePresetsTemplate" ItemsSource="{Binding Values}"
                                            ItemTemplate="{StaticResource presetTemplate}">          
<TextBlock Text="{Binding Path=Name}"/>            
</HierarchicalDataTemplate>
  
<telerik:RadPanelBar 
            x:Name="panelBar"
            Grid.Column="0" Grid.Row="1"            
            SelectionMode="Extended"
           IsLoadOnDemandEnabled="True"
            ScrollViewer.HorizontalScrollBarVisibility="Disabled"
            ItemsSource="{Binding AvailableRoles}"
            ItemTemplate="{StaticResource availablePresetsTemplate}"
            HorizontalAlignment="Stretch"/>

 

Thanks in Advance..

Petar Mladenov
Telerik team
 answered on 06 Jan 2012
1 answer
91 views
Hi,

When you set DataLoadMode to Async, and try to expand any item the scroller always gets reset and scrolls to top. This is really annoying, can you confirm this is a bug please, and not something "by design"?

Also can you propose a solution, please?

Kind Regards,

Ivan Zlatanov.
Dimitrina
Telerik team
 answered on 06 Jan 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?