Telerik Forums
UI for WPF Forum
1 answer
118 views
The WPF Controls Examples contains examples for it but they will never load. All other examples do load.

Also it does not seem to exist in the library:
Error    1    The tag 'RadNumericUpDown' does not exist in XML namespace 'http://schemas.telerik.com/2008/xaml/presentation'.
Wouter
Top achievements
Rank 1
 answered on 28 Aug 2013
1 answer
210 views
Hello,

I am trying to get Drag and Drop to work within a single RadListBox.  I have the ItemsSource and SelectedItem bound (TwoWay).  Whenever I drop an item within the listbox, the SelectedItem setter gets called with a value of null.  I was able to reproduce this by updating the SDK sample "CustomListBoxDragDropBehavior_WPF" with the following:

<telerik:RadListBox ItemContainerStyle="{StaticResource DraggableListBoxItem}"
                            ItemsSource="{Binding Customers1}"
                            SelectedItem="{Binding SelectedCustomer1, Mode=TwoWay}"
private Customer selectedCustomer1;
        public Customer SelectedCustomer1
        {
            get { return selectedCustomer1; }
            set
            {
                selectedCustomer1 = value;
                this.OnPropertyChanged(() => this.SelectedCustomer1);
            }
        }

How do I prevent the selected item to be called with null?

Thanks,
Steve
Kalin
Telerik team
 answered on 28 Aug 2013
5 answers
743 views
Hello,

I have vector Icon like that :
<ControlTemplate x:Key="AboutImage">
  <Viewbox Stretch="Uniform">
    <Canvas Width="512" Height="512">
      <Rectangle Canvas.Left="0" Canvas.Top="0" Width="512" Height="512" Fill="{TemplateBinding Background}"/>
      <Path Data="..."  Fill="{TemplateBinding Foreground}"/>
    </Canvas>
  </Viewbox>
</ControlTemplate>

How can I use this with RadRibbonButton ?

Thank you

Ilya
Top achievements
Rank 1
 answered on 28 Aug 2013
0 answers
114 views
Hi Telerik Support,
     After viewing demos, I chose variant with Virtualization, because I need to add some properties dynamically (for example, GroupName). So I have Dictionary<string, object> with PropertyName and Value in ViewModel, which is  bound to RadPropertyGrid.Item. Please, advise how to do this using MVVM patern?

Regards,
Anatoliy

Anatoliy
Top achievements
Rank 2
 asked on 28 Aug 2013
1 answer
239 views
when i am double click on the my rad window top of header its when to resize model i need to stop this  i need Maximized window
here is my code

                    xmlns:navigation="clr-namespace:Telerik.Windows.Controls.Navigation;assembly=Telerik.Windows.Controls.Navigation"
                    navigation:RadWindowInteropHelper.AllowTransparency="False"
                   
                   
                   telerik:Theming.Theme="Vista" Header=""              
                   MinHeight="600" MinWidth="800"   Loaded="Main_Loaded" ResizeMode="NoResize"
                   CanClose="False" CanMove="False"  BorderThickness="1" WindowStartupLocation="CenterScreen"
                   IsRestricted="False" RestoreMinimizedLocation="False"
                   Style="{DynamicResource AppFontSize}" WindowState="Maximized" SizeToContent="False"
Kalin
Telerik team
 answered on 28 Aug 2013
3 answers
100 views
Hi,

I am creating a Silverlight project with the intent to be linked from WPF project as well. Here is the issue I am facing described in StackOverflow question 

<telerik:Tile TileType="Single" Width="Auto" Background="#FF559B55" Name="tile1" 
                                      FontWeight="Bold" FontFamily="Verdana">


                                <Button Content = {Binding Path=MyRVal} Click="btClick" Foreground="Black">
                                   </Button>         

</telerik:Tile>
This works fine in Silverlight project, but the button does not show in WPF. I noticed this only happens when there is Binding instead of static, does WPF not handle this?
I know this might not be Telerik issue, but I wanted to ask and maybe get suggestions of how to have a Button or other control (with Binding) within a Tile working both in Silverlight and WPF.

Thanks
Maya
Telerik team
 answered on 28 Aug 2013
3 answers
214 views
Hi,

My RadGridView doesn't refresh completely after scrolling through the columns, some of the cells still shows old cell values after scrolling. This happens if I scroll fast from left to right and right to left. My grid is UI virtualized. What's causing this issue?

Thanks,
Karthik
Vera
Telerik team
 answered on 28 Aug 2013
1 answer
204 views
Hi, 

i'm using the RadMaskedTextInput with NotifyOnValidationError and it works great. Currently it displays the message beside the textbox, but i need to show the error message below the textbox, how can i achieve this?
Pavel R. Pavlov
Telerik team
 answered on 27 Aug 2013
1 answer
115 views
Hi,

I am developing a application for a customer using telerik comoponents - so we tought we can use telerik GridView at the beginning it was ok but after i applied the windows8 theme the performnace is dead.

Here are a few hints which kills the performance:
* When the grid gets the FrameworkElement.Unloaded event it consumes too much time accessing hashCode
Please check the function "private void OnUnloaded(object sender, RoutedEventArgs e)" inside GridViewDataControl.cs line 202
The problem is that we have a nested loop where we iterate through a IDictionary<object, IEnumerable<IDisposable>> - please add the possibility to disable this behaviour (I see its only enabled when WPF is used) - i am good if the GC takes care of.

* Inside ClearIctdSubscriptions (GridViewDataControl) you call containskey on a map and than access it with a indexer this means we search twice - why do you guys do not use TryGetValue there?
And again stop calling dispose there on each element which consumes to much time if we want to switch fast between views

How to reproduce it
1) Telerik.Windows.Controls.StyleManager.ApplicationTheme = new Telerik.Windows.Controls.Windows8Theme();
2) Create a custom object and populate the grid with 10 items (yes thats enough to see the lag)


Nedyalko Nikolov
Telerik team
 answered on 27 Aug 2013
3 answers
363 views
Hi there,

I'm trying to assign resources to appointments in the code behind. When I assign them, the appointment displays the correct resource when I edit the appointment, however the appointment itself is displayed in the blank resource column.

Here is the XAML:
<telerik:RadScheduleView x:Name="ScheduleView" SnapAppointments="True">
    <telerik:RadScheduleView.ResourceTypesSource>
        <telerik:ResourceTypeCollection>
            <telerik:ResourceType DisplayName="Room" Name="Room">
                <telerik:Resource DisplayName="Room 1" ResourceName="Room 1" ResourceType="Room"/>
                <telerik:Resource DisplayName="Room 2" ResourceName="Room 2" ResourceType="Room"/>
            </telerik:ResourceType>
        </telerik:ResourceTypeCollection>               
    </telerik:RadScheduleView.ResourceTypesSource>
    <telerik:RadScheduleView.GroupDescriptionsSource>
        <telerik:GroupDescriptionCollection>
            <telerik:ResourceGroupDescription ResourceType="Room" ShowNullGroup="True"/>
        </telerik:GroupDescriptionCollection>
    </telerik:RadScheduleView.GroupDescriptionsSource>
    <telerik:RadScheduleView.ViewDefinitions>
        <telerik:DayViewDefinition DayStartTime="7:00" DayEndTime="19:00" MajorTickLength="1h" MinorTickLength="10min"/>
        <telerik:WeekViewDefinition DayStartTime="7:00" DayEndTime="19:00"/>
    </telerik:RadScheduleView.ViewDefinitions>
</telerik:RadScheduleView>

And here is the code behind:
private ObservableCollection<Appointment> appointments;
void ExamRoomScheduler_Loaded(object sender, RoutedEventArgs e)
{           
    appointments = new ObservableCollection<Appointment>();
    ScheduleView.AppointmentsSource = appointments;
 
    ExamRoomAppointment temp;
 
    temp = new ExamRoomAppointment("Test", DateTime.Now, DateTime.Now.AddMinutes(20), "Room 1");
    appointments.Add(temp);           
    temp.Resources.Add(new Resource() { ResourceType = "Room", ResourceName = "Room 1", DisplayName = "Room 1" });
}

ExamRoomAppointment inherits from Appointment.

I must be doing something wrong here but I can't seem to figure it out!

Thanks,
Anthony
Kalin
Telerik team
 answered on 27 Aug 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
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
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
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?