Telerik Forums
UI for WPF Forum
10 answers
146 views
Hi,

I am trying to get all checked items from the TreeView.
My problem is this:
i am using  MyTelerikTree.CheckedItems  to get a list of all the checked elements in the tree.
my tree has a 3 level deep hierarchy, and i am only interested in the checked items of the deepest level.


if the tree was never expended i only get the root element as "Checked"
I assume this is happening because the tree is using virtual elements created on the fly.
Now, if the root element is fully checked, then it would be safe to assume all children are selected, and that's fine.
However, if i select just one of the branches or leaves in the tree (so that the root is partially checked) i get it as part of the CheckedItems list.
This would have been fine as well if the tree was not vitrualizing - i could have simply looked at the deepest checked level.
the problem is that if the tree is collapsed and i check the root, i only get the root on the CheckedItems.

In short:
If i treat a checked element as if all it's children are checked, i will sometimes add unchecked elements
If i treat  only checked elements as checked (and not the children) i will miss the checked children..

So my question is - how do i bridge these conflicting issues?


Thanks,
Yossi.



Kiril Stanoev
Telerik team
 answered on 27 Apr 2010
1 answer
96 views
Hi,

I am using Q1 2010 of WPF RAD Controls.

I have a calendar where I need to use the DayTemplateSelector and a custom DayButtonStyle. The problem that I am having is that when I apply my custom DayTemplateSelector, my style goes back to the default style. Is this a bug or limitation?

Thanks,
Gus
Konstantina
Telerik team
 answered on 27 Apr 2010
0 answers
162 views
How to compile WPF VB examples in VS2010?

If you are already using the new VS2010 and want to compile WPF examples which are written and built in VS2008, you need to perform some additional actions to achieve clear compilation. When VS2010 converts all examples one unnecessary file is generated and others appear to be not correctly converted, all of them related with Northwind Data Sources which are used in RadGridView examples.

These are the steps for successful compilation:

1.   Replace “Global.Telerik.Windows.Examples.Properties.Settings.Default.NorthwindConnectionString” with “Settings.Default.NorthwindConnectionString”
2.   Import suggested adapters
3.   Rebuild solution

How to compile WPF C# examples in VS2010?

If you are already using the new VS2010 and want to compile WPF examples which are written and built in VS2008, you need to perform an additional action to achieve clear compilation. When VS2010 converts all examples one unnecessary file is generated (Northwind1.designer.cs), related with Northwind Data Sources which is used in RadGridView examples. Simple delete this file and the compilation will be successful.
Telerik Admin
Top achievements
Rank 1
Iron
 asked on 27 Apr 2010
4 answers
133 views
Hi Telerik,

Does Gridview provide multiple column sort functionality? If yes how can i achieve that functionality.

Thanks,
-Kranthi
Vlad
Telerik team
 answered on 27 Apr 2010
1 answer
179 views
I can't find the API in gridview or gridviewdatacolumn to reference my embedded combo box or textbox. This is a multiple row and columns gridview and requires my user to select a combo box value that triggers textbox changes. Without a way to get the object reference during selection change event makes it very difficult.

For the example below, I need to reference object TxtTest3 on the same row where user select a value on CBTest2.

Any help is appreciated.


<Controls:RadGridView x:Name="DataTable" AutoGenerateColumns="False" ItemsSource="{Binding Path=Banks}"  Loaded="DataTable_Loaded" ShowColumnHeaders="True" IsFilteringAllowed="True" IsEnabled="True" CanUserSortColumns="True" ShowGroupPanel="False" CanUserSelect="False">
    <Controls:RadGridView.Columns>

        <Controls:GridViewDataColumn Header="Test" UniqueName="Test" >
            <Controls:GridViewDataColumn.CellTemplate>
            <DataTemplate>
                <telerikControl:RadButton>
                <Image x:Name="ImageTest"  Source="{Binding Image}" Stretch="Fill" Tag="1" MouseDown="ImageTest_MouseDown" Loaded="ImageTest_Loaded"/>
                </telerikControl:RadButton>
            </DataTemplate>
            </Controls:GridViewDataColumn.CellTemplate>
        </Controls:GridViewDataColumn>

        <Controls:GridViewDataColumn DataMemberBinding="{Binding Test1}" Header="Test1"  UniqueName="Test1" IsReadOnly="True" />

        <Controls:GridViewDataColumn x:Name="CBTest2" Header="Test2" UniqueName="Test2">
            <Controls:GridViewDataColumn.CellTemplate>
                <DataTemplate>
                    <telerikInput:RadComboBox Name="CBTest2" ItemsSource="{Binding Path=Test2Store, Mode=OneWay}"  SelectedValue="{Binding Path=Test2Value}" SelectedValuePath="Test2_id"  DisplayMemberPath="Test2info_value" Width="auto" Height="auto" Loaded="Test2_Loaded" SelectionChanged="Test2_Changed" />
                </DataTemplate>
            </Controls:GridViewDataColumn.CellTemplate>
        </Controls:GridViewDataColumn>

        <Controls:GridViewDataColumn x:Name="TxtTest3" Header="Test3" UniqueName="Test3">
        <Controls:GridViewDataColumn.CellTemplate>
            <DataTemplate>
                <TextBox Name="TxtTest3" Style="{StaticResource TextBoxHighlighter}" HorizontalAlignment="Stretch" HorizontalContentAlignment="Right" Loaded="Test3_Loaded" LostFocus="Test3_LostFocus" >
            </TextBox>
            </DataTemplate>
        </Controls:GridViewDataColumn.CellTemplate>
    </Controls:GridViewDataColumn>


</Controls:RadGridView>     
Vlad
Telerik team
 answered on 27 Apr 2010
3 answers
117 views
I am using the Drag and Drop manager to drag from a Telerik Grid to a RadCarousel.  Everytime the mouse moves over the carousel with the left button held down, it immediatly scrolls to the frist item.  How do I stop this?

David Ribb
Milan
Telerik team
 answered on 26 Apr 2010
1 answer
89 views
Does anyone know how to set the ZoomScrollSettings via XAML? Or is this not currently supported. I am currently implementing an MVVM approach to a charting program, and am not able to figure out how/find documentation on setting this through XAML. I have achieved the desired effect using the code-behind to set the setttings, but would rather use XAML.

Also, are there any plans to support the setting of these properties through Blend?

Thanks,
Ryan
Ves
Telerik team
 answered on 26 Apr 2010
3 answers
79 views
Hi guys,

The bottom timepicker in First Look reacts only when clicked exactly on arrow, not on entire drop down button. This happens on Windows7 theme.
Konstantina
Telerik team
 answered on 26 Apr 2010
1 answer
52 views
Hi,telerik.
I  need your help.

After I upgraded my project to 2010Q1,the icons on the Menu control cannot be shown!

Is there any changed?

My code:
        <telerik:RadMenu Height="25" VerticalAlignment="Top" Name="toolMenu">
            <telerik:RadMenuItem Width="25" ToolTip="new file" Height="25"  Name="btnNew" Margin="5,0,0,0" Click="btnNew_Click">
                <telerik:RadMenuItem.Icon>
                    <Image Source="/Images/newSmall.png" Width="20" Height="20"/>
                </telerik:RadMenuItem.Icon>
            </telerik:RadMenuItem>
      </telerik:RadMenu>

Thank you!
Boyan
Telerik team
 answered on 26 Apr 2010
1 answer
86 views
Hello guys,

I was wondering what is the easiest way to apply a theme (in my case Office_Black) to a RadTileView-or i should use MS Blend to edit a copy of the template because the trick with the StyleManager is not working in my case....



Thanks in advance!
Ваня
Top achievements
Rank 1
 answered on 26 Apr 2010
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?