private void RadGridView1_RowDetailsVisibilityChanged(object sender, Telerik.Windows.Controls.GridView.GridViewRowDetailsEventArgs e)
 {
     if (e.DetailsElement != null && e.Visibility == Visibility.Visible)
     {
         var item = (BillGoodReturnForSearch)e.Row.Item;
         var gv   = (RadGridView)e.DetailsElement;
         gv.ItemsSource = item.Details;
     }
 }
        void  OnLoadingRowDetails(object sender, Telerik.Windows.Controls.GridView.GridViewRowDetailsEventArgs e)
        {
            var widthProxy = new WidthProxy();

            widthProxy.TargetElement = e.DetailsElement;
            widthProxy.SetBinding(WidthProxy.WidthProperty, new Binding("ActualWidth")
            {
                Source = sender as RadGridView
            });
        }
 private void RadGridView1_RowDetailsVisibilityChanged(object sender, Telerik.Windows.Controls.GridView.GridViewRowDetailsEventArgs e)
 {
     if (e.DetailsElement != null && e.Visibility == Visibility.Visible)
     {
         var item = (AllocateSearchEntity)e.Row.Item;
         var gv   = (RadGridView)e.DetailsElement;
         if (gv.Tag == null)
         {
             gv.Tag = new object();
             SysProcessView.UIHelper.TransferSizeToHorizontal(gv);
         }
         gv.ItemsSource = new BillReportHelper().TransferSizeToHorizontal <DistributionProductShow>(item.Details);
     }
 }