Telerik Forums
UI for WPF Forum
0 answers
102 views
I want to add "paste to selected cell" command to Row. I don't want to change SelectionMode="Extended".
I've added RoutedUICommand:

private void PasteToCell_Executed(object sender, ExecutedRoutedEventArgs e)
{
            GridViewCell cell = e.OriginalSource as GridViewCell;
            if (cell != null)
            {
                var value = Clipboard.GetText();
                cell.BeginEdit();
                TextBox tb = (TextBox)cell.GetEditingElement();
1 ->          tb.Text = value;
2 ->          if (ApplicationCommands.Paste.CanExecute(value, tb))
                    ApplicationCommands.Paste.Execute(value, tb);
3 ->          cell.Value = value;
4 ->          cell.SetCurrentValue(GridViewCell.ValueProperty, value);
5 ->          cell.SetValue(GridViewCell.ValueProperty, value);
                cell.CommitEdit();
            }
}
No one work. I don't know how to realize this feature.
Anton
Top achievements
Rank 2
 asked on 12 Jul 2012
2 answers
284 views
How to dynamic align text in columns, depends on column types. Eg. columns with numeric values should be alignment to right, with data to center, with text to left.
Columns are autogenerated.
Dimitrina
Telerik team
 answered on 12 Jul 2012
1 answer
158 views
Hi,
I would like to create a heat map based on a multidimensional array with 100 rows and 100 columns. However, your documentation does not provide any such code. Could you please provide me with links/examples that show how I might be able to achieve this?

Thank you
Petar Marchev
Telerik team
 answered on 12 Jul 2012
1 answer
181 views
Is it possible to make the TrackBall popup transparent? I'm using WPF only, no Silverlight or ExpressionBlend.
Petar Marchev
Telerik team
 answered on 12 Jul 2012
1 answer
74 views
Hey,

We have an Windows Explorer kind of implementation where we have folders and files. We are using RadTreeListView for our application.

I need your inputs in following case:

1. Let's a user search for a file.
2. File is found and location is tracked.
3. In that case, my folder structure should automatically opened [in explorer via RadTreeView]  and pointing to folder just tracked.

I'm trying to search file in already data bound RadTreeview. I tried to explore Items property but somehow it returned only null.
Can you please help, how to find a particular item/node in TreeListView?

Thanks,
Tarun
Pavel Pavlov
Telerik team
 answered on 12 Jul 2012
1 answer
144 views
Is it possible to make group header selectable so users can copy- paste the displayed value?
Pavel Pavlov
Telerik team
 answered on 12 Jul 2012
0 answers
159 views
Hi,
I am trying create a custom DialogWindow with my catigories. But When the window opening Combobox categories is clear.
My code is main window is
namespace Calendar
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        AppintmentViewModel main;
 
        public MainWindow()
        {
            InitializeComponent();
            main = new AppintmentViewModel();
            this.DataContext = main;
        }
    }
 
 
    internal class AppintmentViewModel : BaseViewModel
    {
        private ObservableCollection<Category> _Categories;
        ObservableCollection<Task> _Appointments;
 
        public AppintmentViewModel()
        {
            _Appointments = new ObservableCollection<Task>()
            {
 
                new Task(){Subject="April",Start =DateTime.Today,End =DateTime.Today.AddHours(4)},
            };
            _Categories = new ObservableCollection<Category>()
            {
 
                new Category(){ CategoryBrush= Brushes.Red, CategoryName="Red"},
                new Category(){CategoryBrush= Brushes.Blue, CategoryName="Blue"}
            };
        }
        public ObservableCollection<Task> Appointments
        {
            get
            {
                return _Appointments;
            }
            set
            {
                _Appointments = value;
                OnPropertyChanged("Appointments");
            }
        }
 
        public ObservableCollection<Category> Categories
        {
            get
            {
                return _Categories;
            }
            set
            {
                _Categories = value;
                OnPropertyChanged("Categories");
            }
        }
 
    }
 
    public class Task : Appointment
    {
         
        public override IAppointment Copy()
        {
 
            var newAppointment = new Task();
 
            newAppointment.CopyFrom(this);
 
            return newAppointment;
 
        }
 
 
 
        public override void CopyFrom(IAppointment other)
        {
 
            var task = other as Task;
 
            base.CopyFrom(other);
 
        }
    }
}

and XAML

<Window x:Class="Calendar.MainWindow"
        xmlns:schedule="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.ScheduleView"
        xmlns:scheduleView="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.ScheduleView"
        Title="MainWindow" Height="350" Width="525">
    <Window.Resources>
        <ControlTemplate x:Key="EditAppointmentTemplate" TargetType="scheduleView:SchedulerDialog">
            <Grid IsSharedSizeScope="True">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="*" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
 
                <telerik:RadToolBar x:Name="AppointmentToolbar"  BorderThickness="0 0 0 1" FocusManager.IsFocusScope="False"
                 GripVisibility="Collapsed" Grid.Row="0" Margin="-1 0 -1 3">
                    <telerik:RadButton x:Name="EditRecurrenceButton" Command="scheduleView:RadScheduleViewCommands.EditRecurrenceRule">
                        <ToolTipService.ToolTip>
                            <ToolTip telerik:LocalizationManager.ResourceKey="EditRecurrence"  />
                        </ToolTipService.ToolTip>
                        <TextBlock Margin="6 0" telerik:LocalizationManager.ResourceKey="EditRecurrence" />
                    </telerik:RadButton>
                    <telerik:RadToolBarSeparator />
                    <telerik:RadComboBox x:Name="PART_Categories" Margin="2 1" Width="130"  ItemsSource="{Binding ElementName=ScheduleView, Path=CategoriesSource}" DisplayMemberPath="{Binding CategoryName}" />
 
                </telerik:RadToolBar>
            </Grid>
        </ControlTemplate>
        <Style x:Key="EditAppointmentDialogStyle" TargetType="scheduleView:SchedulerDialog">
            <Setter Property="Width" Value="560" />
            <Setter Property="IsTabStop" Value="False" />
 
            <Setter Property="SnapsToDevicePixels" Value="True" />
 
            <Setter Property="Template" Value="{StaticResource EditAppointmentTemplate}" />
        </Style>
        
    </Window.Resources>
    <Grid>
        <telerik:RadScheduleView AppointmentsSource="{Binding Appointments}" EditAppointmentDialogStyle="{StaticResource EditAppointmentDialogStyle}"
                                      FirstVisibleTime="12:00" x:Name="ScheduleView" CategoriesSource="{Binding Categories}"
                                      ActiveViewDefinitionIndex="1">
            <telerik:RadScheduleView.ViewDefinitions>
                <telerik:DayViewDefinition />
                <telerik:WeekViewDefinition />
                <telerik:MonthViewDefinition />
                <telerik:TimelineViewDefinition DayStartTime="00:00" />
            </telerik:RadScheduleView.ViewDefinitions>
        </telerik:RadScheduleView>
    </Grid>
</Window>


If I removeEditAppointmentDialogStyle, I see mian Catigories. Can you help me?
Thank's
 
Zhenya Popkin
Top achievements
Rank 1
 asked on 12 Jul 2012
4 answers
169 views
Hi,

I use Telerik V2012.1.326.35 and I have a problem. I change my application theme (StyleManager.ApplicationTheme = new Office_BlueTheme()) to OfficeBlue and when I run my application on my pc, my application have the good style but if I deploy
my application on another pc, the them remain OfficeBlack!!!

PS: Aloso, can you tell me if it's possible to change the design time Telerik the to OfficeBlue???

Thank's
Dimitrina
Telerik team
 answered on 12 Jul 2012
1 answer
88 views
Here is what I am trying to achieve with tristate TreeView:

1. User unchecks an item from tree
2. Before the item gets really unchecked from tree, I need to put a validation
3. If item passes this validation, it should be unchecked. Else the uncheck event needs to be canceled and item should remain checked.

I tried setting e.Handled in PreviewUnchecked which is not working. The item gets already unchecked.

Any ideas how this can be achieved?
Petar Mladenov
Telerik team
 answered on 12 Jul 2012
3 answers
139 views
1. Expend one row in RadTreeListView
2. Edit one of the child cell in the grid
3. Click to collapse the row and expend it.
4. Changes reversed.

Attach to the currentcellchanged event:

the oldcell is null when collpase the row.

Any idea?
Dimitrina
Telerik team
 answered on 12 Jul 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?