Telerik Forums
UI for WPF Forum
1 answer
90 views
SelectedItem is null after set

i checked why it happened and appearently there was a problem inside
Telerik.Windows.Data.Dll
in the class
DataControl

on the  SelectedItem Property
inside the

ItemCoerce function

the Items.CollectionView is null so it doesn't seceed with the IndexOf
and nothing is selected

now it all happens because the Items.CollectionView is null
i also tried to set the ItemSource & DataContext Before the assigment of selectedItem
but it didn't helped

what should i do to make it work?

thanks

igal a
Top achievements
Rank 1
 answered on 12 Dec 2009
5 answers
315 views
Hi Guys

I am trying to bind my chart to a ObservableCollection of ObservableCollections is this possible?

I have worked look at ms-help://telerik.windows.controls/telerik.windows.controls.charting/data-binding-series-mappings.html but no joy. Do you have a sample of this in VB ?

Velin
Telerik team
 answered on 11 Dec 2009
0 answers
104 views
Hi,
I tried to build QuickStart dll, but it gave me error:
'Telerik.Windows.Controls.ThemeManager' does not contain a definition for 'StandardThemeNames'
I found that StandardThemeNames was defined as internal in 'Telerik.Windows.Controls.ThemeManager'
Please help, i need to build and debug to learn the QSF.

Thanks in advance.
Duy Doan

Duy
Top achievements
Rank 1
 asked on 11 Dec 2009
2 answers
132 views
Hi,

is there a possibility to select or to doubleclick a row only by clicking on the RowIndicator? 

I need an event to open a new Window in a RadGridView. 
The double click event of the RadGridView works, but if you try to change a value of a column and if you are clicking too fast, you will hit the double click event.
EAkbari
Top achievements
Rank 1
 answered on 11 Dec 2009
4 answers
170 views

Can I adjust RadDocking so that I would be able to place RadPane into one (tabbed) or a few RadPaneGroups, but within the same DocumentHost?

For example:

write:


- <RadDocking>
- <DocumentHost>
- <RadSplitContainer Orientation="Horizontal">
- <Items>
- <RadPaneGroup>
- <Items>  <RadPane/>  </Items>
  </RadPaneGroup>
- <RadPaneGroup>
- <Items>
  <RadPane/>
  </Items>
  </RadPaneGroup>
  </Items>
  </RadSplitContainer>
  </DocumentHost>
- <SplitContainers>
- <RadSplitContainer Dock="DockedRight">
- <Items>
- <RadPaneGroup>
  <Items />
  </RadPaneGroup>
  </Items>
  </RadSplitContainer>
...........


Write:
- <RadDocking>
- <DocumentHost>
- <RadSplitContainer Orientation="Horizontal">
- <Items>
- <RadPaneGroup>
- <Items>  <RadPane/> <RadPane/>  </Items>
  </RadPaneGroup>
  </Items>
  </RadSplitContainer>
  </DocumentHost>
- <SplitContainers>
- <RadSplitContainer Dock="DockedRight">
- <Items>
- <RadPaneGroup>
  <Items />
  </RadPaneGroup>
  </Items>
  </RadSplitContainer>
...........


wrong:
<RadDocking>
- <DocumentHost>
- <RadSplitContainer Orientation="Horizontal">
- <Items>
- <RadPaneGroup>
- <Items>  <RadPane/>  </Items>
  </RadPaneGroup>
  </Items>
  </RadSplitContainer>
  </DocumentHost>
- <SplitContainers>
- <RadSplitContainer Dock="DockedRight">
- <Items>
- <RadPaneGroup>
  <Items><RadPane/></Items>
  </RadPaneGroup>
  </Items>
  </RadSplitContainer>
..........


wrong:
<RadDocking>
- <DocumentHost>
- <RadSplitContainer Orientation="Horizontal">
- <Items>
- <RadPaneGroup>
- <Items>  <RadPane/>  </Items>
  </RadPaneGroup>
  </Items>
  </RadSplitContainer>
  </DocumentHost>
- <SplitContainers>
- <RadSplitContainer Dock="DockedRight">
- <Items>
- <RadPaneGroup>
  <Items/>
  </RadPaneGroup>
  </Items>
  </RadSplitContainer>
..........
..........
..........
- <RadSplitContainer InitialPosition="FloatingDockable">
- <Items>
- <RadPaneGroup>
- <Items>
  <RadPane/>
  </Items>
  </RadPaneGroup>
  </Items>
  </RadSplitContainer>






Nikolay Chekalkin
Top achievements
Rank 1
 answered on 11 Dec 2009
1 answer
378 views
Hello
I have a Hierarchy grid
I add a MouseDoubleClick event both to my
parent and child grids
the problem is
when I double click the child
the event raise twice, once to the child and then to the parent.
Milan
Telerik team
 answered on 10 Dec 2009
1 answer
115 views
I have in my .xaml the following code:

<telerik:RadGridView x:Name="radGridView1" IsReadOnly="True" Grid.Column="1" Grid.Row="1" Margin="0,0,0,5" Grid.RowSpan="3"
    <telerik:RadGridView.Columns> 
                
    <telerik:GridViewDataColumn Header="Mesa" DataMemberBinding="{Binding mesa}"
        <telerik:GridViewColumn.AggregateFunctions> 
            <telerik:CountFunction Caption="# Registros encontrados: " /> 
        </telerik:GridViewColumn.AggregateFunctions>      
    </telerik:GridViewDataColumn> 
    <telerik:GridViewDataColumn x:Name="efectivo" Header="efectivo" DataMemberBinding="{Binding efectivo}"
        <telerik:GridViewColumn.AggregateFunctions> 
            <telerik:SumFunction Caption="Total: " /> 
        </telerik:GridViewColumn.AggregateFunctions> 
    </telerik:GridViewDataColumn> 

    .
    .
    .
    .

the count function works but the sum function doesn't, it says in spanish something like "There isn't a 'Sum' method in the 'System.Linq.Enumerable' type, compatible with the specified arguments."
The ItemSource that i'm binding is an Arraylist that contains objects of an object type that i created.


ArrayList listaMesas = Oper_SoftCount.consultarFecha(dt); 
this.radGridView1.ItemsSource = listaMesas


and the other problem is that the columns that have the aggregate functions, duplicate.

<telerik:GridViewDataColumn Header="Mesa" DataMemberBinding="{Binding mesa}">
                    <telerik:GridViewColumn.AggregateFunctions>
                        <telerik:CountFunction Caption="# Registros encontrados: " />
                    </telerik:GridViewColumn.AggregateFunctions>     
                </telerik:GridViewDataColumn>
                <telerik:GridViewDataColumn x:Name="efectivo" Header="efectivo" DataMemberBinding="{Binding efectivo}">
                    <telerik:GridViewColumn.AggregateFunctions>
                        <telerik:SumFunction Caption="Total: " />
                    </telerik:GridViewColumn.AggregateFunctions>
                </telerik:GridViewDataColumn>
Rossen Hristov
Telerik team
 answered on 10 Dec 2009
2 answers
133 views
Hello

The SelectedItem property of the treeview does not always contain what I would expect.
Examples:
  1. Cancel Selection
    The ItemsSource property is bound to a collection containing A and B objects. I want that only the A object are selectable. The B objects are just for information. I use the following code:
    void radTreeView_PreviewSelected(object sender, Telerik.Windows.RadRoutedEventArgs e) 
      // get a reference to the item that will be selected   
      RadTreeViewItem itemToSelect = e.OriginalSource as RadTreeViewItem;   
     
      // check item that will be selected   
      if (itemToSelect != null && itemToSelect.Item is B) 
      { 
        e.Handled = true
      } 
    However, the SelectedItem property contains the B object afterwards. I would expect the SelectedItem property to be null.
  2. Remove the selected item from the bound collection
    If I remove the currently selected item from the bound collection, then the node has disappeard as I expected, but the SelectedItem property still contains the removed object. I would expect, that the SelectedItem property always contains objects that are also in the ItemsCollection or null otherwise.

How should I handle these use cases? Binding to another property?

Best regards,
Franziska
Franziska
Top achievements
Rank 1
 answered on 10 Dec 2009
0 answers
57 views
Our latest Q3 2009 SP1 release (version 2009.3.1208) uses WCF RIA Services Beta for Visual Studio 2008 SP1. In other words, you should install this WCF RIA Services to be able to load our demos locally.

Please use the URL above to go to the download page of WCF RIA Services Beta for Visual Studio 2008 SP1.
Telerik Admin
Top achievements
Rank 1
Iron
 asked on 10 Dec 2009
1 answer
123 views
Hi there,

Has anybody else have had issues setting the DisplayDateEnd of the RadDatePicker to a date in the past? Whenever I do it, I get an ArgumentOutOfRangeException : Invalid DisplayDateEnd value. Paramter name: sender.

I'm using ver 2009.2.1002.35

Thank you very much,
Peter

PS - Here is the stack trace :
 at Telerik.Windows.Controls.RadCalendar.OnDisplayDateEndChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e) in c:\Builds\WPF_Scrum\Input_WPF_2009_Q2_SP2\Sources\Development\Controls\Input\Calendar\RadCalendar.cs:line 3042
   at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, OperationType operationType)
   at System.Windows.StyleHelper.ApplyTemplatedParentValue(DependencyObject container, FrameworkObject child, Int32 childIndex, FrugalStructList`1& childRecordFromChildIndex, DependencyProperty dp, FrameworkElementFactory templateRoot)
   at System.Windows.StyleHelper.InvalidatePropertiesOnTemplateNode(DependencyObject container, FrameworkObject child, Int32 childIndex, FrugalStructList`1& childRecordFromChildIndex, Boolean isDetach, FrameworkElementFactory templateRoot)
   at System.Windows.StyleHelper.LoadOptimizedTemplateContent(DependencyObject container, ParserContext parserContext, OptimizedTemplateContent optimizedTemplateContent, FrameworkTemplate frameworkTemplate, IComponentConnector componentConnector, IStyleConnector styleConnector, List`1 affectedChildren, UncommonField`1 templatedNonFeChildrenField)
   at System.Windows.FrameworkTemplate.LoadContent(DependencyObject container, List`1 affectedChildren, UncommonField`1 templatedNonFeChildrenField)
   at System.Windows.StyleHelper.ApplyTemplateContent(UncommonField`1 dataField, DependencyObject container, FrameworkElementFactory templateRoot, Int32 lastChildIndex, HybridDictionary childIndexFromChildID, FrameworkTemplate frameworkTemplate)
   at System.Windows.FrameworkTemplate.ApplyTemplateContent(UncommonField`1 templateDataField, FrameworkElement container)
   at System.Windows.FrameworkElement.ApplyTemplate()
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
   at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Border.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Control.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
   at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
   at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Border.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Control.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
   at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.ContextLayoutManager.UpdateLayout()
   .
   .
   .
Kaloyan
Telerik team
 answered on 10 Dec 2009
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?