Telerik Forums
UI for WPF Forum
2 answers
123 views
Hi there
I would like to display individual context menus based on whether the user right-clicks an appointment, and empty area, or an empty area between two appointments. What's the best way to accomplish this?

Thanks for your advice
Philipp
Philipp
Top achievements
Rank 1
 answered on 15 Dec 2011
1 answer
67 views
Hi, I noticed that when I add a sort descriptor in my xaml, the group order (not the rows in the group) is reversed. What's going on here? Here's the markup:

                      <telerik:RadGridView.GroupDescriptors>
                        <data:GroupDescriptor Member="Checked" />
                    </telerik:RadGridView.GroupDescriptors>
                    <telerik:RadGridView.SortDescriptors>
                        <data:SortDescriptor Member="Name"/>
                    </telerik:RadGridView.SortDescriptors>
Twistur
Top achievements
Rank 1
 answered on 15 Dec 2011
5 answers
247 views
Hello!
I've got a problem installing telerik ui controls. I've spent my whole day searching for the reason of the problem, but found nothing.
I have downloaded the latest telerik installer (.exe) and tried to install wpf ui controls (I've also tried to install Silverlight controls and had the same result).
After waiting for ~ half an hour after starting the installation process, the window shows "Oops, it seems we've hit an installation problem".
I don't know what to do now.

My machine is running Win7, VS 2010 SP1.
I've tried to start the installer in admin mode, nothing changed.

If I could see the logs, at least.... But I don't know where I can find them and I don't know if they are being created at all (I've read about logging the setup process, but I'm using an .exe, not an msi installer - I can't find where to download the .msi from)

Anyway, I need to get it working as soon as possible...
So, do you have any ideas?

PS.The interesting is: first, the folder "c:\program files\telerik" is being created and some files and folders are written there, 
and later, through the installation process, the telerik folder gets deleted (seems like the installer is restoring everything).
And after that, the error is shown (see attached file).

Thanks in advance
Teodor
Telerik team
 answered on 14 Dec 2011
4 answers
117 views
On a form with multiple grids, it's not possible to tell which grid has focus.  The grid selected row color is always the same, whether or not the control has focus.

This presents a problem in the case where you have a ribbon bar with a single "Delete" option that operates on the grid in focus.  The user has no way of knowing which grid will handle the delete operation.

The behavior should be similar to the tree control, where the selected item color changes when the tree loses focus.

Is there a setting or a workaround to change this behavior?

Thanks,
-Jeff


Jeff
Top achievements
Rank 1
 answered on 14 Dec 2011
3 answers
196 views
In my project, I need to insert a InlineUIContainer which includes a TextBlock into the RadRichTextBox, after the insertion, how to keep the InlineUIContainer and other plain text the same height? Thanks.
Mike
Telerik team
 answered on 14 Dec 2011
3 answers
70 views
Hi,

In my business datamodel, I've Some activities, which have several "schedules".

I need to display on one ScheduleView.

So I've a RadCombobox bound on my list of Activities, the SelectedItem is bound to property on my code behind, and this "Activity" object is bound to the AppointmentsSource, with a converter, which basically create one Appointment for each schedule:

public class ActivityToAppointmentConverter:IValueConverter
{
    public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
    {
        if (value == null || !(value is Activity)) return value;
        Activity activity = (Activity) value;
        List<Appointment> appointments = new List<Appointment>();
        foreach (Schedule schedule in activity.Schedules)
        {
            appointments.Add(new Appointment()
                                 {
                                     Subject = schedule.Activity.Name,
                                     Body = schedule.Activity.Informations,
                                     Start = schedule.StartDate,
                                     End = schedule.EndDate,
                                      
                                 });
        }
 
        return appointments;
    }
 
    public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
    {
        throw new NotImplementedException();
    }
}
(I tried to set all field of the "Appointment" object, but it doesn't work either.

I but a breakpoint on the "return appointments" line, and I've appointments.

(I also bound the SelectedTimeSlot on the activity, with a converter which takes the start date of the first schedule and the end date of the last schedule, like this, the radScheduler display directly the good period, this part work like a charm).

But I don't know why, event if I put a breakpoint(checking the date of the appointment), and checking the same period, I don't see any appointment appearing.

So:
-The converter gives good data
-The binding seems to be right
-I'm absolutely sure to be on the good period

So why my appointments aren't appearing?
Valeri Hristov
Telerik team
 answered on 14 Dec 2011
3 answers
166 views
Hi,

I have a weird issue with chart... the legend colors didn't match the line color on chart, Please check the attached picture
<telerik:RadChart DataContext="{Binding}" telerik:Theming.Theme="Office_Blue" HorizontalAlignment="Left"  Loaded="RadChart1_Loaded" Name="radChart1" VerticalAlignment="Top"  >
 
                <telerik:RadChart.DefaultView>
                    <telerik:ChartDefaultView  ChartLegendPosition="Top">
                        <!--<telerik:ChartDefaultView.ChartTitle>
                        <telerik:ChartTitle>CDC growth chart</telerik:ChartTitle>
                    </telerik:ChartDefaultView.ChartTitle>-->
                        <telerik:ChartDefaultView.ChartLegend>
                            <telerik:ChartLegend x:Name="PrimaryLegend" Header="Click on percentile to hide/show:" LegendItemMarkerShape="Square" LegendItemStyle="{StaticResource CustomLegendItemStyle}"  />
                        </telerik:ChartDefaultView.ChartLegend>
                        <telerik:ChartDefaultView.ChartArea >
                            <telerik:ChartArea EnableAnimations="False" Padding="5,10,20,5" LabelFormatBehavior="None" LegendName="PrimaryLegend" FontSize="10" >
                                <telerik:ChartArea.PaletteBrushes>
                                    <SolidColorBrush Color="Red" />
                                    <SolidColorBrush Color="LightGray" />
                                    <SolidColorBrush Color="LightGray" />
                                    <SolidColorBrush Color="LightGray" />
                                    <SolidColorBrush Color="LightGray" />
                                    <SolidColorBrush Color="LightGray" />
                                    <SolidColorBrush Color="LightGray" />
                                    <SolidColorBrush Color="LightGray" />
                                    <SolidColorBrush Color="LightGray" />
                                    <SolidColorBrush Color="LightGray" />
                                    <SolidColorBrush Color="LightGray" />
                                    <SolidColorBrush Color="LightGray" />
                                    <SolidColorBrush Color="LightGray" />
                                    <SolidColorBrush Color="LightGray" />
                                    <SolidColorBrush Color="LightGray" />
                                    <SolidColorBrush Color="LightGray" />
 
                                </telerik:ChartArea.PaletteBrushes>
                                <telerik:ChartArea.AxisY>
                                    <telerik:AxisY ExtendDirection="None"  />
                                </telerik:ChartArea.AxisY>
                            </telerik:ChartArea>
                        </telerik:ChartDefaultView.ChartArea>
                    </telerik:ChartDefaultView>
                </telerik:RadChart.DefaultView>
                <telerik:RadChart.SeriesMappings>
.............................................................
<telerik:RadChart>
Evgenia
Telerik team
 answered on 14 Dec 2011
0 answers
166 views
Setting a style on a list box like so:

<Setter Property="telerik:RadDragAndDropManager.AllowDrag" Value="True" />

Works perfectly for a mouse click, hold and drag. But not for a touch. Has anybody got any ideas? I really really need help with this.

EDIT: By touch, I mean I am using a touchscreen overlay. I've just read elsewhere on the forum that the drag drop manager's 'drag' is defined my left mouse button down, this touchscreen does not simulate a mouse but instead fires it's own touch events so is there anyway I can get this drag to be triggered by a touch?? As I have laready implemented a rather complex custom drag drop behaviour between the listbox and radscheduleview.
Daniel
Top achievements
Rank 1
 asked on 14 Dec 2011
1 answer
166 views
Hi,

How can i refresh a RadgridView that is bound to an IQueryable object ? I mean, as the IQueryable will be used (i.e. generate SQL request) when it'll be evaluated, if i add/edit/delete update in my database, how can i force the refresh/reexecution of the IQueryable  without lost filtering, grouping, etc. ?

Thanks !

Thomas LEBRUN
Top achievements
Rank 1
 answered on 14 Dec 2011
3 answers
235 views
Hi,

I am using WPF Telerik RadGridView control (2011.2.920.35) .

I have simple View (with navigation tree on the left and grid on the right which displays data with number of columns) (using MVVM).

When I change the tree node on the left, it should update with data in the grid.  It updates the data fine, but how can I force all columns to resize to fit content as data changes or user might have resized the columns for the previous data ?

I need an example of the code which I can programmatically to resize all columns to "fit to content".

Let me know if you want any other specific details.


Vlad
Telerik team
 answered on 14 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?