Telerik Forums
UI for WPF Forum
2 answers
112 views
Hi All,

We are currently writing a proposal and were wondering whether RadGridView supports the following functionality. We have a value that we want displayed in a cell within a grid, this value can be updated in three ways (a calculation will convert the value into the displayed value). To do this, we were hoping that the grid would let us click on the cell and display a popup overlay with three textboxes (and three labels), depending on which value the user modifies, the others are updated. The user interface would be something similar to what happens in teampulse:

https://www.dropbox.com/s/1082ugip3i2on4m/Screenshot%202014-06-20%2014.20.41.png

Is this remotely possible?

Thanks,
Daryl


Nick
Telerik team
 answered on 24 Jun 2014
3 answers
141 views
Based on the example on http://www.telerik.com/help/wpf/styling-apperance-themes-runtime.html

When using styles based on Telerik ones (these styles are merged with the app resources every time the theme changes):

Content of MyStyles.xaml
                    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
 
    <Style TargetType="{x:Type telerik:RadButton}" x:Key="BT" BasedOn="{StaticResource RadButtonStyle}">
        <Setter Property="Height" Value="40"/>
    </Style>
 
    <Style TargetType="{x:Type telerik:RadButton}" BasedOn="{StaticResource RadButtonStyle}">
        <Setter Property="Margin" Value="5"/>
        <Setter Property="Height" Value="30"/>
    </Style>
 
 
</ResourceDictionary>

and code to change the theme 

private void Windows7_Click(object sender, RoutedEventArgs e)
        {
            Application.Current.Resources.MergedDictionaries.Clear();
            Application.Current.Resources.MergedDictionaries.Add(new ResourceDictionary()
            {
                Source = new Uri("/Telerik.Windows.Themes.Windows7;component/Themes/System.Windows.xaml", UriKind.RelativeOrAbsolute)
            });
            Application.Current.Resources.MergedDictionaries.Add(new ResourceDictionary()
            {
                Source = new Uri("/Telerik.Windows.Themes.Windows7;component/Themes/Telerik.Windows.Controls.xaml", UriKind.RelativeOrAbsolute)
            });
            Application.Current.Resources.MergedDictionaries.Add(new ResourceDictionary()
            {
                Source = new Uri("/Telerik.Windows.Themes.Windows7;component/Themes/Telerik.Windows.Controls.Input.xaml", UriKind.RelativeOrAbsolute)
            });
 
            Application.Current.Resources.MergedDictionaries.Add(new ResourceDictionary()
            {
                Source = new Uri("MyStyles.xaml", UriKind.RelativeOrAbsolute)
            });
 
 
        }

Main form XAML
<Window x:Class="WpfThemes.MainWindow"
                xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                Title="MainWindow" Width="800" Height="600">
    <Window.Resources>
        
    </Window.Resources>
    <Grid x:Name="LayoutRoot" Background="White" >
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
 
        <StackPanel Orientation="Horizontal" Background="#FFE5E5E5" HorizontalAlignment="Stretch">
            <telerik:RadButton Content="Office Black" VerticalAlignment="Center" Width="110"  Margin="10" Click="OfficeBlack_Click" />
            <telerik:RadButton Content="Windows8" VerticalAlignment="Center" Width="110" Margin="10" Click="Windows8_Click" />
            <telerik:RadButton Content="Windows 7" VerticalAlignment="Center" Width="110"  Margin="10" Click="Windows7_Click" />
        </StackPanel>
 
        <StackPanel Orientation="Vertical" Grid.Row="1" Margin="20" HorizontalAlignment="Left">
            <telerik:RadComboBox Width="230" Margin="10">
                <telerik:RadComboBoxItem Content="Item 1" />
                <telerik:RadComboBoxItem Content="Item 2" />
                <telerik:RadComboBoxItem Content="Item 3" />
                <telerik:RadComboBoxItem Content="Item 4" />
                <telerik:RadComboBoxItem Content="Item 5" />
            </telerik:RadComboBox>
 
            <telerik:RadDateTimePicker Width="230" Margin="10" IsDropDownOpen="True" />
             
            <StackPanel Orientation="Horizontal">
                <telerik:RadButton>Button with Type Style</telerik:RadButton>
                <telerik:RadButton Style="{StaticResource BT}">Button With Keyed Style</telerik:RadButton>
            </StackPanel>
        </StackPanel>
    </Grid>
</Window>


Why the first style is corrected applied when the theme changes and the second one (Keyed) not?

 What is the reason to this behavior and is there an workaround ?


 



Audreyn Justus
Top achievements
Rank 1
 answered on 24 Jun 2014
5 answers
128 views
Is there a way of doing this?  I have a requirement of allowing the user to increase/decrease the major tick lines (to achieve zooming in/out)
Polya
Telerik team
 answered on 24 Jun 2014
2 answers
109 views
Hello

In the RibbonView group at the Q3-2013 release history, there is a line saying that the possibility to keep the Backstage open when Escape key is pressed was added:
http://www.telerik.com/support/whats-new/wpf/release-history/q3-2013

But I didn't find any property to do so, and even when I looked for the RibbonView changes here: http://www.telerik.com/help/wpf/radribbonview-changes.html
I couldn't find any information about the Q3-2013 release.

What I am looking for is the possibility to not close the backstage when I hit Escape. The reason is that I have a listbox, and my listboxitems have a textbox allowing the user to change the item's name, and the only way possible for the user to cancel the operation is by pressing Escape.

Maybe I didn't find the correct property or missed something else.

Thanks
Maurício
Top achievements
Rank 1
 answered on 24 Jun 2014
2 answers
93 views
How to limit the number of drops. I am using drag Drop between 2 RadListBoxes. Do you have any similar sample?
How to drop after user approves?
 
Kalin
Telerik team
 answered on 24 Jun 2014
1 answer
233 views
In my WPF app, I am trying to improve the user experience of zooming in RadImageEditor.  The default experience of tedious zooming and scrolling is getting complaints from users and I agree. I'd very much like to support an experience such as the zoom feature in Microsoft Expression Blend, where the zoom center is always relative to the hovering mouse position.

I happened to notice the AllowMouseWheelScaling property, which sounded interesting but I can find no description of what it is supposed to do. Only a variety of terse API docs which are of no help.   I tried setting that property on my RadImageEditor to true, but didn't see any change in the mouse wheel behavior (still scrolls)

I'd like to know what this property is and how to use it, but also how I could possibly have found that out. Am I missing some resource with info such as this?  


































































































































Todor
Telerik team
 answered on 24 Jun 2014
5 answers
282 views
I've spent the last day tracking down a weird bug. I copy/pasted an existing PropertyDefinition into a new View but it just did not work. The values were not displaying. I finally tracked it down.

My definitions are:

<!-- This one works  -->
<PropertyGrid:PropertyDefinition Binding="{Binding Stock.Name}" GroupName="Stock" DisplayName="Name" OrderIndex="9" />
<!-- This one does not show any text, even the FallbackValue when I intentionally mistype the binding path  -->
<PropertyGrid:PropertyDefinition Binding="{Binding Stock.Name}" GroupName="Stock" DisplayName="Name" OrderIndex="10">
  <PropertyGrid:PropertyDefinition.EditorTemplate>
    <DataTemplate>
      <TextBlock Text="{Binding Stock.Name, TargetNullValue='The value is null', FallbackValue='Problem getting text'}" />
    </DataTemplate>
  </PropertyGrid:PropertyDefinition.EditorTemplate>
</PropertyGrid:PropertyDefinition>

As you can see in the comments the controls are basically identical, the only difference is the 2nd one has a DataTemplate with a TextBlock in it. This TextBlock is completely empty.

I finally found the one difference between my views that fixed the problem.

<UserControl.Resources>
  <Style TargetType="Controls2:RadPropertyGrid">
    <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled"/>
  </Style>
</UserControl.Resources>

I'm just wondering why this matters. Is it a bug? Did I leave something important out and this triggers it? Adding the above property directly to the control does not fix it - only when we use a Style.

Note that the controls in the DataTemplate will render, e.g. if I set Background="Red", but the Text will not display even if it is hard coded to a string. 
Dimitrina
Telerik team
 answered on 24 Jun 2014
2 answers
111 views
I want To Create dynamic Appointment list and  dynamic Source Type in C# for my ScheduleView ,,
However: I already add dynamic Appointment and Resource with Resource Type ,,

But when i try to Assign resource-type to the Appointment I cant get it.

   public ObservableCollection<Appointment> Appointments { get; set; }
    public ObservableCollection<ResourceType> ResourceTypes { get; set; }



    private void MakeResources()
        {
            ResourceTypes = new ObservableCollection<ResourceType>();
            ResourceType rt = new ResourceType("Location");
            rt.Resources.Add(new Resource("Hall A", "Location"));
            rt.Resources.Add(new Resource("Hall B", "Location"));
            rt.Resources.Add(new Resource("Hall C", "Location"));
            ResourceTypes.Add(rt);

        TestScheduleView.ResourceTypesSource=ResourceTypes 
         }


   private void MakeAppointments()
        {
            Appointments = new ObservableCollection<Appointment>();
            for ( int i = 0; i < 10; i++)
            {
                Appointments.Add(new Appointment()
                {
                    Subject = "Appointment " + i.ToString(),
                    Start = DateTime.Now.AddHours(i),
                    End = DateTime.Now.AddHours(i).AddMinutes(30)

                });
            }
      AppointmentsSource.Source=Appointments 
        }




The Appointement List is Appear in ShedulView but How I can add them under The 
resource Type which I create?

I try to use
Abdulaziz
Top achievements
Rank 1
 answered on 24 Jun 2014
2 answers
95 views
I upgraded to the latest release (was on the second to the latest before) and now my window has this odd border. The border is in a RadRibbonWindow and it doesn't affect the RadRibbonView (as you can see from the attached).

I've set several properties that seemed likely candidates, but nothing has worked. I quickly realized I could waste a lot of time on this. I hoped that y'all would know since this is clearly a change.

Anthony
Top achievements
Rank 1
 answered on 23 Jun 2014
2 answers
172 views
Hello,
I need to highlight some calendar selected dates with red colour and some with grey. Could you please advise how it's easier to do with radcalendar?

Thanks
Alex
Alexander
Top achievements
Rank 1
 answered on 23 Jun 2014
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
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
SplashScreen
Rating
Accessibility
Callout
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?