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

Inserting a new Row from an empty itemsource and Combobox

1 Answer 27 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Michele
Top achievements
Rank 2
Michele asked on 27 Apr 2010, 03:17 PM
Hello,
I need to use the Insert feature of RadGridView as dataentry for a splash screen I need to develop,
I've created the gridview schema, with the columns :

  <telerikGridView:RadGridView Grid.Row="6" Grid.ColumnSpan="2" x:Name="gvOrdini" AutoGenerateColumns="False" ShowGroupPanel="False" ShowInsertRow="True" AddingNewDataItem="gvOrdini_AddingNewDataItem" RowLoaded="gvOrdini_RowLoaded" CanUserInsertRows="True"   > 
            <telerikGridView:RadGridView.Columns> 
                <telerikGridView:GridViewComboBoxColumn Header="Società" UniqueName="Societa" x:Name="cbSocieta"></telerikGridView:GridViewComboBoxColumn> 
                <telerikGridView:GridViewComboBoxColumn Header="Fondo" UniqueName="Fondo"></telerikGridView:GridViewComboBoxColumn> 
                <telerikGridView:GridViewBoundColumnBase Header="Seleziona Fondo"></telerikGridView:GridViewBoundColumnBase> 
                <telerikGridView:GridViewDataColumn Header="Qty" UniqueName="Qty" x:Name="Qty"></telerikGridView:GridViewDataColumn> 
                <telerikGridView:GridViewDataColumn Header="Ctv" UniqueName="Ctv" x:Name="Ctv"></telerikGridView:GridViewDataColumn> 
                <telerikGridView:GridViewDataColumn Header="Nav" UniqueName="Nav" x:Name="Nav"></telerikGridView:GridViewDataColumn> 
                <telerikGridView:GridViewDataColumn Header="Tipo Operazione" UniqueName="Side"  x:Name="IDOrder" DataMemberBinding="{Binding IDOrder}"></telerikGridView:GridViewDataColumn> 
                <telerikGridView:GridViewDataColumn Header="Note" UniqueName="Note" ></telerikGridView:GridViewDataColumn> 
            </telerikGridView:RadGridView.Columns> 
        </telerikGridView:RadGridView> 

And I need to set the Societa and Fondo combobox based on a itemsource I get from WCF ... to be sincere the Fondo is a second wcf call passing the "societa" parameter... where should I set the itemsource? I've seen the RowLoaded event but it's not fired when I click on the new item of the gridview...
Can you provide me a sample, thanks

Paolo

1 Answer, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 29 Apr 2010, 09:10 AM
Hi Paolo,

The attached project has  a column with a combo in the cell template. This way in XAML you may subscribe to the loaded event of the combo and perform initialization logic.

Best wishes,
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.
Tags
GridView
Asked by
Michele
Top achievements
Rank 2
Answers by
Pavel Pavlov
Telerik team
Share this question
or