Telerik Forums
UI for WPF Forum
1 answer
99 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
236 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
88 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
186 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
128 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
246 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
0 answers
94 views
Hi,

I have implemented RadGridView with row details. The RowDetailsVisibilityMode="VisibleWhenSelected" , when I expand a row, the details is shown, but it collapses after 10 seconds.

Is there a setting to control this behavior?
Xaria D
Top achievements
Rank 1
 asked on 02 Nov 2011
4 answers
60 views
Hi there,

I'm trying to style a GridViewGroupRow. I don't have Expression, so are doing it manually. I have copied another control template that was posted on these forums a while back and have modified it to our needs. The only thing I can't seem to change are some vertical lines that I presume are being added by a GridViewVirtualizingPanel

Frustratingly I am also trying to attach a jpeg showing what I am trying to change, but the Attach FIle 'Select' button below does not work! (Grrr ...)

Can you provide me with an email address to send the file too.

Regards,
Martin Kay

Filip
Telerik team
 answered on 02 Nov 2011
0 answers
66 views

Hi all

We had an application which was working on 3.5 .net framework but now we have upgraded it to framework 4 and telerik version is the same (telerik version: 2011.1.315.35)  suddenly a strange issue is happening

We have a XAML file with Hirarchical grid structure (Master grid and a child grid for that).

There are two buttons in two seperate columns of the child grid both have click event and visiblity of the button is set through converter

ISSUE: the child grid is not getting displayed when i click on the expand button ie(+) of the master grid . and if i remove the click event for the buttons its working and also if keep the click event and remove the visiblity which is set through converter it works fine.

it will not work when both are used

Please Help
thanks in advance
Jagadeesh

Jagadeesh
Top achievements
Rank 1
 asked on 02 Nov 2011
2 answers
195 views
hi,
i but 5 RadGridview in RadTabControl when we have many TabItem ,the problem is for each selected TabItem  the event load is launch.
for me all  RadGridView is loaded in the first time when i load the view. 

my question:there is a possibilty to stop load when i select TabItem  ?
i find just a possibilty to keep the already selected TabItem ,is not a solution for my problem because i want to block all event load.
 
thanks
Fatima
Top achievements
Rank 1
 answered on 01 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?