This is a migrated thread and some comments may be shown as answers.

Assign Rad Combo Box itemtemplate inside GridviewComboBoxColumn

7 Answers 105 Views
GridView
This is a migrated thread and some comments may be shown as answers.
varsha Motwani
Top achievements
Rank 1
varsha Motwani asked on 07 Jun 2010, 03:41 PM

Hi,
I have a radgridview with Child table.Inside childtable I have GridviewComboBox Column inside child Table.

I want to create item teamplate for this combobox inside GridviewComboBox Column.

 

Please advice.

Or Can you please tell me how do I refer to the column from Code behind to set its itemsource dynamically.
I tried to set it in Child Grid loaded event ,but its not working out

7 Answers, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 08 Jun 2010, 07:56 AM
Hello varsha Motwani,

Please upgrade to the latst binaries. They contain an ItemTemplate property for the ComboBoxColumn.

Sincerely yours,
Pavel Pavlov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
varsha Motwani
Top achievements
Rank 1
answered on 08 Jun 2010, 08:50 AM
Hi,
Thanks for your answer.
Can you please tell me how do I refer gridviewComboBoxColumn which is in child data grid from code behind and which event I should be able to get this.
0
Pavel Pavlov
Telerik team
answered on 08 Jun 2010, 08:52 AM
Hello varsha Motwani,

Can you please paste me your code so i can see how do you set up your hierarchy  and I am sure we can think of some solution.

Sincerely yours,
Pavel Pavlov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
varsha Motwani
Top achievements
Rank 1
answered on 08 Jun 2010, 10:29 AM

Below is the xaml I am creating.Can you please tell me If I have one gridviewdropdown column in Hierarrichal grid how do get it in code behind and which event i will get it.

<

 

 

telerik:RadGridView Grid.Row="2" IsSynchronizedWithCurrentItem="False" Grid.ColumnSpan="5" x:Name="dgvendorEng"

 

 

 

ScrollViewer.HorizontalScrollBarVisibility="Visible"

 

 

 

ScrollViewer.VerticalScrollBarVisibility="Visible"

 

 

 

ScrollMode="RealTime" Visibility="Collapsed"

 

 

 

CanUserResizeColumns="True"

 

 

 

AutoGenerateColumns="False"

 

 

 

SelectionMode="Single"

 

 

 

VerticalAlignment="Stretch"

 

 

 

HorizontalAlignment="Stretch"

 

 

 

EnableColumnVirtualization="True"

 

 

 

EnableRowVirtualization="True">

 

 

 

 

<telerik:RadGridView.ChildTableDefinitions>

 

 

 

 

<telerik:GridViewTableDefinition />

 

 

 

 

</telerik:RadGridView.ChildTableDefinitions>

 

 

 

 

<telerik:RadGridView.Columns>

 

 

 

 

<telerik:GridViewSelectColumn></telerik:GridViewSelectColumn>

 

 

 

 

<telerik:GridViewDataColumn Header="Engagement ID" SortingState="Descending" DataMemberBinding="{Binding EngagementID}" ><i:Interaction.Behaviors>

 

 

 

 

<my:ClosePopupOnApplyFilterBehavior />

 

 

 

 

</i:Interaction.Behaviors>

 

 

 

 

</telerik:GridViewDataColumn>

 

 

 

 

<telerik:GridViewDataColumn Header="Volume Input Owner"

 

 

 

DataMemberBinding="{Binding VolumeInputOwner}"

 

 

 

TextAlignment="Right">

 

 

 

 

<i:Interaction.Behaviors>

 

 

 

 

<my:ClosePopupOnApplyFilterBehavior />

 

 

 

 

</i:Interaction.Behaviors>

 

 

 

 

</telerik:GridViewDataColumn>

 

 

 

 

<telerik:GridViewDataColumn Header="OutSource Input Owner" DataMemberBinding="{Binding OutSourceInputOwner}"> <i:Interaction.Behaviors>

 

 

 

 

<my:ClosePopupOnApplyFilterBehavior />

 

 

 

 

</i:Interaction.Behaviors>

 

 

 

 

</telerik:GridViewDataColumn>

 

 

 

 

<telerik:GridViewDataColumn Header="Tel Input Owner"

 

 

 

DataMemberBinding="{Binding TelInputOwner}">

 

 

 

 

<i:Interaction.Behaviors>

 

 

 

 

<my:ClosePopupOnApplyFilterBehavior />

 

 

 

 

</i:Interaction.Behaviors>

 

 

 

 

</telerik:GridViewDataColumn>

 

 

 

 

<telerik:GridViewDataColumn Header="Budget" DataMemberBinding="{Binding Budget}" ><i:Interaction.Behaviors>

 

 

 

 

<my:ClosePopupOnApplyFilterBehavior />

 

 

 

 

</i:Interaction.Behaviors>

 

 

 

 

</telerik:GridViewDataColumn>

 

 

 

 

<telerik:GridViewDataColumn Header="Invoice"

 

 

 

DataMemberBinding="{Binding Invoice}" >

 

 

 

 

<i:Interaction.Behaviors>

 

 

 

 

<my:ClosePopupOnApplyFilterBehavior />

 

 

 

 

</i:Interaction.Behaviors>

 

 

 

 

</telerik:GridViewDataColumn>

 

 

 

 

<telerik:GridViewDataColumn Header="Archive" DataMemberBinding="{Binding Archive}" >

 

 

 

 

<i:Interaction.Behaviors>

 

 

 

 

<my:ClosePopupOnApplyFilterBehavior />

 

 

 

 

</i:Interaction.Behaviors>

 

 

 

 

</telerik:GridViewDataColumn>

 

 

 

 

 

<telerik:GridViewDataColumn Header="SyncToYr"

 

 

 

DataMemberBinding="{Binding SyncToYr}" Width="*">

 

 

 

 

<i:Interaction.Behaviors>

 

 

 

 

<my:ClosePopupOnApplyFilterBehavior />

 

 

 

 

</i:Interaction.Behaviors>

 

 

 

 

</telerik:GridViewDataColumn>

 

 

 

 

</telerik:RadGridView.Columns>

 

 

 

 

<telerik:RadGridView.HierarchyChildTemplate>

 

 

 

 

<DataTemplate>

 

 

 

 

<telerik:RadGridView SelectionMode="Extended" IsSynchronizedWithCurrentItem="False" AutoGenerateColumns="False" RowEditEnded="RadGridView_RowEditEnded" ItemsSource="{Binding VendorEngaemnet}" ShowGroupPanel="False"

 

 

 

CanUserResizeColumns="True" CanUserDeleteRows="True" CanUserInsertRows="True" ShowInsertRow="True"

 

 

 

CanUserReorderColumns="True" CanUserSortColumns="True">

 

 

 

 

<telerik:RadGridView.Columns>

 

 

 

 

<telerik:GridViewSelectColumn></telerik:GridViewSelectColumn>

 

 

 

 

<telerik:GridViewDataColumn Header="Vendor Engagement Id" IsReadOnly="True" DataMemberBinding="{Binding VendorEngagementId}" >

 

 

 

 

<i:Interaction.Behaviors>

 

 

 

 

<my:ClosePopupOnApplyFilterBehavior />

 

 

 

 

</i:Interaction.Behaviors>

 

 

 

 

</telerik:GridViewDataColumn>

 

 

 

 

<telerik:GridViewDataColumn Header="Vendor Name" DataMemberBinding="{Binding VendorName}" >

 

 

 

 

<i:Interaction.Behaviors>

 

 

 

 

<my:ClosePopupOnApplyFilterBehavior />

 

 

 

 

</i:Interaction.Behaviors>

 

 

 

 

</telerik:GridViewDataColumn>

 

 

 

 

<telerik:GridViewDataColumn Header="Vendor Number" DataMemberBinding="{Binding VendorNumber}" >

 

 

 

 

<i:Interaction.Behaviors>

 

 

 

 

<my:ClosePopupOnApplyFilterBehavior />

 

 

 

 

</i:Interaction.Behaviors>

 

 

 

 

</telerik:GridViewDataColumn>

 

 

 

 

<telerik:GridViewDataColumn Header="MS Company Code" DataMemberBinding="{Binding MSCompanyCode}" >

 

 

 

 

<i:Interaction.Behaviors>

 

 

 

 

<my:ClosePopupOnApplyFilterBehavior />

 

 

 

 

</i:Interaction.Behaviors>

 

 

 

 

</telerik:GridViewDataColumn>

 

 

 

 

<telerik:GridViewDataColumn Header="Vendor City" DataMemberBinding="{Binding VendorCity}" >

 

 

 

 

<i:Interaction.Behaviors>

 

 

 

 

<my:ClosePopupOnApplyFilterBehavior />

 

 

 

 

</i:Interaction.Behaviors>

 

 

 

 

</telerik:GridViewDataColumn>

 

 

 

 

<telerik:GridViewDataColumn Header="Contract Ref ID" DataMemberBinding="{Binding ContractRefID}" >

 

 

 

 

<i:Interaction.Behaviors>

 

 

 

 

<my:ClosePopupOnApplyFilterBehavior />

 

 

 

 

</i:Interaction.Behaviors>

 

 

 

 

</telerik:GridViewDataColumn>

 

 

 

 

<telerik:GridViewDataColumn Header="Invoice Id" DataMemberBinding="{Binding InvoiceId}" >

 

 

 

 

<i:Interaction.Behaviors>

 

 

 

 

<my:ClosePopupOnApplyFilterBehavior />

 

 

 

 

</i:Interaction.Behaviors>

 

 

 

 

</telerik:GridViewDataColumn>

 

 

 

 

 

<telerik:GridViewDataColumn Header="Default Pricing Model" DataMemberBinding="{Binding DefaultPricingModel}" >

 

 

 

 

<i:Interaction.Behaviors>

 

 

 

 

<my:ClosePopupOnApplyFilterBehavior />

 

 

 

 

</i:Interaction.Behaviors>

 

 

 

 

</telerik:GridViewDataColumn>

 

 

 

 

<telerik:GridViewDataColumn Header="Currency Code" DataMemberBinding="{Binding CurrencyCode}" />

 

 

 

 

<telerik:GridViewDataColumn Header="Purchase Order" IsReadOnly="True" DataMemberBinding="{Binding PurchOrder}" >

 

 

 

 

<i:Interaction.Behaviors>

 

 

 

 

<my:ClosePopupOnApplyFilterBehavior />

 

 

 

 

</i:Interaction.Behaviors>

 

 

 

 

</telerik:GridViewDataColumn>

 

 

 

 

<telerik:GridViewDataColumn Header="Account Code" DataMemberBinding="{Binding AccountCode}">

 

 

 

 

<i:Interaction.Behaviors>

 

 

 

 

<my:ClosePopupOnApplyFilterBehavior />

 

 

 

 

</i:Interaction.Behaviors>

 

 

 

 

</telerik:GridViewDataColumn>

 

 

 

 

<telerik:GridViewDataColumn Header="Tax Rate" DataMemberBinding="{Binding TaxRate}" >

 

 

 

 

<i:Interaction.Behaviors>

 

 

 

 

<my:ClosePopupOnApplyFilterBehavior />

 

 

 

 

</i:Interaction.Behaviors>

 

 

 

 

</telerik:GridViewDataColumn>

 

 

 

 

<telerik:GridViewDataColumn Header="Tax Account" DataMemberBinding="{Binding TaxAccount}" >

 

 

 

 

<i:Interaction.Behaviors>

 

 

 

 

<my:ClosePopupOnApplyFilterBehavior />

 

 

 

 

</i:Interaction.Behaviors>

 

 

 

 

</telerik:GridViewDataColumn>

 

 

 

 

<telerik:GridViewDataColumn Header="Cost Center" DataMemberBinding="{Binding CostCenter}" >

 

 

 

 

<i:Interaction.Behaviors>

 

 

 

 

<my:ClosePopupOnApplyFilterBehavior />

 

 

 

 

</i:Interaction.Behaviors>

 

 

 

 

</telerik:GridViewDataColumn>

 

 

 

 

<telerik:GridViewDataColumn Header="Order" DataMemberBinding="{Binding IntOrder}" >

 

 

 

 

<i:Interaction.Behaviors>

 

 

 

 

<my:ClosePopupOnApplyFilterBehavior />

 

 

 

 

</i:Interaction.Behaviors>

 

 

 

 

</telerik:GridViewDataColumn>

 

 

 

 

<telerik:GridViewDataColumn Header="Incentive Model" DataMemberBinding="{Binding IncentiveModel}" >

 

 

 

 

<i:Interaction.Behaviors>

 

 

 

 

<my:ClosePopupOnApplyFilterBehavior />

 

 

 

 

</i:Interaction.Behaviors>

 

 

 

 

</telerik:GridViewDataColumn>

 

 

 

 

<telerik:GridViewDataColumn Header="Vendor Site Id" DataMemberBinding="{Binding VendorSiteId}" >

 

 

 

 

<i:Interaction.Behaviors>

 

 

 

 

<my:ClosePopupOnApplyFilterBehavior />

 

 

 

 

</i:Interaction.Behaviors>

 

 

 

 

</telerik:GridViewDataColumn>

 

 

 

 

<telerik:GridViewDataColumn Header="Apply Tax" DataMemberBinding="{Binding ApplyTax}" >

 

 

 

 

<i:Interaction.Behaviors>

 

 

 

 

<my:ClosePopupOnApplyFilterBehavior />

 

 

 

 

</i:Interaction.Behaviors>

 

 

 

 

</telerik:GridViewDataColumn>

 

 

 

 

<telerik:GridViewDataColumn Header="Budget" DataMemberBinding="{Binding Budget}" >

 

 

 

 

<i:Interaction.Behaviors>

 

 

 

 

<my:ClosePopupOnApplyFilterBehavior />

 

 

 

 

</i:Interaction.Behaviors>

 

 

 

 

</telerik:GridViewDataColumn>

 

 

 

 

<telerik:GridViewDataColumn Header="Archive" DataMemberBinding="{Binding Archive}" >

 

 

 

 

<i:Interaction.Behaviors>

 

 

 

 

<my:ClosePopupOnApplyFilterBehavior />

 

 

 

 

</i:Interaction.Behaviors>

 

 

 

 

</telerik:GridViewDataColumn>

 

 

 

 

<telerik:GridViewDataColumn Header="Invoice" DataMemberBinding="{Binding Invoice}" >

 

 

 

 

<i:Interaction.Behaviors>

 

 

 

 

<my:ClosePopupOnApplyFilterBehavior />

 

 

 

 

</i:Interaction.Behaviors>

 

 

 

 

</telerik:GridViewDataColumn>

 

 

 

 

<telerik:GridViewDataColumn Header="Sync" DataMemberBinding="{Binding SyncToYr}" >

 

 

 

 

<i:Interaction.Behaviors>

 

 

 

 

<my:ClosePopupOnApplyFilterBehavior />

 

 

 

 

</i:Interaction.Behaviors>

 

 

 

 

</telerik:GridViewDataColumn>

 

 

 

 

</telerik:RadGridView.Columns>

 

 

 

 

 

</telerik:RadGridView>

 

 

 

 

</DataTemplate>

 

 

 

 

</telerik:RadGridView.HierarchyChildTemplate>

 

 

 

 

</telerik:RadGridView>

 

0
Pavel Pavlov
Telerik team
answered on 08 Jun 2010, 12:15 PM
Hi varsha Motwani,

You may subscribe to the Loaded event of the child grid view . Within the loaded event you may find the column in the RadGridView.Columns collection.


Greetings,
Pavel Pavlov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
varsha Motwani
Top achievements
Rank 1
answered on 08 Jun 2010, 03:46 PM
Hi,
I am not getting how to set item template as ther is no property of GridViewComboBoxColumn in the name of item template which can be set to set item template for Combo Box inside GridViewComboBoxColumn .
I Have licensed version of telerik controls
and i am using RadControls_for_Silverlight_4_2010_1_0422_DEV.msi(This installer database contains the logic and data required to install Telerik RadControls for Silverlight Q1 2010 SP1.)
Please advice if I am missing any latest build.
Please share the location for latest
0
Hristo
Telerik team
answered on 09 Jun 2010, 05:00 PM
Hello varsha Motwani,

You are not seeing the latest versions in the download section since you are not added as a licensed developer and you hold a trial account. Please ask the purchaser to add your email to the list of licensed developers and you'll get access to the Dev versions of RadControls for Silverlight. In the meanwhile you can download the trial version of Q1 2010 SP2 here and give it a try (SP2 version is 2010.1.603).

All the best,
Hristo
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
GridView
Asked by
varsha Motwani
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
varsha Motwani
Top achievements
Rank 1
Hristo
Telerik team
Share this question
or