Telerik Forums
UI for WPF Forum
2 answers
330 views
Anyone know how to grey out a row within a gridview.

I want to be able to see the row, just basically dimmed? 

Any ideas?

Bryan
Bryan
Top achievements
Rank 1
 answered on 28 Mar 2011
4 answers
577 views
Hi
I'm trying to replace my wpf listview with radgridview, but the selecteditem binding to the observablecollection does not work.

<ListView Name="lboRoles" Grid.Row="1" Grid.Column="0" ItemsSource="{Binding}" Grid.ColumnSpan="1" IsSynchronizedWithCurrentItem="True"  SelectionMode="Single" >
     <ListView.View>
         <GridView>
             <GridViewColumn Header="Name" Width="200"  DisplayMemberBinding="{Binding Path=Name}"/>
             <GridViewColumn Header="Description" Width="200"  DisplayMemberBinding="{Binding Path=Description}"/>
         </GridView>
     </ListView.View>
 </ListView>
 <mytelerik:RadGridView x:Name="gvRoles" ItemsSource="{Binding}" SelectionMode="Single" IsReadOnly="True" 
                        Grid.Column="0" Grid.Row="0" IsSynchronizedWithCurrentItem="True" AutoGenerateColumns="False" 
                        ShowGroupPanel="False" CanUserFreezeColumns="False" ShowColumnFooters="False">
     <mytelerik:RadGridView.Columns>
         <mytelerik:GridViewDataColumn Header="Name" DataMemberBinding="{Binding Name}">
         </mytelerik:GridViewDataColumn>
         <mytelerik:GridViewDataColumn Header="Description" DataMemberBinding="{Binding Description}">
         </mytelerik:GridViewDataColumn>
     </mytelerik:RadGridView.Columns>
 </mytelerik:RadGridView>


When selecting a row in the listview, the observablecollection currentrow is changed, but not when selecting a row in the radgridview.
Is there a different way to do this with radgridview? Do I need a binding to selecteditem?

Knut

Milan
Telerik team
 answered on 28 Mar 2011
3 answers
295 views
Hi,

I am trying to have a single expand Hierarchy in my GridView, in the RowIsExpandedChanged events i am checking if the row is expanded and i am collapsing the other rows with the CollapseHierarchyItem.

What is happening is that the RowIsExpandedChanged event is raised again when calling CollapseHierarchyItem, how to collapse rows without firing the RowIsExpandedChanged events.

Thanks.
Milan
Telerik team
 answered on 28 Mar 2011
2 answers
97 views
Hi,

I'm trying to edit a row of a gridview in my xbap. If I run my application in full trust mode I don't have any problem, but if I run it in partial trust mode I always get a security exception

Locating source for 'c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\GridView\GridView\GridView\GridViewDataControl.cs'. Checksum: MD5 {b c4 c7 29 2c b1 86 4f e7 9a ae 68 9f bb e1 f1}
The file 'c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\GridView\GridView\GridView\GridViewDataControl.cs' does not exist.
Looking in script documents for 'c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\GridView\GridView\GridView\GridViewDataControl.cs'...
Looking in the projects for 'c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\GridView\GridView\GridView\GridViewDataControl.cs'.
The file was not found in a project.
Looking in directory 'c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\crt\src\'...
Looking in directory 'c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\src\mfc\'...
Looking in directory 'c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\src\atl\'...
Looking in directory 'c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\'...
The debug source files settings for the active solution indicate that the debugger will not ask the user to find the file: c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\GridView\GridView\GridView\GridViewDataControl.cs.
The debugger could not locate the source file 'c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\GridView\GridView\GridView\GridViewDataControl.cs'.

I' m running the project on visual studio 2010 sp1, any help will be greatly appreciated since I really don't know what is happening


François
francois
Top achievements
Rank 1
 answered on 28 Mar 2011
3 answers
74 views
Is it possible for the user to set the row height by dragging the mouse on the border of a row - similar to the way column sizing works??
bernd kopp
Top achievements
Rank 1
 answered on 28 Mar 2011
3 answers
165 views
Hi, 
I download the RADcontrols for WPF4.0 trial to test some examples.

I open ExamplesCS_WPF Solution and set the project Examples.Xbap as starting project

when i compile i get this errors:

Error 12 Unexpected error creating debug information file 'C:\Program Files\Telerik\RadControls for WPF Q1 2011\Demos\Examples.Xbap\obj\Debug\Telerik.Windows.Examples.PDB' -- 'Unspecified error ' Examples.Xbap

Error 13 Unexpected error creating debug information file 'C:\Program Files\Telerik\RadControls for WPF Q1 2011\Demos\Examples.WPF\obj\x86\Debug\Telerik.Windows.Examples.PDB' -- 'Unspecified error ' Examples.WPF

The demos online works but not the version for download.

Am I doing something wrong? (i didn't find any step by step tutorial for executing the examples)

Is there some tutorial for making my own demos using the rad controls?

Greetings.
Milan
Telerik team
 answered on 28 Mar 2011
1 answer
413 views
<Grid>
        <StackPanel>
            <StackPanel>
                <StackPanel Orientation="Horizontal">
                    <Label Content="Enter Name"/>
                    <TextBox Height="25" Width="200" Background="AliceBlue" Text="{Binding Name}"/>
                </StackPanel>
                <StackPanel Orientation="Horizontal">
                    <Label Content="Enter Age"/>
                    <TextBox Height="25" Width="200" Background="AliceBlue" Text="{Binding Age}"/>
                </StackPanel>
           </StackPanel>
           <telerik:RadGridView Grid.Row="2" x:Name="orderView" ItemsSource="{Binding Order}" AutoGenerateColumns="False">
                <telerik:RadGridView.Columns>
                    <telerik:GridViewToggleRowDetailsColumn >
                        <!--<i:Interaction.Triggers>
                            <i:EventTrigger EventName="CellClick" >
                                <cmd:EventToCommand Command="{Binding Path=OrderCellClickCommand}" PassEventArgsToCommand="True" />
                            </i:EventTrigger>
                        </i:Interaction.Triggers>-->
                    </telerik:GridViewToggleRowDetailsColumn >
                    <telerik:GridViewSelectColumn Header="Select" x:Name="chkbox"/>
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding CustomerName}" Header="Name" />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding Age}" Header="Age" />
                </telerik:RadGridView.Columns>
                <telerik:RadGridView.RowDetailsTemplate>
                    <DataTemplate >
                        <StackPanel >
                            <StackPanel Orientation="Horizontal">
                                <Label Content="Enter Name"/>
                                <TextBox Height="25" Width="200" Background="AliceBlue" Text="{Binding CustomerName}"/>
                            </StackPanel>
                            <StackPanel Orientation="Horizontal">
                                <Label Content="Enter Age"/>
                                <TextBox Height="25" Width="200" Background="AliceBlue" Text="{Binding Age}"/>
                            </StackPanel>
                        </StackPanel>
                    </DataTemplate>
                </telerik:RadGridView.RowDetailsTemplate>
            </telerik:RadGridView>
            <Button Height="25" Width="80" Content="Add Order">
                <i:Interaction.Triggers>
                    <i:EventTrigger EventName="Click">
                        <cmd:EventToCommand Command="{Binding Path=AddOrderClickCommand}" PassEventArgsToCommand="True" />
                    </i:EventTrigger>
                </i:Interaction.Triggers>  
            </Button>
        </StackPanel>
    </Grid>
Hi,
I have a Observable collection bind to a datagrid dynamically.
I have used a RowDetailsTemplete to have same replica of view.
Here if i update anything in RowDetailsTemplet, it sholud update the Observable collection.
I set the Datcontext to DataTemplet but one row update reflects all other rows .
Please advice how i can achieve a particaular row tobe updated on Data changed in RowDataTemplate.
Also i need data tobe bind to RowDetailsTemplate on expand of row.
Rossen Hristov
Telerik team
 answered on 28 Mar 2011
3 answers
264 views

Hello,

I had some troubles with the behavior of the RadTabControl with 2010 Q3. This has improved with 2011 Q1, or maybe I just got better at handling the Telerik controls. But it still behaves strangely when I set the TabIndex of the controls within the TabItems.

<Window x:Class="WPFApplication1.MainWindow"
        Title="Window1">
        <StackPanel>
        <telerik:RadMaskedTextBox MaskType="None" MaskedText="Text1" IsTabStop="True" TabIndex="1" />
        <telerik:RadTabControl>
            <telerik:RadTabItem Header="Header 1" IsTabStop="True" TabIndex="2" IsSelected="True">
                <StackPanel>
                    <telerik:RadMaskedTextBox MaskType="None" MaskedText="Text2" IsTabStop="True" TabIndex="3" />
                    <telerik:RadMaskedTextBox MaskType="None" MaskedText="Text3" IsTabStop="True" TabIndex="4" />
                </StackPanel>
            </telerik:RadTabItem>
            <telerik:RadTabItem Header="Header 2" IsTabStop="True" TabIndex="5">
                <StackPanel>
                    <telerik:RadMaskedTextBox MaskType="None" MaskedText="Text4" IsTabStop="True" TabIndex="6" />
                    <telerik:RadMaskedTextBox MaskType="None" MaskedText="Text5" IsTabStop="True" TabIndex="7" />
                </StackPanel>
            </telerik:RadTabItem>
        </telerik:RadTabControl>
    </StackPanel>
</Window>
In the small example above the focus moves from the TextBox with "Text1" to that with "Text2" then to the one with "Text3" and only then to the TabItem with "Header 1", although that has a lower TabIndex and should come first. If I remove the TabIndex property from the controls within the TabItems the behavior is as expected and the focus is on the header before it is on "Text2".

In this simple example it doesn't really matter of course, the TabIndex property is not needed for correct movement within the TabItems. In all the cases I can think of right now the position of the control within the xaml code should be sufficient to ensure the right order. There may however be some situation requiring TabIndices and then they should work correctly.

Petar Mladenov
Telerik team
 answered on 28 Mar 2011
1 answer
138 views
Hi guys,
Would you plz so kind to provide me with RadTreeListView Style.
thank you.
J.
Vanya Pavlova
Telerik team
 answered on 28 Mar 2011
3 answers
97 views
Hi,
I have a tree control with multiple selection mode. my problem is that when i select multiple item, tree control always set the focus to the first selected item. these cause mpre problem when tree control has scroller bar. i tried to set the focus manully but it's not working.

Thanks
Bala
Petar Mladenov
Telerik team
 answered on 28 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?