Telerik Forums
UI for WPF Forum
2 answers
86 views
i'm trying to do as the second example in here, but with no luck.

i have an x axis that is of type xcategory,
y1 that is of type yvalue,  
y2 that is of type yvalue and
group of type xcategory (that contains 2 categories)
the legend display the following: 
y1 
y1
y2
y2
i would like the legend to display the y axis with the appropriate xcategory:
y1 category 1
y1 category 2
y2 category 1
y2 category 2
is it possible???
Rachel
Top achievements
Rank 1
 answered on 24 Aug 2010
1 answer
154 views

Hi

The following little example should illustrate my problem.

I have three classes in my system:

1. Class Person
  - Name
  - Age.

2. Class Student : Person (Inherites from Person)
  - Grade

3. Class Teacher : Person (Inherites from Person)
  - Wage level

My system holds a complete list of Teachers and students like

  ObservableCollection<Person>

I have different kinds of GUI controls (listview and radCarousel sofar) that binds to this collection. If I use the radFilterData component in source mode then I see only Name and Age in the field selector. I want to be able to see Name, Age, Grade, Wage level eventhough some of them only makes sence according a specific person type. I use ItemProperties and non source mode to archieve that.

My problem is that I am a little bit confused how to do the rest. I have seen the Domain examples but doesn't guite get it. I assume I have to handle this event:

  radDataFilter.FilterDescriptors.CollectionChanged += this.OnRadDataFilterDescriptorsChanged;

But how should I do that. I should also say that I have already implemented sorting and grouping using the

  CollectionViewSource.GetDefaultView

Hopefully I will be able to have sorting, grouping and filtering working side by side. 

Rossen Hristov
Telerik team
 answered on 24 Aug 2010
4 answers
171 views
Hello

I use  the RadPanelBar control
I build the hirarchy in the xaml page
some of the items have no children but thy still have the arrow (<) in the side
how can I remove it?

here is the code
<telerikNavigation:RadPanelBar x:Name="pb" Margin="5" Width="180" BorderBrush="#9098a3" 
                    BorderThickness="1" HorizontalAlignment="Left" ExpandMode="Multiple">  
            <telerikNavigation:RadPanelBarItem> 
                <telerikNavigation:RadPanelBarItem.Header> 
                    <TextBlock Text="מבט ×¢× ×£" Height="13" Margin="5 2 5 2" /> 
                </telerikNavigation:RadPanelBarItem.Header> 
                <telerikNavigation:RadPanelBarItem Header="תוכניות ×¢×‘ודה" /> 
                <telerikNavigation:RadPanelBarItem Header="ממתינות ×œ×ª×§×¦×•ב" /> 
                <telerikNavigation:RadPanelBarItem Header="הצעות ×œ×ª×•כנית" /> 
            </telerikNavigation:RadPanelBarItem> 
            <telerikNavigation:RadPanelBarItem> 
                <telerikNavigation:RadPanelBarItem.Header> 
                    <TextBlock Text="מבט ×ž×—לקה" Height="13" Margin="5 2 5 2" /> 
                </telerikNavigation:RadPanelBarItem.Header> 
                    <telerikNavigation:RadPanelBarItem Header="תוכניות ×¢×‘ודה" /> 
                    <telerikNavigation:RadPanelBarItem Header="ממתינות ×œ×ª×§×¦×•ב" /> 
                    <telerikNavigation:RadPanelBarItem Header="הצעות ×œ×ª×•כנית" /> 
                </telerikNavigation:RadPanelBarItem> 
                        <telerikNavigation:RadPanelBarItem IsEnabled="True">         
                    <telerikNavigation:RadPanelBarItem.Header> 
                        <TextBlock Text="ניהול ×”מערכת" Height="13" Margin="5 2 5 2" /> 
                    </telerikNavigation:RadPanelBarItem.Header> 
                </telerikNavigation:RadPanelBarItem> 
             
        </telerikNavigation:RadPanelBar> 

Thanks.
Tina Stancheva
Telerik team
 answered on 24 Aug 2010
2 answers
114 views
I started with the Telerik WPF Q2 2010 examples.
I went to Controls -> DATA -> GridView -> Appearance -> Custom Row Layout

I am using a slightly modified version of this now.  What I want is to change the four gradient stops for the main row background dynamically based on object properties of the binding.  The problem is that my template is 75 lines long and I think it seems very inefficient to duplicate this six times (for siz possible gradient values) and use a TemplateSelector.  Instead I'd like to modify the border background property.

Here's a small snippet of code:

<ControlTemplate x:Key="TCCustomRowTemplate" TargetType="telerik:GridViewRow">
    <Border x:Name="rowsContainer" Background="#FF525252" Padding="8,8,8,0" >
        <Border x:Name="selectedRow" BorderThickness="1" BorderBrush="#FF000000" 
            Background
="{StaticResource TC_INRowBackgroundSelected}>

How can I modify this background to be a different static resource dependant on my object?

Milan
Telerik team
 answered on 24 Aug 2010
1 answer
220 views
Hi 
I've modified the TabControl but would like to force the scrollviewer repeat buttons to scroll one full tab at a time but cannot find a way to do this.

I thought I might be able to add something like Command="ScrollBar.LineDownCommand" to the repeat button - no joy though!

Any help would be much appreciated.

Tina Stancheva
Telerik team
 answered on 23 Aug 2010
1 answer
74 views
Hi,
I am trying to Wrap RadOutlookBar and make MYOUTLOOKBAR so that i can expose only few properties in MYOUTLOOKBAR.
In this senario i need to add radoutlookbarItems to MYOUTLOOKBAR.

Even if i add MYoutlookbarItem to MYOUTLOOKBAR ..In xaml i was able to look at the change.
But in design i  dont see any Item getting added to the Outlookbar.

if add content to this Newly added MYOutlookBarItem from properties tab, i get  an error message saying that

"Property Value is not Valid"
(in detail: Property "content" does not support string to value conversation)

How to add items to outlookbar so that the items of the outlookbar should support exposed properties of radoutlookbar control?

Here is an example code...for Items property of MyOutlookbar.cs

#region

 

 

Property: Items

 

 

 

private MYOutlookBarItemCollection _items;

 

 

 

public MYOutlookBarItemCollection Items

 

{

 

 

get

 

 

 

 

{

 

 

if (_items == null)

 

{

_items =

 

new MYOutlookBarItemCollection ();

 

}

 

 

return _items;

 

}

}

 

 

#endregion

 

 

 

 

 

 

The above code exposes the items property in MYoutlookbar


MYOutlookBarItemCollection.cs will be a separate will which contains
public class MYOutlookBarItemCollection: ObservableCollection<MYOutlookBarItem>

 

{

}

 

 

 


Here is an example code...for content property of MyOutlookbarItem.cs


#region

 

 

Property: Content

 

 

 

public object Content

 

{

 

 

get { return (object)GetValue(ContentProperty); }

 

 

 

set { SetValue(ContentProperty, value); }

 

}

 

 

public static readonly DependencyProperty ContentProperty =

 

 

 

DependencyProperty.Register(

 

 

 

"Content", typeof(object), typeof(MyOutlookBarItem),

 

 

 

new FrameworkPropertyMetadata

 

{

PropertyChangedCallback = (obj, e) =>

{

(obj

 

as MyOutlookBarItem).UpdateContent((object)e.NewValue);

 

}

});

 

 

private void UpdateContent(object sel)

 

{

OutlookBarItem.Content = sel;

}

#endregion

 Can you guys help me..

Thanks,
Deepz

Tina Stancheva
Telerik team
 answered on 23 Aug 2010
3 answers
155 views
Hello,

The ItemTemplateSelector  for the RadTileView does not seem to be working. I can set the property and it is set correctly, but it does not run the SelectTemplate Method. I am using the current Build (0714).

Would someone send code that works with this in the current version?

Thanks,
Matt
Tina Stancheva
Telerik team
 answered on 23 Aug 2010
3 answers
258 views

I am using a heirarchical grid and there are times the childGrid could be null. how to check that condition?

 

GridViewRow

 

grdRow = (GridViewRow)grdCell.ParentRow;

 

 

RadGridView

 

childGrid = grdRow.ChildrenOfType<RadGridView>().FirstOrDefault();


Please let me know

Thanks
Sathish.K

 

Milan
Telerik team
 answered on 23 Aug 2010
4 answers
287 views

I currently have a Loop going through a cube which returns the name (Caption) of its items.
However as this is an OLAP cube I want to distinguish between user defined and attribute hierarchies. I thought the best way to do this would be to give each one a different color (so give User Defined Hierarchies a blue font and Attribute Hierarchies a red font for example).

I thought this would be simple but the method I tried below threw alot of errors, while other methods turned all of the items a particular colour rather than just the items I wanted.

Has anyone got an idea of how I could change an items colour depending on its value??


Window1.xaml.cs

foreach (Hierarchy hierarchy in dimension.Hierarchies)
                {

                    Dimension HierarchyItem = new Dimension();
                    HierarchyItem.Caption = hierarchy.Caption;
                    DimensionItem.SubDimensions.Add(HierarchyItem);
                    HierarchyItem.IsDraggable = true;

              
if (HierarchyItem.Caption == "Account Number")
                        HierarchyItem.Caption = Brushes.Red)
                        else if (HierarchyItem.Caption == "Customer Number")
                        HierarchyItem.Caption = Brushes.Blue)

James
Top achievements
Rank 1
 answered on 23 Aug 2010
1 answer
153 views
I am using percentages in my graphs but the y-axis label as well as the item labels show 100% as 100.00% or 95% as 95.00%. Is there a way to make it show only whole numbers?

Thanks,

Billy Jacobs
Sia
Telerik team
 answered on 23 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?