GridView Columns as Radio Button

1 posts, 0 answers
  1. ITA
    ITA avatar
    383 posts
    Member since:
    Aug 2009

    Posted 27 May 2015 Link to this post

    Hi,

    is use a GridView to merge data from a lokal db with a business software db. I create a mergeObjekt which contains field name, filed value,table id and groupname for the lokal and the server database.

    ...  new MergeItem(lokalfield, lokalfieldvalue, lokaldbid, lokalgroup, serverfield, serverfieldvalue, serverid, servergroup)

     Now i want to show the Collection in my GridView, which works fine like this...

    <telerik:RadGridView.Columns>
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding DB}" Header="DB" IsReadOnly="True" Width="0.125*" UniqueName="DB" ColumnGroupName="Lokal"  />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding AbasID}" Header="abas-ID" IsReadOnly="True" Width="0.125*" UniqueName="AbasID" ColumnGroupName="Lokal"  />               
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding Feldname}" Header="Feldname" IsReadOnly="True" Width="0.125*" UniqueName="Feldname" ColumnGroupName="Lokal" />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding Feldwert}" Header="Feldwert" IsReadOnly="True" Width="0.125*" UniqueName="Feldwert" ColumnGroupName="Lokal" />
                    <telerik:GridViewColumn Header="<<" ColumnGroupName="Lokal" Width="55" telerik:StyleManager.Theme="Windows8Touch">
                        <telerik:GridViewColumn.CellTemplate>
                            <DataTemplate >
                                <telerik:RadRadioButton IsChecked="{Binding Syncabastolokal, Mode= TwoWay}" GroupName="{Binding Group}" x:Name="Syncabastolokal" Height="20" Width="40"/>
                            </DataTemplate>
                        </telerik:GridViewColumn.CellTemplate>
                    </telerik:GridViewColumn>
     
                    <telerik:GridViewColumn Header=">>" ColumnGroupName="abas" Width="55" telerik:StyleManager.Theme="Windows8Touch">
                        <telerik:GridViewColumn.CellTemplate>
                            <DataTemplate>
                                <telerik:RadRadioButton IsChecked="{Binding Synclokaltoabas, Mode= TwoWay}" GroupName="{Binding XGroup}" x:Name="Synclokaltoabas" Height="20" Width="40"/>
                            </DataTemplate>
                        </telerik:GridViewColumn.CellTemplate>
                    </telerik:GridViewColumn>
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding Xabasid}" Header="abas-ID" IsReadOnly="True" Width="0.166*" UniqueName="XAbasID" ColumnGroupName="abas"/>               
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding Xfeldname}" Header="Feldname " IsReadOnly="True" Width="0.166*" UniqueName="Xfeldname"  ColumnGroupName="abas"/>
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding Xfeldwert}" Header="Feldwert " IsReadOnly="True" Width="0.166*" UniqueName="Xfeldwert"  ColumnGroupName="abas"/>
                </telerik:RadGridView.Columns>

    On the left side are the lokal datas and on the right side the server datas. In the middle are two Radio Buttons bind to the group. With this Layout i have the choice to select which side will be updated in the database.

     Is it possible to create something like a Radio button over 3-4 Columns. This would be easier for the user to select the side!

     

    Thanks Best Regards

    RENE

Back to Top