Telerik Forums
UI for WPF Forum
1 answer
75 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
150 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
162 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
174 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
91 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
141 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
0 answers
137 views
Hi all

The following code allows the creation of a control RadMenu at runtime with an item

             Dim As New RadMenu NewMenu
             newMenu.Name = "MyPopUpMenu"

             Dim As New RadMenuItem newMenuItem
             With newMenuItem
                 . Name = "Name_A"
                 . Header = "Option A"
             End With

             newMenu.Items.Add (newMenuItem)
             newMenu.ClickToOpen = True

It works without problems but how I can:
1 - Make it visible, the object is created in memory but not a method I have "Display" or "Show" or the like to show it.
2 - Place it in a specific location, such as the mouse pointer.
3-Make it a shortcut menu, type Popup .....

Thanks to all .....
Romell
Top achievements
Rank 1
 asked on 11 Jul 2012
3 answers
116 views

Hello,
I want to change the way TileViewItems change their positions in the I want to change the way TileViewItems change their positions in the TileView so that when I drag an item to the left of another one it will change his position to the left of the dropped item and to the right accordingly without any other changes to the other items (I believe the way to do that is to  pin all the others).

How would you recommend me to do so?

Thank you anyway!

Petar Mladenov
Telerik team
 answered on 11 Jul 2012
1 answer
163 views
Hello community

Is it possible to control RadTileView type with a series of items but without the traditional header items?

Need functionality and performance of this control (RadVireTileItem) but not the header has been developed as an own.

In advance, thank you all .....
Petar Mladenov
Telerik team
 answered on 11 Jul 2012
3 answers
150 views
Is it possible to databind RadialScale.Ranges so that the set of ranges can be easily manipulated from the ViewModel?
Andrey
Telerik team
 answered on 11 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
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?