Telerik Forums
UI for WPF Forum
4 answers
124 views
Hello,

I'm using RadGridView with ComboBoxColumns and RowDetailsTemplate like this :
<telerik:RadGridView.Columns>
                <telerik:GridViewToggleRowDetailsColumn></telerik:GridViewToggleRowDetailsColumn>
                <telerik:GridViewComboBoxColumn Name="PositionCombo" Header="Position"         
                    DataMemberBinding="{Binding Path=PositionID , Mode=TwoWay}" DisplayMemberPath="Name" SelectedValueMemberPath="ID" />
                <telerik:GridViewComboBoxColumn Name="StatesCombo" Header="State"  
                    DataMemberBinding="{Binding Path=StateID , Mode=TwoWay}" DisplayMemberPath="Name" SelectedValueMemberPath="ID" />
</telerik:RadGridView.Columns>
<telerik:RadGridView.RowDetailsTemplate>
                <DataTemplate>
                </DataTemplate>
</telerik:RadGridView.RowDetailsTemplate>

Everything works great including editing rows with ComboBoxColumns, but there is a little problem - after I expand specific row, I'm not able to edit that row with ComboBoxColumn anymore (even If I've collapsed it) - there's a red rectangle around - seems like a validation that stops me.

I'm using 2010 Q2 SP2 and LINQ datasources as listed below:

DataClassesDataContext db = new DataClassesDataContext();
this.CandidatesGrid.ItemsSource = new QueryableCollectionView(db.Candidates);
((GridViewComboBoxColumn)this.CandidatesGrid.Columns[1]).ItemsSource = db.Positions;
((GridViewComboBoxColumn)this.CandidatesGrid.Columns[2]).ItemsSource = db.States;

Thanks for any help
Martin
Top achievements
Rank 1
 answered on 12 May 2011
2 answers
104 views
I want to show data from a RadGridView to a TextBlock. I wrote C# and XAML code fine but i can`t understand why it dos`t show any data
Here is Code:
C# Code :

   private void button1_Click(object sender, RoutedEventArgs e)
        {
            DataTable myDataTable = new DataTable();
            DataColumn myDataColumn = new DataColumn();
            myDataColumn.ColumnName = "Name";
            myDataTable.Columns.Add(myDataColumn);
            myDataTable.Rows.Add("1");
            myDataTable.Rows.Add("2");
            myDataTable.Rows.Add("3");
            radGridView1.ItemsSource = myDataTable;
          
        }

And XMAL CODE:

        <telerik:RadGridView HorizontalAlignment="Left" Margin="38,12,0,0" Name="radGridView1" VerticalAlignment="Top" AutoGenerateColumns="False" >
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Name}" Header="Name"/>
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>
        <Button Content="Button" Height="23" HorizontalAlignment="Left" Margin="394,12,0,0" Name="button1" VerticalAlignment="Top" Width="75" Click="button1_Click" />
        <TextBlock Text="{Binding SelectedItem.Name, ElementName=radGridView1}" Margin="12,239,233,8" />


Here i was wrong. Please Help Me. 
Md.Hasanuzzaman
Top achievements
Rank 1
 answered on 12 May 2011
3 answers
150 views
Today I stumbled on a strange behavior using the the telerik GridView. While editing  some cells of a column using the keyboard, suddenly the current cell ignores keyboard input. The effect is repeatable. Always after editing 5-10 celles using every time the same keyboard sequence, the cell ignores normal keyboard input. Only command keys like Del, Backspace or  Home are working. This behavior applies for all cells in the grid. Other input fields are working normally. After closing and re-opening the input window, it starts from scratch until the next occurence of the effect.

A short look with Spy++ shows that the WM_CHAR message will not be sent to the control while the effect occurs. WM_KEYDOWN and WM_KEYUP are sent normally.all the time.

The grid column is defined as:
    <telerik:GridViewDataColumn Header="Translation" DataMemberBinding="{Binding Path=OriginalTranslation}" Width="150*" MinWidth="100" TextWrapping="Wrap" Background="#1EFFFFFF" ShowDistinctFilters="False">
                    <telerik:GridViewDataColumn.CellTemplate>
                        <DataTemplate>
                            <TextBlock Text="{Binding Path=Translation}" TextWrapping="Wrap" Background="#1EFFFFFF" />
                        </DataTemplate>
                    </telerik:GridViewDataColumn.CellTemplate>
                    <telerik:GridViewDataColumn.CellEditTemplate>
                        <DataTemplate>
                            <TextBox Text="{Binding Path=Translation}" TextWrapping="Wrap" BorderThickness="0" GotFocus="TextBox_GotFocus" Background="#1EFFFFFF" />
                        </DataTemplate>
                    </telerik:GridViewDataColumn.CellEditTemplate>
                </telerik:GridViewDataColumn>


Any idea what ist going wrong?

Regards Reimund
Yordanka
Telerik team
 answered on 12 May 2011
1 answer
102 views
When I use SelectionMode="Extended" and select rows (it doesn't seem to matter whether selecting a range or one at a time via Ctrl+click) and then copy/paste, the last row is always omitted.  Has anyone else had this issue, and has anyone come up with a solution?  Thanks!
Yordanka
Telerik team
 answered on 12 May 2011
5 answers
115 views
Hi
I need to place next radtabmenu partially on top of the previous one
May I ask what needs to be done to achieve this effect? thanks

 <telerik:RadTabItem Padding="4 3" x:Name="test" HeaderTemplate="{DynamicResource radTabItemTemplate}" Height="70" />

    <DataTemplate x:Key="radTabItemTemplate">
        <Grid>
            <Image Grid.Column="0" Source="pack://application:,,,/Images;component/images/greenarrow.gif"/>   
            <TextBlock Text="Security" Width="60" VerticalAlignment="Center" />
        </Grid>
    </DataTemplate>

thanks
george
Top achievements
Rank 1
 answered on 12 May 2011
1 answer
330 views
Hello. I was wondering if it was possible to override a single property of the telerik themes.

For instance, if I use Telerik:StyleManager.Theme to apply the Office_Black theme to all textbox controls can I override the VerticalAlignment property to make it "Top"? I tried to override just that one property both in a resource and locally in the xaml on the control itself and neither one worked.

I've read a few things that say that you cannot override just one property in a theme applied to controls.

Any help would be greatly appreciated.

Thanks,

John
Vanya Pavlova
Telerik team
 answered on 11 May 2011
0 answers
49 views
Hi
I'm Using the Entity framework 4 as my data access and i binding the grid data context to an ranks entity-set
but but when it's make database select to count the records every time i update the grid-view

InitializeComponent();
RanksGridView.ItemsSource = _crewing.Ranks.OrderBy(r=>r.Name);
Mahmoud
Top achievements
Rank 1
 asked on 11 May 2011
1 answer
92 views

I'm creating a MVVM application (WPF Browser Application) which uses RadWindow to show images. Every time I open image with the RadWindow and close it, the memory usage continues increased and never fall back, at the end, it will throw Out of Memory exception. Is there anyone know why RadWindow can not free the memory it used.

George
Telerik team
 answered on 11 May 2011
4 answers
276 views
Hello,

I have implemented a custom Menu similar to the one shown in the demos [http://demos.telerik.com/wpf/Telerik.Windows.Examples.xbap] using WPF. I am using the "Integration Example" which combines an Image, a Title and a Summary. The problem I am facing is that I can't figure out how I can attach the MenuItem_Click event when a user click on different menu. I tried the following but it does not work:
<telerik:RadMenu Grid.Row="1"
Style
="{StaticResource MenuStyle}"
ItemsSource
="{StaticResource MenuItemsSource}"
ItemContainerStyleSelector
="{StaticResource MenuItemStyleSelector}"
ItemContainerStyle
="{x:Null}"
MenuItem.Click="MenuItem_Click"/>


Any idea how I can attach the MenuItem_Click event ?

Thanks.
Yas
Top achievements
Rank 1
 answered on 11 May 2011
1 answer
42 views
 Hi,,
I am using 2D scattered point series. On X axis, i made  PlotAreaAxisLabelsVisibility="Visible" to show the numbering on center of graph. My min x value is -1.5 and max is 1.5. When I zoom, the numbering on the bottom x-axis line is changing but Center x-axis line numbering stays -1.5-1.5. Any suggestion. 
Evgenia
Telerik team
 answered on 11 May 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?