Telerik Forums
UI for WPF Forum
4 answers
145 views
I have a QueryableDataServiceCollectionView bound to a RadGridView and RadDataPager. Working good so far. Except, when I try to pop down the filtering menu, I get a Distinct is not supported error from WCF Data Services. Which makes a lot of sense. WCF Data Services doesn't support Distinct.

So why are you guys trying to use Distinct? The control should be smart enough to know that it's not supported, and do it some other way... 
Jerome
Top achievements
Rank 1
 answered on 11 Jan 2013
2 answers
121 views
I have been having some issues trying to use an impersonated application with telerik controls in it, especially the RadGridView.

It shows a access denied in one of the resources for the grid.

I have linked to a sample project where you can test it. It requires that someone with no access to the current PC login through the application.

It uses windows authentication for the credentials.

Here is the sample code 
http://sdrv.ms/SSQ3UD 

Thanks for your help

Ramiro
Top achievements
Rank 1
 answered on 11 Jan 2013
1 answer
112 views

Hi,

Below error is seen after upgrading to latest Telerik Release 2012.3.1207.40

"Recursive call to Automation Peer API is not valid."

Call Stack location

Telerik.Windows.Controls.Navigation.dll!Telerik.Windows.Controls.RadOutlookBarAutomationPeer.GetChildrenCore() Line 88 + 0x9 bytes.

Kindly advise whether there is going to be any fix for this sooner/ or any work around / use the previous version.

Thank you,
Phani.
Phani Kumar
Top achievements
Rank 1
 answered on 11 Jan 2013
2 answers
66 views
I have a RadPanel which won't float when you right click its header and click "Float".  CanFloat is true.

Has anyone encountered this?

Chris
Christopher
Top achievements
Rank 1
 answered on 11 Jan 2013
1 answer
96 views
(sorry for my bad english)

With a List<T> where T is:

class Data
{
    public string Product { get; set; }
    public decimal Quantity { get; set; }
    public decimal Reserved { get; set; }
}

how can I create a chart like the image attached?

Looking on the sample it is clear that if I create 2 collections, one returning Product/Quantity and another returning Product/Reserved, I can accomplish that. But is it possible with only one collection with all the data?
Missing User
 answered on 11 Jan 2013
1 answer
151 views
The Working with RadSplitButton Items webpage shows a DefaultItem property for RadSplitButton. Is this available in the WPF RadSplitButton? It doesn't appear so.

I have the need for this functionality in our MVVM WPF application (using Caliburn Micro as our MVVM framework).

In the Style for this control, I can set a property as shown below:

<Setter Property="cal:Message.Attach" Value="[Event Click]=[Action CreateNewLink2]"/>

CreateNewLink2 is fired when I click the button without dropping down the control, but if I create a guard property for this method, the entire control is disabled. I need the dropdown to dropdown even when the guard property prevents executing the command (CreateNewLink2) since there are commands on the dropdown that can be enabled even when the CreateNewLink2 (command for the button) is disabled.

Can this be done?
Pavel R. Pavlov
Telerik team
 answered on 11 Jan 2013
1 answer
254 views
Hi,

I try to build a layout defined in the sample image attached.
The principle is that each module has a fixed position, but the size can be changed by the user, in a min / max range.

Here is my code :
<Window x:Class="WpfApplication2.MainWindow"
        Title="MainWindow">
    <Window.Resources>
        <Style x:Key="DefaultRadPaneStyle"
               TargetType="telerik:RadPane">
            <Setter Property="Focusable"
                    Value="False" />
            <Setter Property="PaneHeaderVisibility"
                    Value="Collapsed" />
            <Setter Property="CanUserClose"
                    Value="False" />
            <Setter Property="CanFloat"
                    Value="False" />
            <Setter Property="CanDockInDocumentHost"
                    Value="False" />
            <Setter Property="CanUserPin"
                    Value="False" />
            <Setter Property="IsPinned"
                    Value="True" />
            <Setter Property="ContextMenuTemplate"
                    Value="{x:Null}" />
        </Style>
    </Window.Resources>
    <Grid>
        <telerik:RadDocking x:Name="docking"
                            AllowUnsafeMode="True">
            <telerik:RadDocking.DocumentHost>
                <Grid />
            </telerik:RadDocking.DocumentHost>
            <telerik:RadSplitContainer Orientation="Vertical"
                                       InitialPosition="DockedLeft"
                                       Width="300"
                                       MinWidth="100"
                                       MaxWidth="400">
                <telerik:RadPaneGroup MinHeight="100"
                                      MaxHeight="300">
                    <telerik:RadPane Style="{StaticResource DefaultRadPaneStyle}" />
                </telerik:RadPaneGroup>
                <telerik:RadPaneGroup>
                    <telerik:RadPane Style="{StaticResource DefaultRadPaneStyle}" />
                </telerik:RadPaneGroup>
                <telerik:RadPaneGroup>
                    <telerik:RadPane Style="{StaticResource DefaultRadPaneStyle}" />
                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
            <telerik:RadSplitContainer Orientation="Horizontal"
                                       InitialPosition="DockedBottom"
                                       Height="300"
                                       MinHeight="100"
                                       MaxHeight="400">
                <telerik:RadPaneGroup>
                    <telerik:RadPane Style="{StaticResource DefaultRadPaneStyle}">
                    </telerik:RadPane>
                </telerik:RadPaneGroup>
                <telerik:RadPaneGroup>
                    <telerik:RadPane Style="{StaticResource DefaultRadPaneStyle}">
                    </telerik:RadPane>
                </telerik:RadPaneGroup>
                <telerik:RadPaneGroup>
                    <telerik:RadPane Style="{StaticResource DefaultRadPaneStyle}">
                    </telerik:RadPane>
                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
        </telerik:RadDocking>
    </Grid>
</Window>

Is this the good way to achieve this?
How can I specify the min and max size (height or width) for the RadPaneGroup ? (the given example has unexpected behaviour, as in the second capture)

Regards
Philippe


Vladi
Telerik team
 answered on 11 Jan 2013
5 answers
409 views
I have a RadSplitButton on my form.  The RadSplitButton's DropDownContent contains a RadContextMenu.  Here's a snippet of the xaml:

<telerik:RadSplitButton Background="{DynamicResource ButtonBackground}"
                        Click="MisreadButton_Click"
                        CloseOnEscape="False"
                        Content="INCORRECT"
                        DropDownIndicatorVisibility="Visible"
                        DropDownPlacement="Top"
                        FontSize="20"
                        FontWeight="Bold"
                        Foreground="{DynamicResource ButtonForeground}"
                        Height="60"
                        HorizontalAlignment="Right"
                        IsEnabled="False"
                        Margin="10"
                        Name="IncorrectButton"
                        VerticalAlignment="Center"
                        Width="200">
    <telerik:RadSplitButton.DropDownContent>
        <tl:RadContextMenu DisplayMemberPath="Value"
                           ItemsSource="{Binding Path=RejectionReasons, RelativeSource={RelativeSource AncestorType={x:Type c:AlarmsDialog}}}"
                           tl:RadMenuItem.Click="RadContextMenu_ItemClick" />
        </telerik:RadSplitButton.DropDownContent>
</telerik:RadSplitButton>
In the Window's constructor, after calling InitializeComponent, I create an ObservableCollection and assign it to RejectionReasons.  I then populate that ObservableCollection with ItemChoice objects:

public class ItemChoice<TKey> : INotifyPropertyChanged {
      
    private TKey iKey;
    public TKey Key {
        get { return iKey; }
        set {
            iKey = value;
            if ( PropertyChanged != null ) {
                PropertyChangedEventArgs e = new PropertyChangedEventArgs( "Key" );
                PropertyChanged( this, e );
            }
        }
    }
  
    private string iValue = string.Empty;
    public string Value {
        get { return iValue; }
        set {
            iValue = value;
            if ( PropertyChanged != null ) {
                PropertyChangedEventArgs e = new PropertyChangedEventArgs( "Value" );
                PropertyChanged( this, e );
            }
        }
    }
  
    public ItemChoice() {}
  
    public ItemChoice( TKey key, string value ) {
        Key = key;
        Value = value;
    }
  
    public ItemChoice( KeyValuePair<TKey, string> item ) {
        Key = item.Key;
        Value = item.Value;
    }
  
    public override string ToString() {
        return Value.ToString();
    }
  
    public static explicit operator KeyValuePair<TKey, string>( ItemChoice<TKey> item ) {
        return new KeyValuePair<TKey, string>( item.Key, item.Value );
    }
  
    public event PropertyChangedEventHandler  PropertyChanged;
}
 
But the RadContextMenu's Items collection remains empty, even after I populate the collection.  I use this same ItemChoice class with ComboBoxes and ListBoxes and it works fine.  What am I doing wrong?

Also, in my RadMenuItem.Click handler, how do I get a reference to the ItemChoice that generated the RadMenuItem?  It's not at all clear to me from the properties that are available in that class.

Tony
Tina Stancheva
Telerik team
 answered on 11 Jan 2013
1 answer
111 views
Hi we are having some performance problems with using a few instances of the scheduleView.
How can I send you a demo project which demonstrates the problem?
TNX
Vladi
Telerik team
 answered on 11 Jan 2013
1 answer
190 views
Hi,

We are on the design stage for a WPF Prism application, and we want to provide an editor functionality similar to MS Word in one of our modules. We have a toolbar region in the top of the page that should load the module containing the RadRichTextBoxRibbonUI, and a content region in the middle of the screen that should load the module containing the RadRichTextbox for editing. So the Rich Textbox and its Ribbon are in 2 separate module for loose coupling. In the WPF demo examples, the commands in Ribbon are bound the RichTextbox in XAML (i.e. DataContext and Commands). Is there any suggestion how can we implement our design? Can we pass a reference of the RichTextbox and do the necessary binding in the code at load time of the ribbon?

Any hints would be appreciated!

Regards
Boby
Telerik team
 answered on 11 Jan 2013
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
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?