Telerik Forums
UI for WPF Forum
3 answers
162 views
Hello does anyone tried the Persistence Framework with Caliburn Micro?
with my initial tests I got a lot of index out of boundaries exception...
Thanks
Tina Stancheva
Telerik team
 answered on 16 Feb 2012
4 answers
131 views
Hi @ All,

how can i change the Header Background from a RadDataForm? Normaly it's black, but i can't find a property to change?!

Thanks
WW
ITA
Top achievements
Rank 1
 answered on 16 Feb 2012
0 answers
164 views
Hi,

I'm trying to bind IsEditable property of the RadCombobox using the following

The combobox is converted to edit mode actually but I cant type anything with the keyboard on the combobox to search

its binding to be true with MouseDoubleClick Event but it doesn't work

any advice...

thanks;

IsEditable="{Binding AccChartMain_IsEditableCommand,Mode=TwoWay}"
Hussein
Top achievements
Rank 1
 asked on 16 Feb 2012
4 answers
316 views
We have set the BringIntoViewMode to HeaderAndItems for a particular case and the result is not what I expect. Am I doing something wrong or is there a problem with the TreeView?

In an adapter (as we are building an MVVM application) we attach a handler to the ItemPrepared and LoadOnDemand events.

Originally it seemed logical to simply do the following in the LoadOnDemand event handler:

	var treeViewItem = (RadTreeViewItem) e.OriginalSource;
	treeViewItem.BringIntoView();

But of course should fail since technically the child nodes are not yet loaded.

Than I tried adding the following code to the ItemPrepared event handler:

	e.PreparedItem.BringIntoView();

This of course brings each child node into view as they are being "prepared", so that is also not the desired result. So finally I ended up with:

e.PreparedItem.ParentItem.BringIntoView();

But again no "items" were brought into view (even though in the ItemPrepared event the above code is called for each child node prepared).

Please let me know what I'm doing wrong!

Regards,
Roland
Roland Vonk
Top achievements
Rank 1
 answered on 16 Feb 2012
0 answers
1.3K+ views

Q1 2012 (version 2012.1.215)

February 15, 2012

BREAKING CHANGES
  • The ToggleButton inside the FilteringDropDown control has been replaced by a plain Button
  • Filtering API
In order to enable filtering for our GridViewExpressionColumn, we had to rewrite our entire filtering infrastructure from scratch. We have made as few breaking changes as possible, but some of them were inevitable, for which we would like to apologize. Here is the list of the breaking changes that you should be aware of. Do not hesitate to write us if you are having problems with upgrading your project. We will do our best to assist you.
  • The IFilteringControl.Prepare method now expects the more general type GridViewColumn instead of a GridViewBoundColumnBase as its argument. If you were relying on GridViewBoundColumnBase-specific methods or properties you will have to add a check and a cast
  • The GridViewDistinctValuesLoadingEventArgs.Column property is now of the more general type GridViewColumn. If you were relying on GridViewBoundColumnBase-specific methods or properties you will have to add a check and a cast in your DistinctValuesLoading event handler
  • The GridViewDataControl.GetDistinctValues family of methods now accept a GridViewColumn instead of an IDataFieldDescriptor as their first parameter
  • The EditorCreatedEventArgs.Column is now of the more general type GridViewColumn. If you were relying on GridViewBoundColumnBase-specific methods or properties you will have to add a check and a cast in your DistinctValuesLoading event handler
  • The FilterOperatorsLoadingEventArgs.Column property is now of type GridViewColumn instead of IDataFieldDescriptor
  • The ColumnFilterDescriptor class has been made internal. Use the IColumnFilterDescriptor interface instead. It contains all relevant properties and methods
  • You can't directly instantiate a ColumnFilterDescriptor anymore since the class has been made internal. When you access the GridViewColumn.ColumnFilterDescriptor property, it will be automatically created on demand by the column and you will be given an IColumnFilterDescriptor to work with. For example: IColumnFilterDescriptor cfd = myColumnInstance.ColumnFilterDescriptor;
  • The IColumnFilterDescriptor.Column property is now of type GridViewColumn instead of IDataFieldDescriptor
  • The IColumnFilterDescriptor.DistinctFilter property is now of type IDistinctValuesFilterDescriptor instead of DistinctValuesFilterDescriptor
  • The IColumnFilterDescriptor.FieldFilter property is now of type IFieldFilterDescriptor instead of FieldFilterDescriptor
  • The DistinctValuesFilterDescriptor class has been made internal. It is not supposed to be used directly from your code. Use the IDistinctValuesFilterDescriptor interface instead
  • The FieldFilterDescriptor class has been made internal. It is not supposed to be used directly from your code. Use the IFieldFilterDescriptor interface instead
  • If you were using code from the GridViewCustomSerialization PersistenceFramework example, please update it according to the updated example
  • The GridViewDataControl.OnFiltering method is marked as obsolete now. It is not supposed to be used directly from your code and will be made internal in a future realease
  • The GridViewDataControl.OnFiltered method is marked as obsolete now. It is not supposed to be used directly from your code and will be made internal in a future release.
  • Filtering a Column
    • Old Code:
      GridViewColumn ageColumn = this.radGridView.Columns["Age"];
      ColumnFilterDescriptor ageColumnFilter = new ColumnFilterDescriptor(ageColumn);
      // ...
      ageColumnFilter.DistinctFilter.DistinctValues.Add(5);
      ageColumnFilter.FieldFilter.Filter1.Operator = FilterOperator.IsLessThan;
      ageColumnFilter.FieldFilter.Filter1.Value = 10;
      // ...
      this.radGridView.FilterDescriptors.Add(ageColumnFilter);
    • New Code:
      GridViewColumn ageColumn = this.radGridView.Columns["Age"];
      // Getting it from the property will create it and associate it with its column automatically.
      IColumnFilterDescriptor ageColumnFilter = ageColumn.ColumnFilterDescriptor;
      ageColumnFilter.SuspendNotifications();
      // ...
      ageColumnFilter.DistinctFilter.AddDistinctValue(5);
      ageColumnFilter.FieldFilter.Filter1.Operator = FilterOperator.IsLessThan;
      ageColumnFilter.FieldFilter.Filter1.Value = 10;
      // ...
      // There is no need to manually add the column filter to this.radGridView.FilterDescriptors
      // When the column filter is activated/deactivated it is automatically added/removed to this collection.
      ageColumnFilter.ResumeNotifications();
  • Clearing a Column Filter
    • Old Code:
      this.radGridView.FilterDescriptors.Remove(columnFilterDescriptor);
    • New Code:
      // Calling ClearFilter will automatically remove filter descriptor from the grid.
      myColumn.ClearFilters();
  • Clearing All RadGridView Filters
    • Old Code:
      this.radGridView.FilterDescriptors.Clear();
    • New Code:
      this.radGridView.FilterDescriptors.SuspendNotifications();
      foreach (var column in this.radGridView.Columns)
      {
      column.ClearFilters();
      }
      this.radGridView.FilterDescriptors.ResumeNotifications();

Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>

Rossen Hristov
Telerik team
 asked on 16 Feb 2012
1 answer
100 views
I am making an appointment scheduler and our users like to see the top of the hour cells in a different color to make navigating and booking appointments easier. For example the cells that fall at 9 AM, 10 AM, 11 AM, etc... would be shaded blue.

What would be the best way to do something like this?
Konstantina
Telerik team
 answered on 16 Feb 2012
1 answer
176 views
I use the RadTextBox. I start with a new document and I insert a table (3 rows, 2 cells pr row).
The font in the cells is Calibri 11.
The document is saved as 'Test.docx'.

Now I open the same file/document in Word. The height of all the rows is now doubled.
The font in the cells is Verdana 12.

Now I save the document in Word as Test2.docx.
I close Word and open the file in RichTextBox-editor.
The height of the rows is not doubled any longer, but the font is still Verdana 12.


Iva Toteva
Telerik team
 answered on 16 Feb 2012
2 answers
311 views
Hello Telerik,
I got a small annoyance wit the telerik radmenu, I've defined my own hyierachicaldatatemplate as

<HierarchicalDataTemplate x:Key="MenuItemTemplate" ItemsSource="{Binding Items}">
          <TextBlock Text="{Binding Text}" cal:Message.Attach="[Event PreviewMouseDown] = [Action OpenView($dataContext)]"  cal:Action.TargetWithoutContext="{Binding}" />
      </HierarchicalDataTemplate>

(I use caliburn micro for mvvm pattern)

and I b've defined the radmenu as

<telerik:RadMenu x:Name="MenuList"  ClickToOpen="False"   BorderBrush="Transparent" ItemsSource="{Binding Items}" ItemTemplate="{StaticResource MenuItemTemplate}">
           <telerik:RadMenu.ItemContainerStyle>
              <Style TargetType="telerik:RadMenuItem">
                   
                   <Setter Property="Visibility" Value="{Binding IsVisible,Converter={StaticResource booleanConverter}}"></Setter>
               </Style>
           </telerik:RadMenu.ItemContainerStyle>
           <!--ItemsSource="{Binding Items}" ItemTemplate="{StaticResource MenuItemTemplate}"-->
       </telerik:RadMenu>

The problem I got now is that if I've (as text)

MenuToplevelItem
Voice1    (*)
VoiceLongerThenVoice1

I've to click exacly on Voice 1, if I click where I put (*) it won't call the OpenView() ...same meaning if I click on the left part of the menuitem... it does't work.. how can I style the menuitem in order to a stackpanel/text larger as the largest value?
Thanks
Konstantina
Telerik team
 answered on 16 Feb 2012
1 answer
90 views
In the RadScheduler for WinForms you could set the number of resources you want to show on the screen. So if you have 8 resources and you set it to show 4, it will size it so that 4 resource columns take up the entire grid, and if you scroll over it will show the other resources. Is there a way to do something similar in the ScheduleView?
Valeri Hristov
Telerik team
 answered on 16 Feb 2012
20 answers
1.5K+ views
Hey guys,  I am tyring to capture the drop event in my viewModel using MVVM with the RadDragAndDropManager.  Is it possible to configure the RadDragAndDropManager in XAML such that I can define the handler of the event?

For example, I tried something like this:

        <Style TargetType="telerik:GridViewRow" x:Key="OrderItemStyle">  
            <Setter Property="dragDrop:RadDragAndDropManager.AllowDrop" Value="True" /> 
            <Setter Property="dragDrop:RadDragAndDropManager.DropQueryEvent" Value="OnRowDropQuery" /> 
            <Setter Property="dragDrop:RadDragAndDropManager.AllowDrag" Value="True" /> 
        </Style> 
 

but the DropQueryEvent is not recognized as being available in the RadDragAndDropManager.

Any ideas? 
recotech
Top achievements
Rank 1
 answered on 16 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?