Telerik Forums
UI for WPF Forum
4 answers
437 views
Hi,

I have installed RadControls_for_WPF_Q1_2009_DEV.msi. Then I have created a new VS 2008 WFP C# .Net 3.5 Project.
Everything works fine when I add the RadDatePicker to the Window.
  • The RadDatePicker shows up on the Window
  • Two DLLs are added to the project
    • Telerik.Windows.Controls > Version: 2009.1.312.35 > C:\Program Files\Telerik\RadControls for WPF Q1 2009\\Binaries\WPF\Telerik.Windows.Controls.dll
    • Telerik.Windows.Controls.Input > Version: 2009.1.312.35 > C:\Program Files\Telerik\RadControls for WPF Q1 2009\\Binaries\WPF\Telerik.Windows.Controls.Input.dll
  • In the XAML File

 

But now when I start the project VS tells me to find the source RadDatePicker.cs. Original location: c:\Builds\WPF_Scrum\WPF_Team\Sources\Development\Silverlight\Telerik.Windows.Controls.Input\DatePicker\RadDatePicker.cs
Which I can not find on the machine.

When I cancel this I get an Error from the InitializeComponent() function:
Error: XamlParseException occured
'Telerik.Windows.Controls.Input;;;Component\Themes\Calendar\Telerik/Calendar.xaml' value cannot be assigned to property 'Source' of object 'System.Windows.ResourceDictionary'. Object reference not set to an instance of an object.  Error at object 'System.Windows.ResourceDictionary'.

Thanks

 

Christian Schmidt

 

Gwynn
Top achievements
Rank 1
 answered on 22 Mar 2011
1 answer
109 views
I have added drag capabilites to one of our listviews so that appointments can be dragged to the ScheduleView using the RadDragDropManager.

RadDragAndDropManager

 

 

.SetAllowDrag(resultListView, true);

 

 

 

 

RadDragAndDropManager.AddDragQueryHandler(resultListView, OnDragQuery);

 


For the most part everythiing works, but when I grab the scrollbar thumb on the listview and drag it down, it starts a drag operation on the selected listviewitem instead of scrolling down. Also happens when tryng to resize the listview columns.

Any idea how I can get this to react only when dragging the listviewitem within the listview?

Rod
Valeri Hristov
Telerik team
 answered on 22 Mar 2011
4 answers
295 views
Hello everyone,

we have a simple RadGridView with one column bound to a enum property of a view model with a converter:

<telerik:GridViewDataColumn DataMemberBinding="{Binding SomeValue, Converter={StaticResource TestConverter}}" />

ViewModel:

public class TestViewModel {
    public TestEnum SomeValue { get; set; }
}
public enum TestEnum {
    A,
    B,
    C
}

And the converter code simply translates the bound enum value to a more readable text:

public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) {
    var test = (TestEnum)value;
    switch (test) {
        case TestEnum.A: return "TestEnum with Value A";
        case TestEnum.B: return "TestEnum with Value B";
        case TestEnum.C: return "TestEnum with Value C";
    }
    throw new NotImplementedException();
}

The grid is rendered correctly ("TestEnum with Value A"), but all drop downs located in the extended filter are using the raw values ("A", "B", "C") of our enum and not the transformed values for our converter.

Is there a way to work around this issue (beside translating the values prior to binding, i.e. coding a seconding property and doing the translation without a converter)?

Version: RadControls for WPF Q1 2011

FYI - I can provide a simple c# test project in order to reproduce the issue if needed.

Your sincerely,

Christian
Christian
Top achievements
Rank 1
 answered on 22 Mar 2011
1 answer
71 views
I created a simple test application following the example here: http://www.telerik.com/help/wpf/raddocking-getting-started2.html
When I click on a splitter bar, the splitter jumps to the left and is no longer moveable. I have attached my project. Anyone know what's wrong?
Yana
Telerik team
 answered on 22 Mar 2011
3 answers
69 views

Hello I need to Implement selected changing and cancel the selection if need

How can I do this?

Best regard

Ehud

Yana
Telerik team
 answered on 22 Mar 2011
3 answers
100 views
We're having some problems upgrading our project to the current release (2011 Q1) from an earlier version. 
We are attempting to upgrade from Q2 2010, and we've confirmed that the Q3 2010 seems to work fine. 

The issue is with autogenerated GridViewColumns that are to be invisible by business logic (we have some controls
that require additional parameters to be in the bound dataset). The columns seems to ignore the visible-switch or have some
new logic regarding column width calculation, so that the result is a grid with column values overlapping the same space. 

Upon resizing the column headers, the cells snaps back to their respective columns, but initially they are overlapping. There
seem also be some extra columns in the header, probably correlating to the hidden columns in our dataset.

PS! I'm using the binaries with version/tag  v.2011.1.315.40 


Best regards, 
Finn
Hristo
Telerik team
 answered on 22 Mar 2011
1 answer
119 views
I have implemented: public partial class MyFilterControl : IFilteringControl {...}
VisualStudio 2010 Design surface has no problem rendering MyWindow with
<telerik:RadGridView>
    <telerik:RadGridView.Columns>
        <telerik:GridViewDataColumn ShowFieldFilters="True" >
            <telerik:GridViewDataColumn.FilteringControl>
                 <uc:MyFilterControl />
            </telerik:GridViewDataColumn.FilteringControl>
        </telerik:GridViewDataColumn>
    <\telerik:RadGridView.Columns>
</telerik:RadGridView>

Expression Blend 4 can't render the window and has an error:
The specified value cannot be assigned. The following type was expected: "IFilteringControl"
Rossen Hristov
Telerik team
 answered on 22 Mar 2011
2 answers
148 views

Hi, I've just installed the 2011 Q1 binaries and have found that my GroupHeaderStyleSelector, although still called,  is not being used to style the resource GroupHeaders.

The attached files illustrate the problem:-

presingledayresizeproblem.png - Group Header styling pre-2011 binaries
missinggroupheaderstyling.png - Group Header styling with 2011 Q1 binaries

Please advise what has changed.

Thanks,
Peter. 
Peter
Top achievements
Rank 1
 answered on 22 Mar 2011
2 answers
186 views
Hi,

could it be, that there are some "bugs" in Schedule View?

First i tried following:

<radSchedulerView:RadScheduleView FontSize="18" x:Name="_sView" Grid.Column="0" Grid.RowSpan="2">
 
            <radSchedulerView:RadScheduleView.ViewDefinitions>
                <radSchedulerView:DayViewDefinition DayStartTime="00:00:00"  DayEndTime="23:59:59"  MinTimeRulerExtent="1800" />
                <radSchedulerView:WeekViewDefinition DayStartTime="00:00:00"  DayEndTime="23:59:59" MinTimeRulerExtent="1800"/>
                <!-- MonthView has fixed tick lengths and extents! -->
                <radSchedulerView:MonthViewDefinition />
                <radSchedulerView:TimelineViewDefinition DayStartTime="00:00:00"  DayEndTime="23:59:59"  MinorTickLength="1day" />
            </radSchedulerView:RadScheduleView.ViewDefinitions>
        </radSchedulerView:RadScheduleView>



 _sView.AppointmentEditing +=
                    new EventHandler<AppointmentEditingEventArgs>(OnScheduler_AppointmentEditing);
_sView.AppointmentCreating +=
                    new EventHandler<AppointmentCreatingEventArgs>(OnScheduler_AppointmentCreating);



private void OnScheduler_AppointmentCreating(object sender, AppointmentCreatingEventArgs e)
{         
            e.Cancel = true;
}
 
 
private void OnScheduler_AppointmentDeleting(object sender, AppointmentDeletingEventArgs e)
        {
            e.Cancel = true;
        }

Every time I double click an Appoinment in Schedule View, the Edit Dialog appears although I have set e.Cancel=true. The same thing happens, if I double click a Time Slot. I think e.Cancel=true should prevent showing the edit dialog?

Second thing is also not working: In the Control RadScheduler following worked:


_sView.MouseLeftButtonUp += new MouseButtonEventHandler(OnScheduler_MouseLeftButtonUp);


private void OnScheduler_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            MccmAppointment selectedAppointment = _sView.SelectedAppointment as MccmAppointment;
 
...
...
          
        }

But in Schedule View, the event Mouse Left Button Up does not fire, I i click on an Appointment. But it fires, if I click on any other UIElement. I can't figure out why?

Please help me asap!

Thanks,
Ronald

Valeri Hristov
Telerik team
 answered on 22 Mar 2011
1 answer
56 views
Hi,

I would like to show appointments in Month View with a fixed height of say 50 px. I could not find the place in the schedule view's theme (I am using ScheduleView.xaml for additional design). Is there an easy way to do this?

Valeri Hristov
Telerik team
 answered on 22 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?