Telerik Forums
UI for WPF Forum
3 answers
69 views
Hi,

I have a RadTreeListView (version 2011.2.712.35) whose ItemsSource is a custom implementation of INotifyCollectionChanged. The custom version is intended to be more efficient than ObservableCollection by bundling multiple sequential Adds or Removes into a single NotifyCollectionChanged event. The single event has a list of NewItems or OldItems with more than one item in it.

The RadTreeListView seems unable to handle this event correctly. In response to an Add event with two items, it only updates the display with the first of the items. In response to an Add event with 5 items, only the first two appear in the display.

Is this a known problem? Has it been fixed in a later version than the one I have?

Thanks,
   Bob
Pavel Pavlov
Telerik team
 answered on 02 May 2012
1 answer
224 views
I've got a listBox initialised with the following:

lbxFunction.ItemsSource = Enum.GetValues(typeof(ChartAggregateFunction));

How do I disable certain ListBox items?

I tried:

((RadListBoxItem)lbxFunction.Items[0]).IsEnabled = false;

I get an error.

Any solutions will be appreciated.
Oliver
Top achievements
Rank 1
 answered on 02 May 2012
4 answers
163 views
Hi,

When the RadRibbonView.IsMinimized is set to true the ribbon is minimized. Clicking on a tab opens a popup to display the group and items.  Is there a way to dismiss the popup when a user clicks on an item in the tab, similar to the behavior in Microsoft's ribbon? Currently, only when the user clicks outside of the tab, the popup will go away and return to the minimized ribbon state.  I found the RadRibbonView.IsMinimizedPopupOpen, but this property cannot be set.  Any ideas?

Thanks,
Trang
Trang
Top achievements
Rank 1
 answered on 01 May 2012
5 answers
267 views

I played with the sample for the RadRibbon in MVVM.
There is an example of DataTemplate for the RadRibbonSplitButton.
However, the sample is not complete and does not show how to bind "Contextual" items of the RadRibbonSplitButton.

I tried this

<DataTemplate x:Key="MenuItemTemplate">
    <TextBlock Text="{Binding Text}" />
</DataTemplate>
  
<DataTemplate x:Key="SplitButtonTemplate">
    <telerik:RadRibbonSplitButton 
            Text="{Binding Text}" 
            Size="{Binding Size}"
            SmallImage="{Binding SmallImage}" 
            LargeImage="{Binding LargeImage}">
        <telerik:RadRibbonSplitButton.DropDownContent>
            <telerik:RadContextMenu 
                    ItemTemplate="{StaticResource MenuItemTemplate}" 
                    ItemsSource="{Binding SplitSubButtons}" VerticalAlignment="Top">
                <telerik:RadContextMenu.ItemContainerStyle>
                    <Style TargetType="telerik:RadMenuItem">
                        <Setter Property="Icon">
                            <Setter.Value>
                                <Image Source="{Binding Path=SmallImage}"/>
                            </Setter.Value>
                        </Setter>
                    </Style>
                </telerik:RadContextMenu.ItemContainerStyle>
            </telerik:RadContextMenu>
        </telerik:RadRibbonSplitButton.DropDownContent>
    </telerik:RadRibbonSplitButton>
</DataTemplate>

As soon as I have more that one item, only the last icon is shown.

Any advice?

Regards,

Nic
Trang
Top achievements
Rank 1
 answered on 01 May 2012
1 answer
185 views
Hello,

I'm trying to make my gauge resmeble something like this: http://i48.tinypic.com/20qf5d.jpg but I'm having a couple of issues.

- How can I center the pin point and hold a textblock / label within it?
- How to add custom labels (e.g. just have 0 Min / 1 Hour)
- As you can see in my code below I have a bar indicator but for some reason it dosen't show up

Here is my code so far:

<telerik:RadRadialGauge Width="420" Height="300" telerik:StyleManager.Theme="Metro">
 
    <telerik:RadialScale Min="0" Max="60" LabelRotationMode="None" LabelOffset="0.1" RangeLocation="Outside" MajorTickLocation="OverCenter"
     MajorTickBackground="#FFE7F1F6" MinorTickBackground="#FFE7F1F6" MiddleTickBackground="#FFE7F1F6" MajorTickStep="10" LabelLocation="Outside" Fill="#FFE7F1F6">
 
        <telerik:RadialScale.Indicators>
             
            <telerik:BarIndicator x:Name="radialBar" Value="30" Background="#66bc29"
            telerik:ScaleObject.Location="Outside" telerik:ScaleObject.Offset="0.5" />
 
            <telerik:Pinpoint Background="#79a9c0" BorderBrush="#FFF7F9FB"
            MinWidth="125" MinHeight="125" HorizontalContentAlignment="Center"
            VerticalContentAlignment="Center" StrokeThickness="5" Margin="0" Padding="0" />
 
        </telerik:RadialScale.Indicators>
 
    </telerik:RadialScale>
 
</telerik:RadRadialGauge>

And here is how it looks so far: http://i45.tinypic.com/2po7cj6.jpg

It's getting there slowly so would appreciate some help on my questions above!
Craig Mellon
Top achievements
Rank 1
 answered on 01 May 2012
5 answers
144 views
Hi,

I have Gridview that is abound to a collection of object “Benefit”, which has an Amount (decimal) that I would like to group on it is value. I have ranges with a text value that returns the corresponding range for that amount

Less than 100
100 – 250
250 – 500
Greater than 500

When I apply a group descriptor, the grouping occurs on these text vales, but it is sorted alphabetically. How can control the sorting of the group itself? I can convert that Range property to return integer value, but I still want to display the group text as above. I tried the Generic Group Descriptor <TElement, TKey, TSortKey> but didn’t help.

How can resolve this?

Cheers

Dimitrina
Telerik team
 answered on 01 May 2012
6 answers
534 views
Hello,

is it possible so validation error on RadMaskedCurrencyInput appears as tool tip and not after the control.

On the attached image desired effect is on the bottom.
Michael
Top achievements
Rank 1
 answered on 01 May 2012
1 answer
123 views
Hi all
I have placed RadDocking inside the ScrollViewer. As the height of the RadDocking increases, RootCompass's Left Indicator goes out of the screen.
Thanks
 Deepak
Georgi
Telerik team
 answered on 01 May 2012
2 answers
265 views
I'm using context menu with checkable items. In order to meet UI design requirements I need to use custom icons for checked items instead of check mark. Please look at attached screen shot.

Current behavior:

- If item is checked then default check mark is displayed and it can't be changed.
- If item is not checked Icon image is displayed.

Expected behavior:

- If item is checked custom image is used instead of check mark (or some frame is drawn around icon - see green arrow).
- If item is not checked then defalt icon is displayed.

Looking forward for your response.
Yana
Telerik team
 answered on 01 May 2012
3 answers
143 views
Hi,

I am trying to use timeline component, and here is what I write in (view) xaml file,

<telerik:RadTimeline Height="80"
                     PeriodStart="{Binding StartDate, Mode=TwoWay}"
                     PeriodEnd="{Binding EndDate, Mode=TwoWay}"
                     VisiblePeriodStart="{Binding VisibleStart, Mode=TwoWay}"
                     VisiblePeriodEnd="{Binding VisibleEnd, Mode=TwoWay}"
                     StartPath="Date"
                     DurationPath="Duration"
                     ItemsSource="{Binding Results}">

and in the (view model) code behind,
private void InitTimeRange()
{
    StartDate = DateTime.Today;
    EndDate = StartDate.AddDays(1);
 
    DateTime now = DateTime.Now;
    VisibleStart = now.AddMinutes(-30);
    VisibleEnd = now.AddMinutes(30);
}

and turns out the VisibleStart is forced to set as StartDate, it looks like be changed at 
TimeBarBase.CoerceVisiblePeriod(),
while VisibleEnd seems to be correct, 

is it a calling sequence issue here? how can I fix this?

Thanks


Tsvetie
Telerik team
 answered on 01 May 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?