Grid in tabcontrol

2 posts, 1 answers
  1. Keith Stephens
    Keith Stephens avatar
    83 posts
    Member since:
    May 2010

    Posted 05 Aug 2010 Link to this post

    Hi all,

    I have inherited a silverlight 3 project that was already started.  The person that started the project is no longer here, and they were new to SL3, C#, and the Telerik controls.  I am new to SL3 and the Telerik controls.

    I have an SL page that has a tab control on it, and 5 grids in the tab. As the user clicks each tab the grids are populated with information belonging to that tab.  In our case it is rate information about a port.
    In the grid I have in my first column I display a port name example (GRB) this port also has a port number.  When the grid goes into edit mode, I then display a drop down of all our port names.

    Issues I am having is once the user selects a new port, I cannot get the name to show in the grid, also I want the value to equal the port number, and display the port name. And then ultimatly have the port city field populated with the port's city from a portLocation object.

    But also, in the code behind I do not have a reference to my grids.  I am not sure what is wrong or even if I am using the controls correctly in the first place.
    In the attachment I am working on the first column called Code, and the 3rd called City.  The second column is what currently exists but is just a text box.
    I am new to xaml and the controls.
    Thanks for any help on this matter,
    Keith.
    XAML CODE:
    <UserControl xmlns:telerikEditor="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Editor"  
                xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"  
                 xmlns:telerikInput="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input"  
                 xmlns:telerikGridView="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"  
                 xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
                 xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"  
                 x:Class="AgtAgreeFrm.AAform" 
                 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                 xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
                 xmlns:local="clr-namespace:AgtAgreeFrm"
                 mc:Ignorable="d" d:DesignWidth="1200" d:DesignHeight="480"
                 Loaded="UserControl_Loaded"
                   
                 >
        <UserControl.Resources>
      
            <local:NumberConverter x:Key="converter" />
            <local:LocationCodesList x:Key="ChgCodes" />        
      
      
            <DataTemplate x:Key="AgentHeaderTemplate">
                <Grid>
                    <StackPanel Orientation="Vertical" ToolTipService.ToolTip="{Binding Path=TabMouseOver}">
                        <TextBlock Text="{Binding Path=TabHeader}" />
                        <TextBlock Text="{Binding Path=BeginDate}" />
                    </StackPanel>
                </Grid>
            </DataTemplate>
            <DataTemplate x:Key="AgentContentTemplate">
                <StackPanel Orientation="Vertical">
                    <Grid Width="960" ShowGridLines="False" HorizontalAlignment="Left" Background="White">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="300" />
                            <ColumnDefinition Width="140" />
                            <ColumnDefinition Width="100" />
                            <ColumnDefinition Width="10" />
                            <ColumnDefinition Width="140" />
                            <ColumnDefinition Width="279" />
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="25" />
                            <RowDefinition Height="25" />
                            <RowDefinition Height="25" />
                            <RowDefinition Height="25" />
                            <RowDefinition Height="25" />
                        </Grid.RowDefinitions>
                        <StackPanel Orientation="Vertical"  Grid.Column="0" Grid.Row="0" Grid.RowSpan="7">
                            <TextBlock Text="{Binding Agent.Name}" FontSize="14" FontWeight="Bold"/>
                            <TextBlock Text="{Binding Agent.Address1}" FontSize="14" />
                            <TextBlock Text="{Binding Agent.City}" FontSize="14" />
                            <TextBlock Text="{Binding Agent.Country}" FontSize="14" />
                        </StackPanel>
                        <!-- Agent Info -->
                        <TextBlock Grid.Row="0" Grid.Column="1" 
                                       HorizontalAlignment="Right" 
                                       VerticalAlignment="Center"
                                       Text="Routed Commission:" 
                                       Margin="0,0,5,0" />
                        <TextBlock Grid.Row="1" Grid.Column="1" 
                                       HorizontalAlignment="Right" 
                                       VerticalAlignment="Center"
                                       Text="Transship Costs:" 
                                       Margin="0,0,5,0" />
                        <TextBlock Grid.Row="2" Grid.Column="1" 
                                       HorizontalAlignment="Right" 
                                       VerticalAlignment="Center"
                                       Text="Routed:" 
                                       Margin="0,0,5,0" />
                        <TextBlock Grid.Row="3" Grid.Column="1" 
                                       HorizontalAlignment="Right" 
                                       VerticalAlignment="Center"
                                       Text="Begin Date:" 
                                       Margin="0,0,5,0" />
                        <TextBlock Grid.Row="4" Grid.Column="1" 
                                       HorizontalAlignment="Right" 
                                       VerticalAlignment="Center"
                                       Text="End Date:" 
                                       Margin="0,0,5,0" />
                        <TextBlock Grid.Row="0" Grid.Column="4"
                                           HorizontalAlignment="Right"
                                           VerticalAlignment="Center"
                                           Text="Normal Markup:"
                                           Margin="0,0,5,0" />
                        <TextBlock Grid.Row="1" Grid.Column="4"
                                           HorizontalAlignment="Right"
                                           VerticalAlignment="Center"
                                           Text="Hazardous Markup:"
                                           Margin="0,0,5,0" />
                        <TextBlock Grid.Row="2" Grid.Column="4"
                                           HorizontalAlignment="Right"
                                           VerticalAlignment="Center"
                                           Text="Hazarous Surcharge:"
                                           Margin="0,0,5,0" />
                        <TextBlock Grid.Row="3" Grid.Column="4"
                                               HorizontalAlignment="Right"
                                               VerticalAlignment="Center"
                                               Text="Routed Unpack:"
                                               Margin="0,0,5,0" />
                        <StackPanel Grid.Row="3" Grid.Column="5"
                                            Orientation="Horizontal">
                            <TextBox x:Name="txtRoutedUnpackRate" Width="60" Margin="0,2,5,2"
                                         HorizontalAlignment="Left"
                                         VerticalAlignment="Center"
                                         Text="{Binding RoutedUnpackRate, Converter={StaticResource converter}}" 
                                           
                                         LostFocus="txtRoutedUnpackRate_LostFocus"/>
                            <telerikInput:RadComboBox x:Name="cboRoutedUnpackBasis" 
                                                          Width="60" Margin="0,2,0,2"
                                                          HorizontalAlignment="Center"
                                                          VerticalAlignment="Center"
                                                          Text="{Binding RoutedUnpackBasis, Mode=TwoWay}">
                                <telerikInput:RadComboBoxItem Content="W/M" />
                                <telerikInput:RadComboBoxItem Content="L" />
                            </telerikInput:RadComboBox>
                        </StackPanel>
                        <!-- Routed Unpack Input -->
                        <TextBox x:Name="txtCommOnRouted" 
                                 Grid.Row="0" Grid.Column="2" 
                                 Width="100" Margin="0,2,0,2"
                                 HorizontalAlignment="Left"
                                 VerticalAlignment="Center"
                                 Text="{Binding CommOnRouted}"
                                 LostFocus="txtCommOnRouted_LostFocus"/>
                        <!-- Commission on Routed Input -->
                        <telerikInput:RadComboBox x:Name="cboTshipCosts" 
                                                  Grid.Row="1" Grid.Column="2"
                                                  Width="100" Margin="0,2,0,2"
                                                  HorizontalAlignment="Left"
                                                  VerticalAlignment="Center"
                                                  Text="{Binding TshipCosts, Mode=TwoWay}">
                            <telerikInput:RadComboBoxItem Content="BILL" />
                            <telerikInput:RadComboBoxItem Content="CONT" />
                        </telerikInput:RadComboBox>
                        <!-- TShip costs Combo -->
                        <telerikInput:RadComboBox x:Name="cboRoutedFlag" 
                                                      Grid.Row="2" Grid.Column="2" 
                                                      Width="100" Margin="0,2,0,2"
                                                      HorizontalAlignment="Left"
                                                      VerticalAlignment="Center"
                                                      Text="{Binding RoutedFlag, Mode=TwoWay}">
                            <telerikInput:RadComboBoxItem Content="Routed" />
                            <telerikInput:RadComboBoxItem Content="Not Routed" />
                        </telerikInput:RadComboBox>
                        <!-- Routed Flag Combo -->
                        <TextBox x:Name="txtBeginDate" 
                                 Grid.Row="3" Grid.Column="2" 
                                 Width="100" Margin="0,2,0,2"
                                 HorizontalAlignment="Left"
                                 VerticalAlignment="Center"
                                 Text="{Binding BeginDate}"
                                 LostFocus="txtBeginDate_LostFocus" />
                        <!-- Begin Date Input -->
                        <TextBox x:Name="txtEndDate" Grid.Row="4" Grid.Column="2" 
                                 Width="100" Margin="0,2,0,2"
                                 HorizontalAlignment="Left"
                                 VerticalAlignment="Center"
                                 Text="{Binding EndDate}"
                                 LostFocus="txtEndDate_LostFocus" />
                        <!-- End Date Input -->
                        <TextBox x:Name="txtMarkup" Grid.Row="0" Grid.Column="5"
                                 Width="100" Margin="0,2,0,2"
                                 HorizontalAlignment="Left"
                                 VerticalAlignment="Center"
                                 Text="{Binding Markup_normal, Converter={StaticResource converter}}" 
                                 LostFocus="txtMarkup_LostFocus"/>
                        <!-- Normal Markup -->
                        <TextBox x:Name="txtHazMarkup" Grid.Row="1" Grid.Column="5"
                                 Width="100" Margin="0,2,0,2"
                                 HorizontalAlignment="Left"
                                 VerticalAlignment="Center"
                                 Text="{Binding Markup_hazard, Converter={StaticResource converter}}"
                                 LostFocus="txtHazMarkup_LostFocus" />
                        <!-- Hazardous Markup -->
                        <TextBox x:Name="txtHazSurcharge" Grid.Row="2" Grid.Column="5"
                                 Width="100" Margin="0,2,0,2"
                                 HorizontalAlignment="Left"
                                 VerticalAlignment="Center"
                                 Text="{Binding HazSurcharge}"
                                 LostFocus="txtHazSurcharge_LostFocus" />
                        <!-- Haz Surcharge -->
                    </Grid>
                    <!-- Agent Agreement Details -->
                    <TextBlock Text="Transship Rates" FontSize="14" FontWeight="Bold" Margin="0,5,0,3" />
      
                    <telerikGridView:RadGridView x:Name="gdvTshipRates"
                                                 DataLoadMode="Asynchronous"
                                                 AutoGenerateColumns="False"
                                                 CanUserSortColumns="True"
                                                 CanUserInsertRows="True"
                                                 CanUserDeleteRows="True"
                                                 ShowInsertRow="True"
                                                 ItemsSource="{Binding TshipAgreements, Mode=TwoWay}"
                                                 ShowGroupPanel="False"
                                                 IsFilteringAllowed="False"
                                                 Margin="0,0,1,0"
                                                 FontFamily="Arial Narrow" 
                                                 FontSize="14"
                                                 AddingNewDataItem="gdvTshipRates_AddingNewDataItem"
                                                 BeginningEdit="gdvTshipRates_BeginningEdit"
                                                 CellEditEnded="gdvTshipRates_CellEditEnded"
                                                 CellValidating="gdvTshipRates_CellValidating"
                                                 RowEditEnded="gdvTshipRates_RowEditEnded"
                                                 EnableColumnVirtualization="True"
                                                 EnableRowVirtualization="True"  
                                                 Deleting="gdvTshipRates_Deleting"  
                                                 Deleted="gdvTshipRates_Deleted"    
                                                 ScrollMode="RealTime"    
                                                                                                                                                                                                                        
                                                 EditTriggers="CellClick">
                        <telerikGridView:RadGridView.ChildTableDefinitions>
                            <telerikGridView:GridViewTableDefinition />
                        </telerikGridView:RadGridView.ChildTableDefinitions>
                        <telerikGridView:RadGridView.Columns>
      
      
      
                            <telerikGridView:GridViewDataColumn Header="Code" DataMemberBinding="{Binding DestPortCode, Mode=TwoWay}" Width="65">
                                <telerikGridView:GridViewDataColumn.CellTemplate>
                                    <DataTemplate>
                                        <TextBlock Text="{Binding DestPortCode}" />
                                    </DataTemplate>
                                </telerikGridView:GridViewDataColumn.CellTemplate>
                                <telerikGridView:GridViewDataColumn.CellEditTemplate>
                                    <DataTemplate>
                                        <telerikInput:RadComboBox x:Name="rcboChgCode" 
                                        ItemsSource="{StaticResource ChgCodes}" 
                                        KeyDown="rcboChgCode_KeyDown"
                                      DropDownOpened="rcboChgCode_DropDownOpened"  
                                      SelectionChanged="rcboChgCode_SelectionChanged" 
                                      IsEditable="True" SelectedValuePath="LocCode"
                                        telerik:TextSearch.TextPath="LocCode" SelectedItem="{Binding Loc_Code}" SelectedValue="{Binding Loc_Num, Mode=TwoWay}" MaxDropDownHeight="100">
                                            <telerikInput:RadComboBox.ItemTemplate>
                                                <DataTemplate>
                                                    <StackPanel Margin="2" Orientation="Horizontal">
                                                        <!--<TextBlock HorizontalAlignment="Left" Text="{Binding Loc_Num}" Width="75" />-->
                                                        <TextBlock HorizontalAlignment="Left" Text="{Binding Loc_Code}" Width="75" />
                                                        <TextBlock HorizontalAlignment="Left" Text="{Binding Loc_City}" Width="225" />
                                                    </StackPanel>
                                                </DataTemplate>
                                            </telerikInput:RadComboBox.ItemTemplate>
                                        </telerikInput:RadComboBox>
                                    </DataTemplate>
                                </telerikGridView:GridViewDataColumn.CellEditTemplate>
                            </telerikGridView:GridViewDataColumn>
      
      
      
      
      
                            <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding DestPortCode}" >
                                <telerikGridView:GridViewDataColumn.Header>
                                    <StackPanel Orientation="Vertical">
                                        <!-- This display the wording Date under Begin.-->
                                        <TextBlock Text="Dest Port Code" HorizontalAlignment="Center" />
                                        <!--<TextBlock Text="Date" HorizontalAlignment="Left" />-->
                                    </StackPanel>
                                </telerikGridView:GridViewDataColumn.Header>
                                 
                            </telerikGridView:GridViewDataColumn>
                            <!-- Port Code 1st grid col. -->
                            <telerikGridView:GridViewDataColumn IsReadOnly="False"  DataMemberBinding="{Binding DestPortCity}">
                                <telerikGridView:GridViewDataColumn.Header>
                                    <StackPanel Orientation="Vertical">
                                        <!-- This display the wording Date under Begin.-->
                                        <TextBlock Text="City" HorizontalAlignment="Center" />
      
                                    </StackPanel>
                                </telerikGridView:GridViewDataColumn.Header>
                            </telerikGridView:GridViewDataColumn>
                            <!-- Port City 2nd grid col.-->
                            <telerikGridView:GridViewDataColumn IsReadOnly="False"  DataMemberBinding="{Binding DestPortCountry}">
                                <telerikGridView:GridViewDataColumn.Header>
                                    <StackPanel Orientation="Vertical">
                                        <!-- This display the wording Date under Begin.-->
                                        <TextBlock Text="Country" HorizontalAlignment="Center" />
      
                                    </StackPanel>
                                </telerikGridView:GridViewDataColumn.Header>
                            </telerikGridView:GridViewDataColumn>
                            <!-- Port Country 3rd grid col.-->
                            <!-- Begin Date Col.-->
                            <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding BeginDate}"  >
                                <telerikGridView:GridViewDataColumn.Header>
                                    <StackPanel Orientation="Vertical">
                                        <!-- This display the wording Date under Begin.-->
                                        <TextBlock  Text="Begin" HorizontalAlignment="Left" />
                                        <TextBlock  Text="Date" HorizontalAlignment="Left" />
                                    </StackPanel>
                                </telerikGridView:GridViewDataColumn.Header>
                            </telerikGridView:GridViewDataColumn>
                            <!-- End Begin Date -->
      
                            <!-- End Date Col.-->
                            <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding EndDate}">
                                <telerikGridView:GridViewDataColumn.Header>
                                    <StackPanel Orientation="Vertical">
                                        <TextBlock Text="End" HorizontalAlignment="Left" />
                                        <TextBlock Text="Date" HorizontalAlignment="Left" />
                                    </StackPanel>
                                </telerikGridView:GridViewDataColumn.Header>
                            </telerikGridView:GridViewDataColumn>
                            <!-- End End Date -->
      
                            <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding TransitTime}" 
                                                                Header="TT"
                                                                TextAlignment="Center" />
                            <!-- Transit Time Col. -->
                            <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding Frequency}" 
                                                                Header="Freq" 
                                                                TextAlignment="Center" />
                            <!-- Frequency Col.-->
                            <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding DisplayColFlag, Mode=TwoWay}" 
                                                                Header="PPD/COL"
                                                                Width="68">
                                <!-- PPD/COL Col.-->
                                <telerikGridView:GridViewDataColumn.CellTemplate>
                                    <DataTemplate>
                                        <TextBlock Text="{Binding DisplayColFlag}" />
                                    </DataTemplate>
                                </telerikGridView:GridViewDataColumn.CellTemplate>
                                <telerikGridView:GridViewDataColumn.CellEditTemplate>
                                    <DataTemplate>
                                        <telerikInput:RadComboBox x:Name="cboColFlag" 
                                                                  SelectedValue="{Binding DisplayColFlag, Mode=TwoWay}"
                                                                  SelectedValuePath="Content">
                                            <telerikInput:RadComboBoxItem Content="PPD Only" />
                                            <telerikInput:RadComboBoxItem Content="PPD+COL" />
                                        </telerikInput:RadComboBox>
                                    </DataTemplate>
                                </telerikGridView:GridViewDataColumn.CellEditTemplate>
                            </telerikGridView:GridViewDataColumn>
                            <!-- End PPD/COL Col. Editable Field -->
      
                            <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding DisplayHazFlag, Mode=TwoWay}" 
                                                                Header="HAZ"
                                                                Width="43">
                                <!-- Hazard col.-->
                                <telerikGridView:GridViewDataColumn.CellTemplate>
                                    <DataTemplate>
                                        <TextBlock Text="{Binding DisplayHazFlag}" />
                                    </DataTemplate>
                                </telerikGridView:GridViewDataColumn.CellTemplate>
                                <telerikGridView:GridViewDataColumn.CellEditTemplate>
                                    <DataTemplate>
                                        <telerikInput:RadComboBox x:Name="cboHazFlag" 
                                                                  SelectedValue="{Binding DisplayHazFlag, Mode=TwoWay}"
                                                                  SelectedValuePath="Content">
                                            <telerikInput:RadComboBoxItem Content="N/A" />
                                            <telerikInput:RadComboBoxItem Content="YES" />
                                            <telerikInput:RadComboBoxItem Content="U/R" />
                                        </telerikInput:RadComboBox>
                                    </DataTemplate>
                                </telerikGridView:GridViewDataColumn.CellEditTemplate>
                            </telerikGridView:GridViewDataColumn>
                            <!-- End Haz Editable Field -->
      
                            <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding Cost_Basis}"
                                                                Width="50" >
                                <!-- Cost Basis Col.-->
                                <telerikGridView:GridViewDataColumn.Header>
                                    <StackPanel Orientation="Vertical">
                                        <TextBlock Text="Cost" HorizontalAlignment="Center" />
                                        <TextBlock Text="Basis" HorizontalAlignment="Center" />
                                    </StackPanel>
                                </telerikGridView:GridViewDataColumn.Header>
                                <telerikGridView:GridViewDataColumn.CellTemplate>
                                    <DataTemplate>
                                        <TextBlock Text="{Binding Cost_Basis}" />
                                    </DataTemplate>
                                </telerikGridView:GridViewDataColumn.CellTemplate>
                                <telerikGridView:GridViewDataColumn.CellEditTemplate>
                                    <DataTemplate>
                                        <telerikInput:RadComboBox x:Name="cboCostBasis" 
                                                                  SelectedValue="{Binding Cost_Basis, Mode=TwoWay}"
                                                                  SelectedValuePath="Content">
                                            <telerikInput:RadComboBoxItem Content="W/M" />
                                            <telerikInput:RadComboBoxItem Content="W" />
                                            <telerikInput:RadComboBoxItem Content="M" />
                                            <telerikInput:RadComboBoxItem Content="WoM" />
                                            <telerikInput:RadComboBoxItem Content="W3M" />
                                            <telerikInput:RadComboBoxItem Content="W2M" />
                                            <telerikInput:RadComboBoxItem Content="%" />
                                            <telerikInput:RadComboBoxItem Content="L" />
                                            <telerikInput:RadComboBoxItem Content="CFT" />
                                            <telerikInput:RadComboBoxItem Content="CWT" />
                                            <telerikInput:RadComboBoxItem Content="ST" />
                                            <telerikInput:RadComboBoxItem Content="4M" />
                                            <telerikInput:RadComboBoxItem Content="T4M" />
                                        </telerikInput:RadComboBox>
                                    </DataTemplate>
                                </telerikGridView:GridViewDataColumn.CellEditTemplate>
                            </telerikGridView:GridViewDataColumn>
                            <!-- END Normal Cost Basis Editable -->
                            <!-- Cost Rates Col.-->
                            <telerikGridView:GridViewDataColumn  DataMemberBinding="{Binding Cost_Rate}">
                                <telerikGridView:GridViewDataColumn.Header>
                                    <StackPanel Orientation="Vertical">
                                        <TextBlock Text="Cost" HorizontalAlignment="Center" />
                                        <TextBlock Text="Rate" HorizontalAlignment="Center" />
                                    </StackPanel>
                                </telerikGridView:GridViewDataColumn.Header>
                                <telerikGridView:GridViewDataColumn.CellTemplate>
                                    <DataTemplate>
                                        <StackPanel Orientation="Vertical">
                                            <TextBlock Text="{Binding Cost_Rate, Converter={StaticResource converter}}" />
                                            <TextBlock Text="{Binding Cost_Rate2, Converter={StaticResource converter}}"  />
                                        </StackPanel>
                                    </DataTemplate>
                                </telerikGridView:GridViewDataColumn.CellTemplate>
                                <telerikGridView:GridViewDataColumn.CellEditTemplate>
                                    <DataTemplate>
                                        <StackPanel Orientation="Vertical">
                                            <TextBox x:Name="txtCostRate" 
                                                     Text="{Binding Cost_Rate, Converter={StaticResource converter}}" />
                                            <TextBox x:Name="txtCostRate2" 
                                                     Text="{Binding Cost_Rate2, Converter={StaticResource converter}}"  />
                                        </StackPanel>
                                    </DataTemplate>
                                </telerikGridView:GridViewDataColumn.CellEditTemplate>
                            </telerikGridView:GridViewDataColumn>
                            <!-- End Cost Rates Editable -->
      
                            <!-- Cost Min Col.-->
                            <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding Cost_Min, Converter={StaticResource converter}}">
                                <telerikGridView:GridViewDataColumn.Header>
                                    <StackPanel Orientation="Vertical">
                                        <TextBlock Text="Cost" HorizontalAlignment="Center" />
                                        <TextBlock Text="Min" HorizontalAlignment="Center" />
                                    </StackPanel>
                                </telerikGridView:GridViewDataColumn.Header>
                                <telerikGridView:GridViewDataColumn.CellTemplate>
                                    <DataTemplate>
                                        <TextBlock Text="{Binding Cost_Min, Converter={StaticResource converter}}" />
                                    </DataTemplate>
                                </telerikGridView:GridViewDataColumn.CellTemplate>
                                <telerikGridView:GridViewDataColumn.CellEditTemplate>
                                    <DataTemplate>
                                        <TextBox x:Name="txtCostMin" 
                                                 Text="{Binding Cost_Min, Converter={StaticResource converter}}" />
                                    </DataTemplate>
                                </telerikGridView:GridViewDataColumn.CellEditTemplate>
                            </telerikGridView:GridViewDataColumn>
                            <!-- End Cost Min Editable -->
      
                            <!-- cost Markup col. Normal Markup-->
                            <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding Cost_Markup, Converter={StaticResource converter}}">
                                <telerikGridView:GridViewDataColumn.Header>
                                    <StackPanel Orientation="Vertical">
                                        <TextBlock Text="Normal" HorizontalAlignment="Center" />
                                        <TextBlock Text="Markup" HorizontalAlignment="Center" />
                                    </StackPanel>
                                </telerikGridView:GridViewDataColumn.Header>
                            </telerikGridView:GridViewDataColumn>
                            <!-- End Markup -->
      
                            <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding Sell_Basis}" Width="50">
                                <!-- Sell Basis Col.-->
                                <telerikGridView:GridViewDataColumn.Header>
                                    <StackPanel Orientation="Vertical">
                                        <TextBlock Text="Sell" HorizontalAlignment="Center" />
                                        <TextBlock Text="Basis" HorizontalAlignment="Center" />
                                    </StackPanel>
                                </telerikGridView:GridViewDataColumn.Header>
                                <telerikGridView:GridViewDataColumn.CellTemplate>
                                    <DataTemplate>
                                        <TextBlock Text="{Binding Sell_Basis}" />
                                    </DataTemplate>
                                </telerikGridView:GridViewDataColumn.CellTemplate>
                                <telerikGridView:GridViewDataColumn.CellEditTemplate>
                                    <DataTemplate>
                                        <telerikInput:RadComboBox x:Name="cboSellBasis" 
                                                                  SelectedValue="{Binding Sell_Basis, Mode=TwoWay}"
                                                                  SelectedValuePath="Content">
                                            <telerikInput:RadComboBoxItem Content="W/M" />
                                            <telerikInput:RadComboBoxItem Content="W" />
                                            <telerikInput:RadComboBoxItem Content="M" />
                                            <telerikInput:RadComboBoxItem Content="WoM" />
                                            <telerikInput:RadComboBoxItem Content="W3M" />
                                            <telerikInput:RadComboBoxItem Content="W2M" />
                                            <telerikInput:RadComboBoxItem Content="%" />
                                            <telerikInput:RadComboBoxItem Content="L" />
                                            <telerikInput:RadComboBoxItem Content="CFT" />
                                            <telerikInput:RadComboBoxItem Content="CWT" />
                                            <telerikInput:RadComboBoxItem Content="ST" />
                                            <telerikInput:RadComboBoxItem Content="4M" />
                                            <telerikInput:RadComboBoxItem Content="T4M" />
                                        </telerikInput:RadComboBox>
                                    </DataTemplate>
                                </telerikGridView:GridViewDataColumn.CellEditTemplate>
                            </telerikGridView:GridViewDataColumn>
                            <!-- End Sell Basis Editable -->
                            <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding Sell_Rate}">
                                <!-- Sell Rates Col.-->
                                <telerikGridView:GridViewDataColumn.Header>
                                    <StackPanel Orientation="Vertical">
                                        <TextBlock Text="Sell" HorizontalAlignment="Center" />
                                        <TextBlock Text="Rates" HorizontalAlignment="Center" />
                                    </StackPanel>
                                </telerikGridView:GridViewDataColumn.Header>
                                <telerikGridView:GridViewDataColumn.CellTemplate>
                                    <DataTemplate>
                                        <StackPanel Orientation="Vertical">
                                            <TextBlock Text="{Binding Sell_Rate, Converter={StaticResource converter}}" />
                                            <TextBlock Text="{Binding Sell_Rate2, Converter={StaticResource converter}}"  />
                                        </StackPanel>
                                    </DataTemplate>
                                </telerikGridView:GridViewDataColumn.CellTemplate>
                                <telerikGridView:GridViewDataColumn.CellEditTemplate>
                                    <DataTemplate>
                                        <StackPanel Orientation="Vertical">
                                            <TextBox x:Name="txtSellRate" 
                                                     Text="{Binding Sell_Rate, Converter={StaticResource converter}}" />
                                            <TextBox x:Name="txtSellRate2" 
                                                     Text="{Binding Sell_Rate2, Converter={StaticResource converter}}"  />
                                        </StackPanel>
                                    </DataTemplate>
                                </telerikGridView:GridViewDataColumn.CellEditTemplate>
                            </telerikGridView:GridViewDataColumn>
                            <!-- End Sell Rates Editable -->
      
                            <!-- Sell Min Col.-->
                            <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding Sell_Min, Converter={StaticResource converter}}">
                                <telerikGridView:GridViewDataColumn.Header>
                                    <StackPanel Orientation="Vertical">
                                        <TextBlock Text="Sell" HorizontalAlignment="Center" />
                                        <TextBlock Text="Min" HorizontalAlignment="Center" />
                                    </StackPanel>
                                </telerikGridView:GridViewDataColumn.Header>
                                <telerikGridView:GridViewDataColumn.CellTemplate>
                                    <DataTemplate>
                                        <TextBlock Text="{Binding Sell_Min, Converter={StaticResource converter}}" />
                                    </DataTemplate>
                                </telerikGridView:GridViewDataColumn.CellTemplate>
                                <telerikGridView:GridViewDataColumn.CellEditTemplate>
                                    <DataTemplate>
                                        <TextBox x:Name="txtSellMin" 
                                                 Text="{Binding Sell_Min, Converter={StaticResource converter}}" />
                                    </DataTemplate>
                                </telerikGridView:GridViewDataColumn.CellEditTemplate>
                            </telerikGridView:GridViewDataColumn>
                            <!-- End Sell Min Editable -->
      
                            <!-- HazCost Basis Col.-->
                            <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding Haz_Basis}" Width="50">
                                <telerikGridView:GridViewDataColumn.Header>
                                    <StackPanel Orientation="Vertical">
                                        <TextBlock Text="HazCost" HorizontalAlignment="Center" />
                                        <TextBlock Text="Basis" HorizontalAlignment="Center" />
                                    </StackPanel>
                                </telerikGridView:GridViewDataColumn.Header>
                                <telerikGridView:GridViewDataColumn.CellTemplate>
                                    <DataTemplate>
                                        <TextBlock Text="{Binding Haz_Basis}" />
                                    </DataTemplate>
                                </telerikGridView:GridViewDataColumn.CellTemplate>
                                <telerikGridView:GridViewDataColumn.CellEditTemplate>
                                    <DataTemplate>
                                        <telerikInput:RadComboBox x:Name="cboHazCostBasis" 
                                                                  SelectedValue="{Binding Haz_Basis, Mode=TwoWay}"
                                                                  SelectedValuePath="Content">
                                            <telerikInput:RadComboBoxItem Content="W/M" />
                                            <telerikInput:RadComboBoxItem Content="W" />
                                            <telerikInput:RadComboBoxItem Content="M" />
                                            <telerikInput:RadComboBoxItem Content="WoM" />
                                            <telerikInput:RadComboBoxItem Content="W3M" />
                                            <telerikInput:RadComboBoxItem Content="W2M" />
                                            <telerikInput:RadComboBoxItem Content="%" />
                                            <telerikInput:RadComboBoxItem Content="L" />
                                            <telerikInput:RadComboBoxItem Content="CFT" />
                                            <telerikInput:RadComboBoxItem Content="CWT" />
                                            <telerikInput:RadComboBoxItem Content="ST" />
                                            <telerikInput:RadComboBoxItem Content="4M" />
                                            <telerikInput:RadComboBoxItem Content="T4M" />
                                        </telerikInput:RadComboBox>
                                    </DataTemplate>
                                </telerikGridView:GridViewDataColumn.CellEditTemplate>
                            </telerikGridView:GridViewDataColumn>
                            <!-- END Haz Cost Basis Editable -->
                            <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding Haz_Rate}">
                                <!-- HazCost Rates Col.-->
                                <telerikGridView:GridViewDataColumn.Header>
                                    <StackPanel Orientation="Vertical">
                                        <TextBlock Text="HazCost" HorizontalAlignment="Center" />
                                        <TextBlock Text="Rates" HorizontalAlignment="Center" />
                                    </StackPanel>
                                </telerikGridView:GridViewDataColumn.Header>
                                <telerikGridView:GridViewDataColumn.CellTemplate>
                                    <DataTemplate>
                                        <StackPanel Orientation="Vertical">
                                            <TextBlock Text="{Binding Haz_Rate, Converter={StaticResource converter}}" />
                                            <TextBlock Text="{Binding Haz_Rate2, Converter={StaticResource converter}}"  />
                                        </StackPanel>
                                    </DataTemplate>
                                </telerikGridView:GridViewDataColumn.CellTemplate>
                                <telerikGridView:GridViewDataColumn.CellEditTemplate>
                                    <DataTemplate>
                                        <StackPanel Orientation="Vertical">
                                            <TextBox x:Name="txtHazCostRate" 
                                                     Text="{Binding Haz_Rate, Converter={StaticResource converter}}" />
                                            <TextBox x:Name="txtHazCostRate2" 
                                                     Text="{Binding Haz_Rate2, Converter={StaticResource converter}}"  />
                                        </StackPanel>
                                    </DataTemplate>
                                </telerikGridView:GridViewDataColumn.CellEditTemplate>
                            </telerikGridView:GridViewDataColumn>
                            <!-- END Haz Cost Rates Editable -->
      
                            <!-- HazCost Min Col.-->
                            <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding Haz_Min, Converter={StaticResource converter}}">
                                <telerikGridView:GridViewDataColumn.Header>
                                    <StackPanel Orientation="Vertical">
                                        <TextBlock Text="HazCost" HorizontalAlignment="Center" />
                                        <TextBlock Text="Min" HorizontalAlignment="Center" />
                                    </StackPanel>
                                </telerikGridView:GridViewDataColumn.Header>
                                <telerikGridView:GridViewDataColumn.CellTemplate>
                                    <DataTemplate>
                                        <TextBlock Text="{Binding Haz_Min, Converter={StaticResource converter}}" />
                                    </DataTemplate>
                                </telerikGridView:GridViewDataColumn.CellTemplate>
                                <telerikGridView:GridViewDataColumn.CellEditTemplate>
                                    <DataTemplate>
                                        <TextBox x:Name="txtHazCostMin" 
                                                 Text="{Binding Haz_Min, Converter={StaticResource converter}}" />
                                    </DataTemplate>
                                </telerikGridView:GridViewDataColumn.CellEditTemplate>
                            </telerikGridView:GridViewDataColumn>
                            <!-- End Haz Cost Min Editable -->
      
                            <!-- Haz Markup Col.-->
                            <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding Haz_Markup, Converter={StaticResource converter}}">
                                <telerikGridView:GridViewDataColumn.Header>
                                    <StackPanel Orientation="Vertical">
                                        <TextBlock Text="Haz" HorizontalAlignment="Center" />
                                        <TextBlock Text="Markup" HorizontalAlignment="Center" />
                                    </StackPanel>
                                </telerikGridView:GridViewDataColumn.Header>
                            </telerikGridView:GridViewDataColumn>
                            <!-- END Hazardous Markup -->
      
                            <!-- Haz Sell Basis Col.-->
                            <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding Haz_Sell_Basis}" Width="50">
                                <telerikGridView:GridViewDataColumn.Header>
                                    <StackPanel Orientation="Vertical">
                                        <TextBlock Text="HazSell" HorizontalAlignment="Center" />
                                        <TextBlock Text="Basis" HorizontalAlignment="Center" />
                                    </StackPanel>
                                </telerikGridView:GridViewDataColumn.Header>
                                <telerikGridView:GridViewDataColumn.CellTemplate>
                                    <DataTemplate>
                                        <TextBlock Text="{Binding Haz_Sell_Basis}" />
                                    </DataTemplate>
                                </telerikGridView:GridViewDataColumn.CellTemplate>
                                <telerikGridView:GridViewDataColumn.CellEditTemplate>
                                    <DataTemplate>
                                        <telerikInput:RadComboBox x:Name="cboHazSellBasis" 
                                                                  SelectedValue="{Binding Haz_Sell_Basis, Mode=TwoWay}"
                                                                  SelectedValuePath="Content">
                                            <telerikInput:RadComboBoxItem Content="W/M" />
                                            <telerikInput:RadComboBoxItem Content="W" />
                                            <telerikInput:RadComboBoxItem Content="M" />
                                            <telerikInput:RadComboBoxItem Content="WoM" />
                                            <telerikInput:RadComboBoxItem Content="W3M" />
                                            <telerikInput:RadComboBoxItem Content="W2M" />
                                            <telerikInput:RadComboBoxItem Content="%" />
                                            <telerikInput:RadComboBoxItem Content="L" />
                                            <telerikInput:RadComboBoxItem Content="CFT" />
                                            <telerikInput:RadComboBoxItem Content="CWT" />
                                            <telerikInput:RadComboBoxItem Content="ST" />
                                            <telerikInput:RadComboBoxItem Content="4M" />
                                            <telerikInput:RadComboBoxItem Content="T4M" />
                                        </telerikInput:RadComboBox>
                                    </DataTemplate>
                                </telerikGridView:GridViewDataColumn.CellEditTemplate>
                            </telerikGridView:GridViewDataColumn>
                            <!-- END Haz Sell Basis Editable -->
      
                            <!-- Haz Sell rates Col.-->
                            <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding Haz_Sell_Rate}">
                                <telerikGridView:GridViewDataColumn.Header>
                                    <StackPanel Orientation="Vertical">
                                        <TextBlock Text="HazSell" HorizontalAlignment="Center" />
                                        <TextBlock Text="Rates" HorizontalAlignment="Center" />
                                    </StackPanel>
                                </telerikGridView:GridViewDataColumn.Header>
                                <telerikGridView:GridViewDataColumn.CellTemplate>
                                    <DataTemplate>
                                        <StackPanel Orientation="Vertical">
                                            <TextBlock Text="{Binding Haz_Sell_Rate, Converter={StaticResource converter}}" />
                                            <TextBlock Text="{Binding Haz_Sell_Rate2, Converter={StaticResource converter}}" />
                                        </StackPanel>
                                    </DataTemplate>
                                </telerikGridView:GridViewDataColumn.CellTemplate>
                                <telerikGridView:GridViewDataColumn.CellEditTemplate>
                                    <DataTemplate>
                                        <StackPanel Orientation="Vertical">
                                            <TextBox x:Name="txtHazSellRate" 
                                                     Text="{Binding Haz_Sell_Rate, Converter={StaticResource converter}}" />
                                            <TextBox x:Name="txtHazSellRate2" 
                                                     Text="{Binding Haz_Sell_Rate2, Converter={StaticResource converter}}" />
                                        </StackPanel>
                                    </DataTemplate>
                                </telerikGridView:GridViewDataColumn.CellEditTemplate>
                            </telerikGridView:GridViewDataColumn>
                            <!-- End Haz Sell Rates Editable -->
      
                            <!-- Haz sell Min Col.-->
                            <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding Haz_Sell_Min, Converter={StaticResource converter}}">
                                <telerikGridView:GridViewDataColumn.Header>
                                    <StackPanel Orientation="Vertical">
                                        <TextBlock Text="HazSell" HorizontalAlignment="Center" />
                                        <TextBlock Text="Min" HorizontalAlignment="Center" />
                                    </StackPanel>
                                </telerikGridView:GridViewDataColumn.Header>
                                <telerikGridView:GridViewDataColumn.CellTemplate>
                                    <DataTemplate>
                                        <TextBlock Text="{Binding Haz_Sell_Min, Converter={StaticResource converter}}" />
                                    </DataTemplate>
                                </telerikGridView:GridViewDataColumn.CellTemplate>
                                <telerikGridView:GridViewDataColumn.CellEditTemplate>
                                    <DataTemplate>
                                        <TextBox x:Name="txtHazSellMin" 
                                                 Text="{Binding Haz_Sell_Min, Converter={StaticResource converter}}" />
                                    </DataTemplate>
                                </telerikGridView:GridViewDataColumn.CellEditTemplate>
                            </telerikGridView:GridViewDataColumn>
                            <!-- END Haz Sell Min Editable -->
      
                            <!-- Pref Routing Columns -->
                            <!-- PR HOU COL.-->
                            <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding PrefRouts.HOU}">
                                <telerikGridView:GridViewDataColumn.Header>
                                    <StackPanel Orientation="Vertical">
                                        <TextBlock Text="PR" HorizontalAlignment="Center" />
                                        <TextBlock Text="HOU" HorizontalAlignment="Center" />
                                    </StackPanel>
                                </telerikGridView:GridViewDataColumn.Header>
                            </telerikGridView:GridViewDataColumn>
                            <!-- END HOU -->
      
                            <!-- PR DAL Col.-->
                            <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding PrefRouts.DAL}">
                                <telerikGridView:GridViewDataColumn.Header>
                                    <StackPanel Orientation="Vertical">
                                        <TextBlock Text="PR" HorizontalAlignment="Center" />
                                        <TextBlock Text="DAL" HorizontalAlignment="Center" />
                                    </StackPanel>
                                </telerikGridView:GridViewDataColumn.Header>
                            </telerikGridView:GridViewDataColumn>
                            <!-- END DAL -->
      
                            <!-- PR NOL Col.-->
                            <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding PrefRouts.NOL}">
                                <telerikGridView:GridViewDataColumn.Header>
                                    <StackPanel Orientation="Vertical">
                                        <TextBlock Text="PR" HorizontalAlignment="Center" />
                                        <TextBlock Text="NOL" HorizontalAlignment="Center" />
                                    </StackPanel>
                                </telerikGridView:GridViewDataColumn.Header>
                            </telerikGridView:GridViewDataColumn>
                            <!-- END NOL -->
      
                            <!-- PR MTR Col.-->
                            <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding PrefRouts.MTR}">
                                <telerikGridView:GridViewDataColumn.Header>
                                    <StackPanel Orientation="Vertical">
                                        <TextBlock Text="PR" HorizontalAlignment="Center" />
                                        <TextBlock Text="MTR" HorizontalAlignment="Center" />
                                    </StackPanel>
                                </telerikGridView:GridViewDataColumn.Header>
                            </telerikGridView:GridViewDataColumn>
                            <!-- END MTR -->
      
                            <!-- PR VAN Col.-->
                            <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding PrefRouts.VAN}">
                                <telerikGridView:GridViewDataColumn.Header>
                                    <StackPanel Orientation="Vertical">
                                        <TextBlock Text="PR" HorizontalAlignment="Center" />
                                        <TextBlock Text="VAN" HorizontalAlignment="Center" />
                                    </StackPanel>
                                </telerikGridView:GridViewDataColumn.Header>
                            </telerikGridView:GridViewDataColumn>
                            <!-- END VAN -->
      
                            <!-- PR TOR Col.-->
                            <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding PrefRouts.TOR}">
                                <telerikGridView:GridViewDataColumn.Header>
                                    <StackPanel Orientation="Vertical">
                                        <TextBlock Text="PR" HorizontalAlignment="Center" />
                                        <TextBlock Text="TOR" HorizontalAlignment="Center" />
                                    </StackPanel>
                                </telerikGridView:GridViewDataColumn.Header>
                            </telerikGridView:GridViewDataColumn>
                            <!-- END TOR -->
      
                            <!-- PR CHX Col.-->
                            <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding PrefRouts.CHX}">
                                <telerikGridView:GridViewDataColumn.Header>
                                    <StackPanel Orientation="Vertical">
                                        <TextBlock Text="PR" HorizontalAlignment="Center" />
                                        <TextBlock Text="CHX" HorizontalAlignment="Center" />
                                    </StackPanel>
                                </telerikGridView:GridViewDataColumn.Header>
                            </telerikGridView:GridViewDataColumn>
                            <!-- END CHX -->
      
                            <!-- PR CLV Col.-->
                            <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding PrefRouts.CLV}">
                                <telerikGridView:GridViewDataColumn.Header>
                                    <StackPanel Orientation="Vertical">
                                        <TextBlock Text="PR" HorizontalAlignment="Center" />
                                        <TextBlock Text="CLV" HorizontalAlignment="Center" />
                                    </StackPanel>
                                </telerikGridView:GridViewDataColumn.Header>
                            </telerikGridView:GridViewDataColumn>
                            <!-- END CLV -->
      
                            <!-- PR DET Col. -->
                            <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding PrefRouts.DET}">
                                <telerikGridView:GridViewDataColumn.Header>
                                    <StackPanel Orientation="Vertical">
                                        <TextBlock Text="PR" HorizontalAlignment="Center" />
                                        <TextBlock Text="DET" HorizontalAlignment="Center" />
                                    </StackPanel>
                                </telerikGridView:GridViewDataColumn.Header>
                            </telerikGridView:GridViewDataColumn>
                            <!-- END DET -->
      
                            <!-- PR CMH Col.-->
                            <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding PrefRouts.CMH}">
                                <telerikGridView:GridViewDataColumn.Header>
                                    <StackPanel Orientation="Vertical">
                                        <TextBlock Text="PR" HorizontalAlignment="Center" />
                                        <TextBlock Text="CMH" HorizontalAlignment="Center" />
                                    </StackPanel>
                                </telerikGridView:GridViewDataColumn.Header>
                            </telerikGridView:GridViewDataColumn>
                            <!-- END CMH -->
      
                            <!-- PR JER Col.-->
                            <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding PrefRouts.JER}">
                                <telerikGridView:GridViewDataColumn.Header>
                                    <StackPanel Orientation="Vertical">
                                        <TextBlock Text="PR" HorizontalAlignment="Center" />
                                        <TextBlock Text="JER" HorizontalAlignment="Center" />
                                    </StackPanel>
                                </telerikGridView:GridViewDataColumn.Header>
                            </telerikGridView:GridViewDataColumn>
                            <!-- END JER -->
      
                            <!-- PR BAL Col.-->
                            <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding PrefRouts.BAL}">
                                <telerikGridView:GridViewDataColumn.Header>
                                    <StackPanel Orientation="Vertical">
                                        <TextBlock Text="PR" HorizontalAlignment="Center" />
                                        <TextBlock Text="BAL" HorizontalAlignment="Center" />
                                    </StackPanel>
                                </telerikGridView:GridViewDataColumn.Header>
                            </telerikGridView:GridViewDataColumn>
                            <!-- END BAL -->
      
                            <!-- PR BOS Col. -->
                            <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding PrefRouts.BOS}">
                                <telerikGridView:GridViewDataColumn.Header>
                                    <StackPanel Orientation="Vertical">
                                        <TextBlock Text="PR" HorizontalAlignment="Center" />
                                        <TextBlock Text="BOS" HorizontalAlignment="Center" />
                                    </StackPanel>
                                </telerikGridView:GridViewDataColumn.Header>
                            </telerikGridView:GridViewDataColumn>
                            <!-- END BOS -->
      
                            <!-- PR PHL Col.-->
                            <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding PrefRouts.PHL}">
                                <telerikGridView:GridViewDataColumn.Header>
                                    <StackPanel Orientation="Vertical">
                                        <TextBlock Text="PR" HorizontalAlignment="Center" />
                                        <TextBlock Text="PHL" HorizontalAlignment="Center" />
                                    </StackPanel>
                                </telerikGridView:GridViewDataColumn.Header>
                            </telerikGridView:GridViewDataColumn>
                            <!-- END PHL -->
      
                            <!-- PR CSC Col.-->
                            <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding PrefRouts.CSC}">
                                <telerikGridView:GridViewDataColumn.Header>
                                    <StackPanel Orientation="Vertical">
                                        <TextBlock Text="PR" HorizontalAlignment="Center" />
                                        <TextBlock Text="CSC" HorizontalAlignment="Center" />
                                    </StackPanel>
                                </telerikGridView:GridViewDataColumn.Header>
                            </telerikGridView:GridViewDataColumn>
                            <!-- END CSC -->
      
                            <!-- PR ATL Col.-->
                            <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding PrefRouts.ATL}">
                                <telerikGridView:GridViewDataColumn.Header>
                                    <StackPanel Orientation="Vertical">
                                        <TextBlock Text="PR" HorizontalAlignment="Center" />
                                        <TextBlock Text="ATL" HorizontalAlignment="Center" />
                                    </StackPanel>
                                </telerikGridView:GridViewDataColumn.Header>
                            </telerikGridView:GridViewDataColumn>
                            <!-- END ATL -->
      
                            <!-- PR NOR Col.-->
                            <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding PrefRouts.NOR}">
                                <telerikGridView:GridViewDataColumn.Header>
                                    <StackPanel Orientation="Vertical">
                                        <TextBlock Text="PR" HorizontalAlignment="Center" />
                                        <TextBlock Text="NOR" HorizontalAlignment="Center" />
                                    </StackPanel>
                                </telerikGridView:GridViewDataColumn.Header>
                            </telerikGridView:GridViewDataColumn>
                            <!-- END NOR -->
      
                            <!-- PR CLT Col.-->
                            <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding PrefRouts.CLT}">
                                <telerikGridView:GridViewDataColumn.Header>
                                    <StackPanel Orientation="Vertical">
                                        <TextBlock Text="PR" HorizontalAlignment="Center" />
                                        <TextBlock Text="CLT" HorizontalAlignment="Center" />
                                    </StackPanel>
                                </telerikGridView:GridViewDataColumn.Header>
                            </telerikGridView:GridViewDataColumn>
                            <!-- END CLT -->
      
                            <!-- PR JAX Col.-->
                            <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding PrefRouts.JAX}">
                                <telerikGridView:GridViewDataColumn.Header>
                                    <StackPanel Orientation="Vertical">
                                        <TextBlock Text="PR" HorizontalAlignment="Center" />
                                        <TextBlock Text="JAX" HorizontalAlignment="Center" />
                                    </StackPanel>
                                </telerikGridView:GridViewDataColumn.Header>
                            </telerikGridView:GridViewDataColumn>
                            <!-- END JAX -->
      
                            <!-- PR MIA Col.-->
                            <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding PrefRouts.MIA}">
                                <telerikGridView:GridViewDataColumn.Header>
                                    <StackPanel Orientation="Vertical">
                                        <TextBlock Text="PR" HorizontalAlignment="Center" />
                                        <TextBlock Text="MIA" HorizontalAlignment="Center" />
                                    </StackPanel>
                                </telerikGridView:GridViewDataColumn.Header>
                            </telerikGridView:GridViewDataColumn>
                            <!-- END MIA -->
      
                            <!-- PR MEM Col.-->
                            <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding PrefRouts.MEM}">
                                <telerikGridView:GridViewDataColumn.Header>
                                    <StackPanel Orientation="Vertical">
                                        <TextBlock Text="PR" HorizontalAlignment="Center" />
                                        <TextBlock Text="MEM" HorizontalAlignment="Center" />
                                    </StackPanel>
                                </telerikGridView:GridViewDataColumn.Header>
                            </telerikGridView:GridViewDataColumn>
                            <!-- END MEM -->
      
                            <!-- Pr POR Col.-->
                            <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding PrefRouts.POR}">
                                <telerikGridView:GridViewDataColumn.Header>
                                    <StackPanel Orientation="Vertical">
                                        <TextBlock Text="PR" HorizontalAlignment="Center" />
                                        <TextBlock Text="POR" HorizontalAlignment="Center" />
                                    </StackPanel>
                                </telerikGridView:GridViewDataColumn.Header>
                            </telerikGridView:GridViewDataColumn>
                            <!-- END POR -->
      
                            <!-- PR SFO Col.-->
                            <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding PrefRouts.SFO}">
                                <telerikGridView:GridViewDataColumn.Header>
                                    <StackPanel Orientation="Vertical">
                                        <TextBlock Text="PR" HorizontalAlignment="Center" />
                                        <TextBlock Text="SFO" HorizontalAlignment="Center" />
                                    </StackPanel>
                                </telerikGridView:GridViewDataColumn.Header>
                            </telerikGridView:GridViewDataColumn>
                            <!-- END SFO -->
      
                            <!-- PR LAX Col.-->
                            <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding PrefRouts.LAX}">
                                <telerikGridView:GridViewDataColumn.Header>
                                    <StackPanel Orientation="Vertical">
                                        <TextBlock Text="PR" HorizontalAlignment="Center" />
                                        <TextBlock Text="LAX" HorizontalAlignment="Center" />
                                    </StackPanel>
                                </telerikGridView:GridViewDataColumn.Header>
                            </telerikGridView:GridViewDataColumn>
                            <!-- END LAX -->
      
                            <!-- PR SEA Col. -->
                            <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding PrefRouts.SEA}">
                                <telerikGridView:GridViewDataColumn.Header>
                                    <StackPanel Orientation="Vertical">
                                        <TextBlock Text="PR" HorizontalAlignment="Center" />
                                        <TextBlock Text="SEA" HorizontalAlignment="Center" />
                                    </StackPanel>
                                </telerikGridView:GridViewDataColumn.Header>
                            </telerikGridView:GridViewDataColumn>
                            <!-- END SEA -->
                        </telerikGridView:RadGridView.Columns>
                        <!-- This creates that child grid when you click + sign -->
                        <telerikGridView:RadGridView.HierarchyChildTemplate>
                            <DataTemplate>
                                <telerikGridView:RadGridView x:Name="gdvTSCharges" 
                                    DataLoadMode="Asynchronous"
                                    CanUserDeleteRows="True"
                                    CanUserInsertRows="True"
                                    ShowInsertRow="True"
                                    ItemsSource="{Binding Charges}"
                                    ShowGroupPanel="False"
                                    IsFilteringAllowed="False"
                                    AutoGenerateColumns="False"
                                    AddingNewDataItem="gdvTSCharges_AddingNewDataItem"
                                    EnableColumnVirtualization="True"
                                    EnableRowVirtualization="True"  >
                                    <telerikGridView:RadGridView.Columns>
                                        <!-- ChgType Col. in child grid + -->
                                        <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding ChargeType}" Header="ChgType" />
                                        <!-- Haz Display Col.-->
                                        <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding HazDisplayFlag}" Header="Haz Display" />
                                        <!-- Expense Basis Col.-->
                                        <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding ExpBasis}">
                                            <telerikGridView:GridViewDataColumn.Header>
                                                <StackPanel Orientation="Vertical">
                                                    <TextBlock Text="Expense" HorizontalAlignment="Center" />
                                                    <TextBlock Text="Basis" HorizontalAlignment="Center" />
                                                </StackPanel>
                                            </telerikGridView:GridViewDataColumn.Header>
                                        </telerikGridView:GridViewDataColumn>
                                        <!-- Expense Rate Col.-->
                                        <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding ExpRate1}">
                                            <telerikGridView:GridViewDataColumn.Header>
                                                <StackPanel Orientation="Vertical">
                                                    <TextBlock Text="Expense" HorizontalAlignment="Center" />
                                                    <TextBlock Text="Rate" HorizontalAlignment="Center" />
                                                </StackPanel>
                                            </telerikGridView:GridViewDataColumn.Header>
                                            <telerikGridView:GridViewDataColumn.CellTemplate>
                                                <DataTemplate>
                                                    <StackPanel Orientation="Vertical">
                                                        <TextBlock Text="{Binding ExpRate1, Converter={StaticResource converter}}" />
                                                        <TextBlock Text="{Binding ExpRate2, Converter={StaticResource converter}}"  />
                                                    </StackPanel>
                                                </DataTemplate>
                                            </telerikGridView:GridViewDataColumn.CellTemplate>
                                            <telerikGridView:GridViewDataColumn.CellEditTemplate>
                                                <DataTemplate>
                                                    <StackPanel Orientation="Vertical">
                                                        <TextBox x:Name="txtTSChgExpRate1" 
                                                     Text="{Binding ExpRate1, Converter={StaticResource converter}}" />
                                                        <TextBox x:Name="txtTSChgExpRate2" 
                                                     Text="{Binding ExpRate1, Converter={StaticResource converter}}"  />
                                                    </StackPanel>
                                                </DataTemplate>
                                            </telerikGridView:GridViewDataColumn.CellEditTemplate>
                                        </telerikGridView:GridViewDataColumn>
                                        <!-- End Expense Rate Editable-->
                                        <!-- Expense Min Col.-->
                                        <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding ExpMin, Converter={StaticResource converter}}">
                                            <telerikGridView:GridViewDataColumn.Header>
                                                <StackPanel Orientation="Vertical">
                                                    <TextBlock Text="Expense" HorizontalAlignment="Center" />
                                                    <TextBlock Text="Min" HorizontalAlignment="Center" />
                                                </StackPanel>
                                            </telerikGridView:GridViewDataColumn.Header>
                                        </telerikGridView:GridViewDataColumn>
                                        <!-- Revenue Basis Col.-->
                                        <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding RevBasis}">
                                            <telerikGridView:GridViewDataColumn.Header>
                                                <StackPanel Orientation="Vertical">
                                                    <TextBlock Text="Revenue" HorizontalAlignment="Center" />
                                                    <TextBlock Text="Basis" HorizontalAlignment="Center" />
                                                </StackPanel>
                                            </telerikGridView:GridViewDataColumn.Header>
                                        </telerikGridView:GridViewDataColumn>
                                        <!-- Revenue Rate Col.-->
                                        <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding RevRate1}">
                                            <telerikGridView:GridViewDataColumn.Header>
                                                <StackPanel Orientation="Vertical">
                                                    <TextBlock Text="Revenue" HorizontalAlignment="Center" />
                                                    <TextBlock Text="Rate" HorizontalAlignment="Center" />
                                                </StackPanel>
                                            </telerikGridView:GridViewDataColumn.Header>
                                            <telerikGridView:GridViewDataColumn.CellTemplate>
                                                <DataTemplate>
                                                    <StackPanel Orientation="Vertical">
                                                        <TextBlock Text="{Binding RevRate1, Converter={StaticResource converter}}" />
                                                        <TextBlock Text="{Binding RevRate2, Converter={StaticResource converter}}"  />
                                                    </StackPanel>
                                                </DataTemplate>
                                            </telerikGridView:GridViewDataColumn.CellTemplate>
                                            <telerikGridView:GridViewDataColumn.CellEditTemplate>
                                                <DataTemplate>
                                                    <StackPanel Orientation="Vertical">
                                                        <TextBox x:Name="txtTSChgRevRate1" 
                                                     Text="{Binding ExpRate1, Converter={StaticResource converter}}" />
                                                        <TextBox x:Name="txtTSChgRevRate2" 
                                                     Text="{Binding ExpRate1, Converter={StaticResource converter}}"  />
                                                    </StackPanel>
                                                </DataTemplate>
                                            </telerikGridView:GridViewDataColumn.CellEditTemplate>
                                        </telerikGridView:GridViewDataColumn>
                                        <!-- End Revenue Rate Editable -->
                                        <!-- Revenue Min Col.-->
                                        <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding RevMin, Converter={StaticResource converter}}">
                                            <telerikGridView:GridViewDataColumn.Header>
                                                <StackPanel Orientation="Vertical">
                                                    <TextBlock Text="Revenue" HorizontalAlignment="Center" />
                                                    <TextBlock Text="Min" HorizontalAlignment="Center" />
                                                </StackPanel>
                                            </telerikGridView:GridViewDataColumn.Header>
                                        </telerikGridView:GridViewDataColumn>
                                    </telerikGridView:RadGridView.Columns>
                                </telerikGridView:RadGridView>
                            </DataTemplate>
                        </telerikGridView:RadGridView.HierarchyChildTemplate>
                    </telerikGridView:RadGridView>
                    <!-- End Tship Rate Agreement Grid -->
                    <!--<telerik:RadRadioButton x:Name="btnSaveTS" Height="28" HorizontalAlignment="Left" Width="100" Content="Save TS" Click="btnSaveTS_Click" />-->
                    <StackPanel Orientation="Horizontal">
                        <StackPanel Orientation="Vertical">
                            <TextBlock Text="Container Costs" 
                                           Width="500" 
                                           Margin="0,0,10,0" 
                                           FontSize="14" 
                                           FontWeight="Bold"/>
                            <telerikGridView:RadGridView x:Name="gdvContCost"
                            DataLoadMode="Asynchronous"
                            CanUserDeleteRows="True" 
                            CanUserInsertRows="True"
                            ShowInsertRow="True"
                                                             AutoGenerateColumns="False"
                                                             AddingNewDataItem="gdvContCost_AddingNewDataItem"
                                                             ItemsSource="{Binding ContChgs}"
                                                             ShowGroupPanel="False"
                                                              IsFilteringAllowed="False"
                                                             Width="510" 
                                                             Margin="0,0,10,0"
                                                             FontFamily="Arial Narrow"
                                                              FontSize="14"
                                                              EnableColumnVirtualization="True"
                                                 EnableRowVirtualization="True"  >
                                <telerikGridView:RadGridView.Columns>
                                    <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding Description}" Header="Charge" />
                                    <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding Code}" Header="Code" />
                                    <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding PayorType}" Header="Type" />
                                    <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding Rate}" Header="Rate" DataFormatString="{}{0:0.00}" />
                                    <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding Basis}" Header="Basis" />
                                    <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding Min}" Header="Min" />
                                    <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding Max}" Header="Max" />
                                    <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding FCLFAK}" Header="FCLFAK" />
                                    <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding Tier}" Header="Tier" />
                                    <!--<telerikGridView:GridViewDataColumn DataMemberBinding="{Binding Status}" Header="Status" />-->
                                </telerikGridView:RadGridView.Columns>
                            </telerikGridView:RadGridView>
                            <!-- Container Cost Grid -->
                            <TextBlock Text="Exceptions To Unpack" 
                                           FontSize="14" 
                                           FontWeight="Bold" />
                            <telerikGridView:RadGridView x:Name="gdvUnpack"
                            DataLoadMode="Asynchronous"
                            CanUserDeleteRows="True"
                            CanUserInsertRows="True"
                            ShowInsertRow="True"
                             EnableColumnVirtualization="True"
                                                 EnableRowVirtualization="True"  
                             HorizontalAlignment="Left"
                                                             AutoGenerateColumns="False"
                                                             AddingNewDataItem="gdvUnpack_AddingNewDataItem"
                                                             ShowGroupPanel="False"
                                                             IsFilteringAllowed="False"
                                                             ItemsSource="{Binding UnpackExceptions}"
                                                             Width="510" 
                                                             FontFamily="Arial Narrow"
                                                              FontSize="14">
                                <telerikGridView:RadGridView.Columns>
                                    <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding CustName}" 
                                                                            Header="Customer" />
                                    <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding CustNum}" Header="Code" />
                                    <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding Rate}" Header="Rate" DataFormatString="{}{0:0.00}" />
                                    <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding Basis}" Header="Basis" />
                                    <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding Min}" Header="Min" DataFormatString="{}{0:0.00}" />
                                </telerikGridView:RadGridView.Columns>
                            </telerikGridView:RadGridView>
                            <!-- Exceptions to Unpack Grid -->
                            <TextBlock Text="Hazardous Restrictions" 
                                               FontSize="14" 
                                               FontWeight="Bold" />
                            <telerikGridView:RadGridView x:Name="gdvHazRestrict"
                            DataLoadMode="Asynchronous"
                            CanUserDeleteRows="True"
                            CanUserInsertRows="True"
                            ShowInsertRow="True"
                             EnableColumnVirtualization="True"
                                                 EnableRowVirtualization="True"  
                             HorizontalAlignment="Left"
                                                                 AutoGenerateColumns="False"
                                                                 AddingNewDataItem="gdvHazRestrict_AddingNewDataItem"
                                                                 ShowGroupPanel="False"
                                                                 IsFilteringAllowed="False"
                                                                 ItemsSource="{Binding HazRestrictions}"
                                                                 Width="510" 
                                                                 FontFamily="Arial Narrow"
                                                                  FontSize="14">
                                <telerikGridView:RadGridView.Columns>
                                    <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding UNCode}" Header="UNCode" />
                                    <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding Condition}" Header="Condition" />
                                </telerikGridView:RadGridView.Columns>
                            </telerikGridView:RadGridView>
                            <!-- Hazardous Restrictions Grid -->
                        </StackPanel>
                        <!-- Cont Costs, Unpack Excep, Haz Restrict Grids -->
                        <StackPanel Width="450" 
                                        Orientation="Vertical">
                            <TextBlock Text="Notes" 
                                           Width="450" 
                                           FontSize="14" 
                                           FontWeight="Bold" />
      
                            <!--ks 8/2/2010 for demoing comment out editor dont want them to get
                                           excited.
                                           -->
                            <!--<telerikEditor:RadEditor 
                                Visibility="Visible" 
                                PathToHelperXap="/ClientBin/RadEditorHelper.xap" 
                                Html ="{Binding AgentNotes}"
                                HtmlChanged="RadEditor1_HtmlChanged"  
                                x:Name="RadEditor1" >
                            </telerikEditor:RadEditor>-->
      
                            <!--<telerikGridView:RadGridView x:Name="gdvNotes"
                             EnableColumnVirtualization="True"
                                                 EnableRowVirtualization="True"  
                            DataLoadMode="Asynchronous"
                                                             AutoGenerateColumns="False"
                                                             ItemsSource="{Binding AgentNotes}"
                                                             ShowGroupPanel="False"
                                                             IsFilteringAllowed="False"
                                                             CellEditEnded="gdvNotes_CellEditEnded"
                                                             Width="460" >
                                <telerikGridView:RadGridView.Columns>
                                     
                                    <telerikGridView:GridViewDataColumn Header="Agents Notes" Width="430" />
                                </telerikGridView:RadGridView.Columns>
                            </telerikGridView:RadGridView>-->
                        </StackPanel>
                        <!-- Agreement Notes Grid -->
                    </StackPanel>
                </StackPanel>
            </DataTemplate>
        </UserControl.Resources>
      
        <Grid x:Name="LayoutRoot">
      
            <ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto">
                <StackPanel Orientation="Vertical">
                    <StackPanel Orientation="Horizontal">
                        <Border Margin="2" Padding="2" BorderBrush="Black" 
                            BorderThickness="1" CornerRadius="5" 
                            VerticalAlignment="Center">
                            <StackPanel Orientation="Horizontal">
                                <RadioButton x:Name="rdoPort" Content="By Port" 
                                         IsChecked="True" Click="rdoPort_Click" />
                                <RadioButton x:Name="rdoAgent" Content="By Agent" 
                                         Click="rdoPort_Click" />
                            </StackPanel>
                        </Border>
                        <TextBlock x:Name="CBOTitle" 
                               Text="Choose a Port: " 
                               Width="125"
                               TextAlignment="Right"
                               VerticalAlignment="Center" 
                               Margin="5,0,0,0" />
                        <telerikInput:RadComboBox x:Name="cboPorts"
                                                      Width="400"
                                                      Height="25"
                                                      HorizontalAlignment="Left"
                                                      VerticalAlignment="Center"
                                                      SelectionChanged="cboPorts_SelectionChanged">
      
                            <telerikInput:RadComboBox.ItemTemplate>
                                <DataTemplate>
                                    <TextBlock Text="{Binding DisplayName, Mode=TwoWay}" />
                                </DataTemplate>
                            </telerikInput:RadComboBox.ItemTemplate>
      
                        </telerikInput:RadComboBox>
                        <StackPanel Orientation="Vertical">
                            <CheckBox x:Name="chkHistory" IsEnabled="False" Content="Show History" Checked="chkHistory_Checked" Unchecked="chkHistory_Unchecked"/>
                            <!--<CheckBox x:Name="chkCurr" IsEnabled="False" Content="Show Current" Checked="chkHistory_Checked" Unchecked="chkHistory_Unchecked"/>-->
                        </StackPanel>
      
      
                        <TextBlock Text="Choose date:" Foreground="White" Margin="10" />
      
                        <telerikInput:RadDatePicker x:Name="datePicker" HorizontalAlignment="Left" Margin="10" Width="200" Culture="en-US" />
      
                          
                        <telerik:RadRadioButton x:Name="EndDateSearch" Width="80" Height="22"  Margin="0 0 15 0"
                                            HorizontalContentAlignment="Center" VerticalContentAlignment="Center"
                                             Click="EndDateSearch_Click">
                            <telerik:RadRadioButton.Content>
                                <StackPanel Orientation="Horizontal" Margin="4 0">
                                    <TextBlock Text="Search" Foreground="#2b2b2d" FontSize="12" Margin="9 0 0 0"/>
                                </StackPanel>
                            </telerik:RadRadioButton.Content>
                        </telerik:RadRadioButton>
      
                        <telerik:RadRadioButton x:Name="SaveAll" Width="80" Height="22"  Margin="0 0 15 0"
                                            HorizontalContentAlignment="Center" VerticalContentAlignment="Center"
                                             Click="btnSaveTS_Click">
                            <telerik:RadRadioButton.Content>
                                <StackPanel Orientation="Horizontal" Margin="4 0">
                                    <TextBlock Text="Save All" Foreground="#2b2b2d" FontSize="12" Margin="9 0 0 0"/>
                                </StackPanel>
                            </telerik:RadRadioButton.Content>
                        </telerik:RadRadioButton>
      
      
                        <!-- ks 6/8 end history -->
                    </StackPanel>
      
                    <telerikNavigation:RadTabControl x:Name="tabControl1"
                               ItemTemplate="{StaticResource AgentHeaderTemplate}"
                               ContentTemplate="{StaticResource AgentContentTemplate}"
                               Background="White" Margin="0,10,0,0"
                               SelectionChanged="tabControl1_SelectionChanged"
                                                                              
                                >
                    </telerikNavigation:RadTabControl>
      
                </StackPanel>
            </ScrollViewer>
        </Grid>
      
    </UserControl>
          
         
  2. Answer
    Miroslav
    Admin
    Miroslav avatar
    922 posts

    Posted 10 Aug 2010 Link to this post

    Hi Keith Stephens,

    Your xaml looks correct, the only thing here is to make this binding TwoWay:

    SelectedItem="{Binding Loc_Code}"

    Generally all bindings that you expect to be updated by the controls (View -> ViewModel) should be TwoWay.

    Also, can you confirm that the Loc_Num and Loc_Code proeprties are observable? This means that the object they are defined in should implement INotifyPropertyChanged and in their setters the PropertyChanged event should be raised with correct parameters.

    Another suggestion is to watch for any exceptions in the output window while debugging. Normally if there are errors in the databindings, they will surface there. Are you seeing any exceptions there?

    Kind regards,
    Miroslav
    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
  3. DevCraft banner
Back to Top