Telerik Forums
UI for WPF Forum
1 answer
183 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
123 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
92 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
84 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
54 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
90 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
4 answers
177 views

After assigning GridView ItemsSource to an ObjectSet<Company>  as below:

 

radGridView.ItemsSource = context.Companies

(context is the ObjectContext from Entity Framework 4.0), the only way to automatically get the GridView updated with inserted/deleted items is by calling context.SaveChanges(); this approach is not well suitable, at least, for my needs since I’ve to commit any single change instead of gathering all changes, grouping and filtering on row state (see EntityState property and Added, Modified and Unmodified values), and finally committing.

Where my approach is correct, due to the relevance of Entity Framework in .NET 4.0 platform, are you planning a tighter integration? If yes, what and when?  

Thanks

Ivano
Top achievements
Rank 1
 answered on 26 Apr 2010
2 answers
438 views
Hi Telerik Team,

How to reset or refresh the Grid view to its original or default sizing mode ?

I set the column with mode to auto and I'm having custom filters to bind the data. If I altered the column sizes and perform another binding the column sizes are not reset.

I tried even binding null data source before binding the actual data. Is there a way to reset the sizing to auto on each binding.

thanks & regards
yenkay


yenkay
Top achievements
Rank 2
 answered on 26 Apr 2010
2 answers
121 views

Hello,

I have a chart with 8 data series, like the live data example in the WPF Demos.

I want to hide one ore more of these series, I tried to set the SeriesVisibility of the corresponding SeriesMapping, but it doesn't seem to work. How can I achieve this without removing the SeriesMapping?

Mathias Parge
Top achievements
Rank 1
 answered on 26 Apr 2010
2 answers
279 views
Hi

I have a Column which generates its Cell Template and its Cell Edit Template using template selectors in code. I need this because the information in that particular column changes according the values selected in the other columns. One of the template generated from my Edit Template Selector class is a RadGridView. 

I have a big PROBLEM. When I click that particular column so its enter in edit mode and get the RadGridView template from the template selector class it shows the RadGridView inside the cell perfectly but as soon as I click in any of the internal RadGridView rows to select them, it lost focus and the cell enter in its regular mode.

Any ideas who to overcome this, so I can interact with the internal generated RadGridView.

Some of the code;
Definition of the Column with its template selectors
<telerik:GridViewDataColumn Header="Criteria" CellEditTemplateSelector="{StaticResource CellEditTemplateSelector}"  CellTemplateSelector="{StaticResource CellTemplateSelector}"/> 

The piece of code that returns the RadGridView in the CellEditTemplateSelector Class:

return (container as GridViewCell).FindResource("RangeGridSelector"as DataTemplate; 

The DataTemplate Resource with the RadGridView definition
                            <DataTemplate x:Key="RangeGridSelector"
                                    <telerik:RadGridView AutoGenerateColumns="False" 
                                                ShowGroupPanel="False" 
                                                CanUserReorderColumns="False" 
                                                 ItemsSource="{Binding Path=Criterias}"
                                        <telerik:RadGridView.Columns> 
                                            <telerik:GridViewSelectColumn /> 
                                            <telerik:GridViewDataColumn Header="Criteria"  DataMemberBinding="{Binding}"/> 
                                        </telerik:RadGridView.Columns> 
                                    </telerik:RadGridView> 
                            </DataTemplate> 

PD: Forgot to mention that I am using the latest internal build of WPF RadControls 2010.1.0416
Ariel Gonzalez
Top achievements
Rank 1
 answered on 26 Apr 2010
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?