Telerik Forums
UI for WPF Forum
0 answers
39 views
Hi guys,

I have a quick question from you guys. Is there any property wrap the grouped columns to the next line in case the count of grouped columns increases more than the available grid area? 
Check out the screen shot attached for more clarity on my question. I have grouped even with column "Phone", but its not available in the visible grid. All I need is to make sure that column phone is visible in the grouped columns list.
Please let me know if the question is not clear.

Regards,

Akash
AT
Top achievements
Rank 1
 asked on 02 Nov 2011
0 answers
43 views
Hello.

How raddataform works with enums

thank's.
Daniel
Top achievements
Rank 1
 asked on 02 Nov 2011
6 answers
442 views
I'm using a RadTreeListView to display the following data (this is a mockup of the real business model):

Directory AAA
|__ SourceFile 001
                  |__ Function 001
                  |__ Function 002
|__ SourceFile 002
                  |__ Function 001
                  |__ Function 002
Directory BBB
|__ Directory BBB.1
                  |__ SourceFile 001
                                    |__ Function 001
|__ SourceFile 002
                  |__ Function 001
                  |__ Function 002

Model for these and the xaml are using are below:
// 1) Classes that define each of the levels (NodeItem being the base class)
 
    public class NodeItem
    {
        public string Name { get; set; }
        public string Path { get; set; }
    }
 
    public class SourceDirectoryItem : NodeItem
    {
        public SourceDirectoryItem()
        {
            this.Children = new ObservableCollection<NodeItem>();
        }
 
        public ObservableCollection<NodeItem> Children { get; set; }
    }
 
    public class SourceFileItem : NodeItem
    {
        public SourceFileItem()
        {
            this.Functions = new ObservableCollection<NodeItem>();
        }
 
        public ObservableCollection<NodeItem> Functions { get; set; }
    }
 
    public class FunctionItem : NodeItem
    {
    }
 
// 2) XAML
 
        <telerik:RadTreeListView
                AutoGenerateColumns="False"
                ItemsSource="{Binding Nodes}">
 
            <telerik:RadTreeListView.ChildTableDefinitions>
                <telerik:TreeListViewTableDefinition ItemsSource="{Binding Children}">
 
                    <telerik:TreeListViewTableDefinition.ChildTableDefinitions>
                         
                        <telerik:TreeListViewTableDefinition ItemsSource="{Binding Children}">
                            <telerik:TreeListViewTableDefinition ItemsSource="{Binding Functions}" />
                        </telerik:TreeListViewTableDefinition>
                         
                    </telerik:TreeListViewTableDefinition.ChildTableDefinitions>
                     
                </telerik:TreeListViewTableDefinition>
            </telerik:RadTreeListView.ChildTableDefinitions>
 
            <telerik:RadTreeListView.Columns>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Name}" Header="NAME">
 
                </telerik:GridViewDataColumn>
            </telerik:RadTreeListView.Columns>
             
        </telerik:RadTreeListView>
 
// 3) In the VM there is nothing special, this is how I populate the nodes:
 
        private void InitNodes()
        {
            SourceDirectoryItem root = new SourceDirectoryItem() { Name = "c:\\", Path = Name };
            SourceDirectoryItem firstLevel = new SourceDirectoryItem() { Name = "c:\\folder1", Path = Name };
            SourceDirectoryItem secondLevel01 = new SourceDirectoryItem() { Name = "c:\\folder1\\temp", Path = Name };
            SourceDirectoryItem secondLevel02 = new SourceDirectoryItem() { Name = "c:\\folder1\\programfiles", Path = Name };
            firstLevel.Children.Add(secondLevel01);
            firstLevel.Children.Add(secondLevel02);
            root.Children.Add(firstLevel);           
             
            SourceFileItem sf = new SourceFileItem();
            sf.Name = "foo.cs";
            sf.Path = "c:\\temp";
            sf.Functions.Add(new FunctionItem() { Name = "Method001" });
            sf.Functions.Add(new FunctionItem() { Name = "Method002" });
            sf.Functions.Add(new FunctionItem() { Name = "Method003" });
            secondLevel01.Children.Add(sf);
 
            SourceFileItem sf1 = new SourceFileItem();
            sf1.Name = "bar.cs";
            sf1.Path = "c:\\programfiles";
            sf1.Functions.Add(new FunctionItem() { Name = "AnotherMethod" });
            secondLevel02.Children.Add(sf1);
 
            this.Nodes.Add(root);
        }
 
        private ObservableCollection<NodeItem> nodes;
        public ObservableCollection<NodeItem> Nodes
        {
            get
            {
                return this.nodes;
            }
 
            set
            {
                this.nodes = value;
                this.OnPropertyChanged("Nodes");
            }
 
        }

So my issue is that if I leave the binding for Functions  in the XAML I get what you can see in pic 1 (issue.jpg) the third level directory entries are not expandable; if I remove that binding then I get the hierarchy working, of course up until the source file level (no_functions_binding.jpg).

Any idea what could be going on?

Thanks,
Jose


Jose
Top achievements
Rank 1
 answered on 02 Nov 2011
0 answers
130 views
internal WndMain()
{
            InitializeComponent()
this.GridViewLocalizations.MouseMove += new MouseEventHandler(GridViewLocalizations_MouseMove);
 
}
 
void GridViewLocalizations_MouseMove(object sender, MouseEventArgs e)
        {
}


"GridViewLocalizations_MouseMove" does not get called on moving the mouse over the GridView. Why?
How can I trap MouseMove events on a GridView?

And why can't I write outside of this code block anyway?? Man, Telerik sometimes...
ClausDC
Top achievements
Rank 1
Iron
Iron
Iron
 asked on 02 Nov 2011
1 answer
104 views
hi,
Is there a way to add controls that are not text inside the expanded Tile?
I want to create a navigation system, where the application menu items would be available in minimized form. and then when they expand the tile, a lis of sub items would show up. Like for example, I want to include an expander inside one tile. And some other control like bunch of RadSplitButtons in other.
A working example would be great?
thanks
Sri
Petar Mladenov
Telerik team
 answered on 02 Nov 2011
3 answers
249 views
This issue is similar to this issue.

We're using the RadScheduleView only with MonthViewDefinition. 
There's room on the screen for 4 weeks only (and Oct. 2011, for example, takes 6 weeks: 25/09/2011 is the first week, 30/10/11 is the last).

When the view is scrolled to its top (Showing first 4 weeks), and an appointment is being selected (from an external list, updated via binding of SelectedAppointment) that starts on the 5'th week, ScrollIntoView method does not scroll to the proper week, and the appointment, although being selected, stays off the view.

We're using this attached behavior:
public static class RadSchedule
{
    public static bool GetEnsureVisibilityOfSelectedAppointments(DependencyObject obj)
    {
        return (bool)obj.GetValue(EnsureVisibilityOfSelectedAppointmentsProperty);
    }
 
    public static void SetEnsureVisibilityOfSelectedAppointments(DependencyObject obj, bool value)
    {
        obj.SetValue(EnsureVisibilityOfSelectedAppointmentsProperty, value);
    }
 
    public static readonly DependencyProperty EnsureVisibilityOfSelectedAppointmentsProperty =
        DependencyProperty.RegisterAttached("EnsureVisibilityOfSelectedAppointments", typeof(bool), typeof(RadSchedule), new UIPropertyMetadata(false, EnsureVisibilityChanged));
 
    private static void EnsureVisibilityChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
    {
        if (d == null)
        {
            throw new ArgumentNullException("d");
        }
        var view = d as RadScheduleView;
        if (view == null)
        {
            throw new NotSupportedException("This attached behavior can only be set on a Telerik RadScheduleView.");
        }
 
        var shouldEnsureVisibility = (bool)e.NewValue;
 
        if (shouldEnsureVisibility)
        {
            view.AppointmentSelectionChanged += view_AppointmentSelectionChanged;
        }
        else
        {
            view.AppointmentSelectionChanged -= view_AppointmentSelectionChanged;
        }
    }
 
    static void view_AppointmentSelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e)
    {
        if (sender == null)
        {
            throw new ArgumentNullException("sender");
        }
        var view = sender as RadScheduleView;
        if (view == null)
        {
            throw new NotSupportedException("This attached behavior can only be set on a Telerik RadScheduleView.");
        }
 
        if (view.SelectedAppointment == null)
        {
            return;
        }
 
        view.ScrollIntoView(view.SelectedAppointment, true);
 
        // this should have solved this issue:
        view.CurrentDate = view.SelectedAppointment.Start.Date;
    }
}


What am I missing? 

Thanks in advance, 
Idan Felix.
Rosi
Telerik team
 answered on 02 Nov 2011
1 answer
95 views
When I'm dragging an item, I update the drag cue text, which is correct, but just above it, and to the left of the mouse pointer, is a small, yellow/orange rectangle/box.

What is this and how do I make it go away?  Thanks.
Dimitrina
Telerik team
 answered on 02 Nov 2011
0 answers
206 views
Hi,
I want to force the radscheduleview to refresh. Because when I call the ScrollIntoView(slot,true), it is not reflected in the scheduleview. But when I change the date from the navigation panel the UI is refreshed and scrolls to the specified slot. So I just want to force the Scheduleview to update its UI elements. Please help..

With Regards,
Jeyakumar
jeya
Top achievements
Rank 1
 asked on 02 Nov 2011
3 answers
133 views
Hello,

In my LineSeriesDefinition there are two SeriesMapping(High,Low).
I plot DateTime on AxisX.
But, in my data there are up-to 4 records for different time(Hours) per date.
So, i have to plot 4 points(based on time) in one step of Date.

i have set property of telerik:ChartArea.AxisX in DefaultView as:

But it will shows:
in minimize mode:
 
1.I don't want group of 1Week.
and it is solved in maximize mode.

In Maximize mode:

2. Series is started from half of the first Step area of the axis-X. In above snap for the Date 1st Oct it start from the Half.
I want to start from immediate of Axis-Y. also date must Between MinorTick Line.
Is it possible to solve it?

Thanks in advance.
Regards
Dhaval Patel
Evgenia
Telerik team
 answered on 02 Nov 2011
1 answer
261 views
Hello!
I am trying to load a .rtf document in the RadRichTextBox using bindings in XAML.
Here is my XAML:
<UserControl.DataContext>
    <DutyRegulations:DutyRegulationsViewModel/>
</UserControl.DataContext>
  
<UserControl.Resources>
    <DataTemplate x:Key="TabContentTemplate">
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <telerik:RadRichTextBox x:Name="radRichTextBox" IsReadOnly="True" Grid.Column="0" Width="500" Height="500"/>
            <Rtf:RtfDataProvider Rtf="{Binding FileSource}"  RichTextBox="{Binding ElementName=radRichTextBox}"/>
        </Grid>
    </DataTemplate>
</UserControl.Resources>
     
<Grid>
    <telerik:RadTabControl HorizontalAlignment="Stretch" Name="radTabControl" VerticalAlignment="Stretch" ItemsSource="{Binding Path=StaffDutyRegulations}" DisplayMemberPath="Staff.Name" ContentTemplate="{StaticResource TabContentTemplate}"/>
</Grid>
What type should be the object that is bound to the "Rtf" property of RtfDataProvider? Can I pass an array of bytes? Can I do it without any code-behind? I can see in the output that my code always throws an exception : "A first chance exception of type 'System.NullReferenceException' occurred in Telerik.Windows.Documents.dll". Thank you in advance. 

Sincerely yours,
Mike.
MuxMux
Top achievements
Rank 1
 answered on 02 Nov 2011
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
Slider
Expander
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
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?