All RadTreeView are updated every 15 seconds with an automatic timer.
When I deployed and I want to hide RadPanel clicking the button pin causes error and the panel disappears.
The error says "The object is not within the expected range."
I hope explained me, thanks.
8 Answers, 1 is accepted
We will need a sample project to investigate the issue. Thanks!
Best wishes,
Valentin.Stoychev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
You send the xaml file and xaml.cs, data is loaded from the database.
We describe the situation: 1 .- The data loaded in 3 RadPanel each RadPanel have a RadTreeView, another containing a Glider RadPanel. 2 .- The nodes of RadTreeView can drag and drop to another tree and the planner. 3 .- After making drag and drop, to click on the pin RadPanel, the error occurs and eliminates the Panel Rad. |
this the xaml.cs file ------------------------------------------------------------------------------------------------------------------
public partial class PanProMaestro : Page
{
#region
Variables de clase
int claIntNumIdeUsuario = Int32.Parse(HtmlPage.Document.QueryString["sKu"].ToString());
int claIntNumIdeBodega = 0;
int claIntNumIdeEncabezado = 0;
int claIntNumIdeParDetalle = 0;
bool claBooTraspaso = false;
bool claBooCompra = false;
private Boolean viewChanged;
private IList<TimeSlotItem> timeSlotItems;
object senderObject = new object();
webSerReqMaterial_Alejandria.tabParDetalle detalleG =
new ReqMateriales.webSerReqMaterial_Alejandria.tabParDetalle();
webSerReqMaterial_Alejandria.tabUsuario itemUsuario =
new ReqMateriales.webSerReqMaterial_Alejandria.tabUsuario();
webSerReqMaterial_Alejandria.ReqMaterial_AlejandriaClient cliente =
new ReqMateriales.webSerReqMaterial_Alejandria.ReqMaterial_AlejandriaClient();
#endregion
public PanProMaestro()
{
InitializeComponent();
Carga_Paneles();
datosUsuario();
this.radScheCalendario.Loaded += this.CalendarioPrincipal_Loaded;
this.radScheCalendario.ActiveViewDefinitionChanged += this.CalendarioPrincipal_ActiveViewDefinitionChanged;
this.radScheCalendario.LayoutUpdated += this.CalendarioPrincipal_LayoutUpdated;
this.radScheCalendario.View.PropertyChanged += this.View_PropertyChanged;
RadDragAndDropManager.AddDragQueryHandler(
this, OnDragQuery);
RadDragAndDropManager.AddDropQueryHandler(
this, OnDropQuery);
RadDragAndDropManager.AddDropInfoHandler(
this, OnDropInfo);
//Panel de pendientes
menPenActualizar.Click +=
new RoutedEventHandler(menPenActualizar_Click);
//Panel de compras
butComAgregar.Click +=
new RoutedEventHandler(butComAgregar_Click);
butComEditar.Click +=
new RoutedEventHandler(butComEditar_Click);
butComEliminar.Click +=
new RoutedEventHandler(butComEliminar_Click);
//Panel de traspasos
butTraAgregar.Click +=
new RoutedEventHandler(butTraAgregar_Click);
butTraEditar.Click +=
new RoutedEventHandler(butTraEditar_Click);
butTraEliminar.Click +=
new RoutedEventHandler(butTraEliminar_Click);
}
#region
Eventos
void View_PropertyChanged(object sender, PropertyChangedEventArgs e)
{
if (e.PropertyName == "VisibleRangeStart" || e.PropertyName == "VisibleRangeEnd")
{
this.viewChanged = true;
}
//throw new NotImplementedException();
}
void CalendarioPrincipal_LayoutUpdated(object sender, EventArgs e)
{
try
{
if (this.viewChanged)
{
this.viewChanged = false;
this.InitializeTreViewItems();
}
}
catch (Exception parExcpetion)
{
throw new Exception(parExcpetion.Message);
}
//throw new NotImplementedException();
}
void CalendarioPrincipal_ActiveViewDefinitionChanged(object sender, EventArgs e)
{
try
{
this.viewChanged = true;
}
catch (Exception parException)
{
throw new Exception(parException.Message);
}
//throw new NotImplementedException();
}
void CalendarioPrincipal_Loaded(object sender, RoutedEventArgs e)
{
try
{
this.InitializeTreViewItems();
this.viewChanged = true;
}
catch (Exception parException)
{
throw new Exception(parException.Message);
}
//throw new NotImplementedException();
}
private void InitializeTreViewItems()
{
try
{
this.timeSlotItems = this.radScheCalendario.ChildrenOfType<TimeSlotItem>();
foreach (TimeSlotItem item in timeSlotItems)
{
item.SetValue(RadDragAndDropManager.AllowDropProperty,
true);
}
}
catch (Exception parException)
{
throw new Exception(parException.Message);
}
}
protected virtual void OnDragQuery(object sender, DragDropQueryEventArgs e)
{
try
{
e.QueryResult =
true;
}
catch (Exception parException)
{
throw new Exception(parException.Message);
}
}
void OnDropQuery(object sender, DragDropQueryEventArgs e)
{
try
{
e.QueryResult =
true;
}
catch (Exception parException)
{
throw new Exception(parException.Message);
}
}
private void OnDropInfo(object sender, DragDropEventArgs e)
{
try
{
var sourceTreView = e.Options.Source as RadTreeViewItem;
var item = e.Options.Destination as TimeSlotItem;
if (e.Options.Status == DragStatus.DropComplete && item != null)
{
Appointment punto =
new Appointment();
punto.Start = item.TimeSlot.Start;
punto.End = item.TimeSlot.End;
punto.Subject = sourceTreView.Header.ToString();
punto.UniqueId = sourceTreView.Name;
punto.Body =
"";
radScheCalendario.Appointments.Add(punto);
}
}
catch (Exception parException)
{
throw new Exception(parException.Message);
}
}
#endregion
#region
Menus Eventos
void menPenActualizar_Click(object sender, RoutedEventArgs e)
{
//radTreViePendientes.Items.Clear();
//radTreViePendientes.ItemsSource = null;
//radTreVieCompras.Items.Clear();
//radTreVieCompras.ItemsSource = null;
//radTreVieTraspasos.Items.Clear();
//radTreVieTraspasos.ItemsSource = null;
//Carga_Paneles();
//throw new NotImplementedException();
}
void butComAgregar_Click(object sender, RoutedEventArgs e)
{
claBooTraspaso =
false;
claBooCompra =
true;
PanProMaestro_AddRegPadre window =
new PanProMaestro_AddRegPadre();
window.Closed +=
new EventHandler(window_Closed);
window.Show();
}
void butComEditar_Click(object sender, RoutedEventArgs e)
{
}
void butComEliminar_Click(object sender, RoutedEventArgs e)
{
}
void butTraAgregar_Click(object sender, RoutedEventArgs e)
{
claBooTraspaso =
true;
claBooCompra =
false;
PanProMaestro_AddRegPadre window =
new PanProMaestro_AddRegPadre();
window.Closed +=
new EventHandler(window_Closed);
window.Show();
}
void butTraEditar_Click(object sender, RoutedEventArgs e)
{
}
void butTraEliminar_Click(object sender, RoutedEventArgs e)
{
}
void window_Closed(object sender, EventArgs e)
{
senderObject = sender;
PanProMaestro_AddRegPadre atributo = (PanProMaestro_AddRegPadre)sender;
if (atributo.DialogResult.Value)
{
webSerReqMaterial_Alejandria.tabParEncabezado enc =
new ReqMateriales.webSerReqMaterial_Alejandria.tabParEncabezado();
webSerReqMaterial_Alejandria.EntityReferenceOftabUsuarioauyNZaqc keyRefTabUsuario =
new ReqMateriales.webSerReqMaterial_Alejandria.EntityReferenceOftabUsuarioauyNZaqc();
webSerReqMaterial_Alejandria.EntityReferenceOftabBodegaauyNZaqc keyRefTabBodega =
new ReqMateriales.webSerReqMaterial_Alejandria.EntityReferenceOftabBodegaauyNZaqc();
webSerReqMaterial_Alejandria.EntityReferenceOftabTipTransporteauyNZaqc keyRefTabTipTransporte =
new ReqMateriales.webSerReqMaterial_Alejandria.EntityReferenceOftabTipTransporteauyNZaqc();
webSerReqMaterial_Alejandria.EntityReferenceOftabTipTraCaracteristicasauyNZaqc keyRefTabTipTracaracteristica =
new ReqMateriales.webSerReqMaterial_Alejandria.EntityReferenceOftabTipTraCaracteristicasauyNZaqc();
//CREANDO EL NUEVO REGISTRO ENCABEZADO ---------------------------------------
webSerReqMaterial_Alejandria.tabTipTransporte tipTrans = (webSerReqMaterial_Alejandria.tabTipTransporte)atributo.comBoxTipTransporte.SelectedItem;
webSerReqMaterial_Alejandria.tabTipTraCaracteristicas tipTracar = (webSerReqMaterial_Alejandria.tabTipTraCaracteristicas)atributo.comBoxTipTraCaracteristica.SelectedItem;
keyRefTabUsuario.EntityKey =
new ReqMateriales.webSerReqMaterial_Alejandria.EntityKey();
keyRefTabUsuario.EntityKey.EntityKeyValues = Crea_EntityKeyMember(
"numIdeUsuario", claIntNumIdeUsuario.ToString());
keyRefTabBodega.EntityKey =
new ReqMateriales.webSerReqMaterial_Alejandria.EntityKey();
keyRefTabBodega.EntityKey.EntityKeyValues = Crea_EntityKeyMember(
"numIdeBodega", claIntNumIdeBodega.ToString());
keyRefTabTipTransporte.EntityKey =
new ReqMateriales.webSerReqMaterial_Alejandria.EntityKey();
keyRefTabTipTransporte.EntityKey.EntityKeyValues = Crea_EntityKeyMember(
"numIdeTipTransporte", tipTrans.numIdeTipTransporte.ToString());
keyRefTabTipTracaracteristica.EntityKey =
new ReqMateriales.webSerReqMaterial_Alejandria.EntityKey();
keyRefTabTipTracaracteristica.EntityKey.EntityKeyValues = Crea_EntityKeyMember(
"numIdeTipTraCaracteristicas", tipTracar.numIdeTipTraCaracteristicas.ToString());
enc.tabUsuarioReference = keyRefTabUsuario;
enc.tabBodegaReference = keyRefTabBodega;
enc.carComentario = atributo.texBoxComentario.Text;
enc.fecAlta =
DateTime.Now;
enc.tabTipTransporteReference = keyRefTabTipTransporte;
enc.tabTipTraCaracteristicasReference = keyRefTabTipTracaracteristica;
cliente.Insertar_parEncabezadoCompleted +=
new EventHandler<ReqMateriales.webSerReqMaterial_Alejandria.Insertar_parEncabezadoCompletedEventArgs>(cliente_Insertar_parEncabezadoCompleted);
cliente.Insertar_parEncabezadoAsync(enc);
}
}
void cliente_Insertar_parEncabezadoCompleted(object sender, ReqMateriales.webSerReqMaterial_Alejandria.Insertar_parEncabezadoCompletedEventArgs e)
{
PanProMaestro_AddRegPadre atributo = (PanProMaestro_AddRegPadre)senderObject;
claIntNumIdeEncabezado =
Int32.Parse(e.Result);
webSerReqMaterial_Alejandria.tabParDetalle detalle =
new ReqMateriales.webSerReqMaterial_Alejandria.tabParDetalle();
webSerReqMaterial_Alejandria.EntityReferenceOftabBodegaauyNZaqc keyRefTabBodega =
new ReqMateriales.webSerReqMaterial_Alejandria.EntityReferenceOftabBodegaauyNZaqc();
//CREANDO EL NUEVO REGISTRO DETALLE ----------------------------------
webSerReqMaterial_Alejandria.EntityReferenceOftabParEncabezadoauyNZaqc keyRefTabEncabezado =
new ReqMateriales.webSerReqMaterial_Alejandria.EntityReferenceOftabParEncabezadoauyNZaqc();
webSerReqMaterial_Alejandria.EntityReferenceOftabProductoauyNZaqc keyRefTabProducto =
new ReqMateriales.webSerReqMaterial_Alejandria.EntityReferenceOftabProductoauyNZaqc();
webSerReqMaterial_Alejandria.EntityReferenceOftabUniMedidaauyNZaqc keyRefTabUniMedida =
new ReqMateriales.webSerReqMaterial_Alejandria.EntityReferenceOftabUniMedidaauyNZaqc();
keyRefTabEncabezado.EntityKey =
new ReqMateriales.webSerReqMaterial_Alejandria.EntityKey();
keyRefTabEncabezado.EntityKey.EntityKeyValues = Crea_EntityKeyMember(
"numIdeParEncabezado", claIntNumIdeEncabezado.ToString());
keyRefTabBodega.EntityKey =
new ReqMateriales.webSerReqMaterial_Alejandria.EntityKey();
keyRefTabBodega.EntityKey.EntityKeyValues = Crea_EntityKeyMember(
"numIdeBodega", claIntNumIdeBodega.ToString());
keyRefTabProducto.EntityKey =
new ReqMateriales.webSerReqMaterial_Alejandria.EntityKey();
keyRefTabProducto.EntityKey.EntityKeyValues = Crea_EntityKeyMember(
"numIdeProducto", "0");
keyRefTabUniMedida.EntityKey =
new ReqMateriales.webSerReqMaterial_Alejandria.EntityKey();
keyRefTabUniMedida.EntityKey.EntityKeyValues = Crea_EntityKeyMember(
"numIdeUniMedida", "0");
detalle.tabParEncabezadoReference = keyRefTabEncabezado;
detalle.tabProductoReference = keyRefTabProducto;
detalle.tabBodegaReference = keyRefTabBodega;
detalle.tabUniMedidaReference = keyRefTabUniMedida;
detalle.numIdePadre = 0;
detalle.numIdePadreNativo = 0;
detalle.numIdeConsecutivo = 0;
detalle.carDescripcion = atributo.texBoxDescripcion.Text;
detalle.carComentario =
"";
detalle.numCanSolicitada = 0;
detalle.numCanProgramada = 0;
detalle.fecRequerida =
DateTime.Now;
detalle.fecProEntrega =
DateTime.Now;
detalle.numIdeWorkflow = 0;
detalle.numGUIDWorkflow =
new Guid("00000000-0000-0000-0000-000000000000");
detalle.booCalendarizado =
false;
detalle.booCompra = claBooCompra;
detalle.booTraspaso = claBooTraspaso;
detalleG = detalle;
cliente.Insertar_parDetalleCompleted +=
new EventHandler<ReqMateriales.webSerReqMaterial_Alejandria.Insertar_parDetalleCompletedEventArgs>(cliente_Insertar_parDetalleCompleted);
cliente.Insertar_parDetalleAsync(detalle);
//RadTreeViewItem newItem = new RadTreeViewItem();
//newItem.Name = claIntNumIdeParDetalle.ToString();
//newItem.Header = atributo.texBoxDescripcion.Text;
//newItem.Tag = detalle;
//RadTreeViewItem itemRoot = (RadTreeViewItem)radTreVieCompras.SelectedItem;
//itemRoot.Items.Add(newItem);
}
void cliente_Insertar_parDetalleCompleted(object sender, ReqMateriales.webSerReqMaterial_Alejandria.Insertar_parDetalleCompletedEventArgs e)
{
claIntNumIdeParDetalle =
Int32.Parse(e.Result);
PanProMaestro_AddRegPadre atributo = (PanProMaestro_AddRegPadre)senderObject;
RadTreeViewItem newItem =
new RadTreeViewItem();
newItem.Name = claIntNumIdeParDetalle.ToString();
newItem.Header = atributo.texBoxDescripcion.Text;
newItem.Tag = detalleG;
RadTreeViewItem itemRoot =
new RadTreeViewItem();
if (claBooCompra)
{
itemRoot = (RadTreeViewItem)radTreVieCompras.SelectedItem;
itemRoot.Items.Add(newItem);
}
else if (claBooTraspaso)
{
itemRoot = (RadTreeViewItem)radTreVieTraspasos.SelectedItem;
itemRoot.Items.Add(newItem);
}
claBooTraspaso =
false;
claBooCompra =
false;
return;
}
#endregion
// Se ejecuta cuando el usuario navega a esta pgina.
protected override void OnNavigatedTo(NavigationEventArgs e)
{
}
private void Carga_Paneles()
{
//Cargando todos los datos principales
cliente.Listado_PartidasDetalleCompleted +=
new EventHandler<ReqMateriales.webSerReqMaterial_Alejandria.Listado_PartidasDetalleCompletedEventArgs>(cliente_Listado_PartidasDetalleCompleted);
cliente.Listado_PartidasDetalleAsync();
}
void cliente_Listado_PartidasDetalleCompleted(object sender, ReqMateriales.webSerReqMaterial_Alejandria.Listado_PartidasDetalleCompletedEventArgs e)
{
List<webSerReqMaterial_Alejandria.tabParDetalle> parDetalle = e.Result;
List<webSerReqMaterial_Alejandria.tabParDetalle> objParDetPendientes = new List<ReqMateriales.webSerReqMaterial_Alejandria.tabParDetalle>();
List<webSerReqMaterial_Alejandria.tabParDetalle> objParDetCompras = new List<ReqMateriales.webSerReqMaterial_Alejandria.tabParDetalle>();
List<webSerReqMaterial_Alejandria.tabParDetalle> objParDetTraspasos = new List<ReqMateriales.webSerReqMaterial_Alejandria.tabParDetalle>();
List<webSerReqMaterial_Alejandria.tabParDetalle> objParDetCalendarizado = new List<ReqMateriales.webSerReqMaterial_Alejandria.tabParDetalle>();
//SEPARANDO LOS REGISTROS CORRESPONDIENTES
foreach (webSerReqMaterial_Alejandria.tabParDetalle item in parDetalle)
{
if (item.booCalendarizado.Value)
{
objParDetCalendarizado.Add(item);
}
else if (item.booCompra.Value)
{
objParDetCompras.Add(item);
}
else if (item.booTraspaso.Value)
{
objParDetTraspasos.Add(item);
}
else
{
objParDetPendientes.Add(item);
}
}
//CONSTRUYENDO PANEL DE PENDIENTES---------------------------------------------
foreach (webSerReqMaterial_Alejandria.tabParDetalle item in objParDetPendientes)
{
RadTreeViewItem itRoot =
new RadTreeViewItem();
if (radTreViePendientes.Items.Count == 0)
{
itRoot.Name =
"RootPendientes";
itRoot.Header =
"Req. Pendientes";
radTreViePendientes.Items.Add(itRoot);
}
else
{
itRoot = (RadTreeViewItem)radTreViePendientes.Items[0];
}
if (item.numIdePadre == 0)
{
RadTreeViewItem nodPadre =
new RadTreeViewItem();
nodPadre.Name = item.numIdeParDetalle.ToString();
nodPadre.Header = item.carDescripcion;
nodPadre.Tag = item;
itRoot.Items.Add(nodPadre);
Construye_Item(
ref nodPadre, objParDetPendientes);
}
}
//CONSTRUYENDO PANEL DE COMPRAS----------------------------------------------
foreach (webSerReqMaterial_Alejandria.tabParDetalle item in objParDetCompras)
{
RadTreeViewItem itRoot =
new RadTreeViewItem();
if (radTreVieCompras.Items.Count == 0)
{
itRoot.Name =
"RootCompras";
itRoot.Header =
"Compras no Prog.";
radTreViePendientes.Items.Add(itRoot);
}
else
{
itRoot = (RadTreeViewItem)radTreVieCompras.Items[0];
}
if (item.numIdePadre == 0)
{
RadTreeViewItem nodPadre =
new RadTreeViewItem();
nodPadre.Name = item.numIdeParDetalle.ToString();
nodPadre.Header = item.carDescripcion;
nodPadre.Tag = item;
itRoot.Items.Add(nodPadre);
Construye_Item(
ref nodPadre, objParDetCompras);
}
}
//CONSTRUYENDO PANEL DE TRASPASOS----------------------------------------------
foreach (webSerReqMaterial_Alejandria.tabParDetalle item in objParDetTraspasos)
{
RadTreeViewItem itRoot =
new RadTreeViewItem();
if (radTreVieTraspasos.Items.Count == 0)
{
itRoot.Name =
"RootTraspasos";
itRoot.Header =
"Traspasos no prog.";
radTreViePendientes.Items.Add(itRoot);
}
else
{
itRoot = (RadTreeViewItem)radTreVieTraspasos.Items[0];
}
if (item.numIdePadre == 0)
{
RadTreeViewItem nodPadre =
new RadTreeViewItem();
nodPadre.Name = item.numIdeParDetalle.ToString();
nodPadre.Header = item.carDescripcion;
nodPadre.Tag = item;
itRoot.Items.Add(nodPadre);
Construye_Item(
ref nodPadre, objParDetTraspasos);
}
}
//COLOCANDO LOS OBJETOS YA CALENDARIZADOS
Construye_Item_Scheduler(objParDetCalendarizado);
}
private void Construye_Item(ref RadTreeViewItem nodPadre, List<webSerReqMaterial_Alejandria.tabParDetalle> parLisDetalle)
{
foreach (webSerReqMaterial_Alejandria.tabParDetalle item in parLisDetalle)
{
if (nodPadre.Name == item.numIdePadre.ToString())
{
RadTreeViewItem nodHijo =
new RadTreeViewItem();
nodHijo.Name = item.numIdeParDetalle.ToString();
nodHijo.Header = item.carDescripcion;
nodHijo.Tag = item;
nodPadre.Items.Add(nodHijo);
Construye_Item(
ref nodHijo, parLisDetalle);
}
}
}
private void Construye_Item_Scheduler(List<webSerReqMaterial_Alejandria.tabParDetalle> parParDetCalendarizados)
{
foreach (webSerReqMaterial_Alejandria.tabParDetalle item in parParDetCalendarizados)
{
if (item.numIdePadre == 0)
{
Appointment punto =
new Appointment();
punto.UniqueId = item.numIdeParDetalle.ToString();
punto.Subject = item.carDescripcion;
punto.Body = Construye_Lista(parParDetCalendarizados);
punto.Start =
DateTime.Now;
punto.End =
DateTime.Now;
radScheCalendario.Appointments.Add(punto);
}
}
}
private string Construye_Lista(List<webSerReqMaterial_Alejandria.tabParDetalle> parParDetCalendarizados)
{
StringBuilder info = new StringBuilder();
foreach (webSerReqMaterial_Alejandria.tabParDetalle item in parParDetCalendarizados)
{
if (item.numIdePadre != 0)
{
info.Append(item.carDescripcion +
" " + item.numCanSolicitada.Value.ToString() + "\n");
}
}
return info.ToString();
}
#region
Mtodos especiales
private List<webSerReqMaterial_Alejandria.EntityKeyMember> Crea_EntityKeyMember(string parStrKey, string parStrValue)
{
try
{
List<webSerReqMaterial_Alejandria.EntityKeyMember> miembrosEntityKey = new List<ReqMateriales.webSerReqMaterial_Alejandria.EntityKeyMember>();
ReqMateriales.webSerReqMaterial_Alejandria.EntityKeyMember miembro =
new ReqMateriales.webSerReqMaterial_Alejandria.EntityKeyMember();
miembro =
new ReqMateriales.webSerReqMaterial_Alejandria.EntityKeyMember();
miembro.Key = parStrKey;
miembro.Value = parStrValue;
miembrosEntityKey.Add(miembro);
return miembrosEntityKey;
}
catch (Exception parException)
{
return new List<ReqMateriales.webSerReqMaterial_Alejandria.EntityKeyMember>();
}
}
private void datosUsuario()
{
cliente.Inf_UsuarioCompleted +=
new EventHandler<ReqMateriales.webSerReqMaterial_Alejandria.Inf_UsuarioCompletedEventArgs>(cliente_Inf_UsuarioCompleted);
cliente.Inf_UsuarioAsync(claIntNumIdeUsuario);
}
void cliente_Inf_UsuarioCompleted(object sender, ReqMateriales.webSerReqMaterial_Alejandria.Inf_UsuarioCompletedEventArgs e)
{
itemUsuario = e.Result[0];
//throw new NotImplementedException();
}
#endregion
}
--------------------------------------------------------------------------------------------------------------------------------------
this the xaml file -------------------------------------------------------------------------------------------------------------
<
navigation:Page x:Class="ReqMateriales.Views.Views_Seguimiento.PanProMaestro"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
xmlns:grid="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"
xmlns:gridView="clr-namespace:Telerik.Windows.Controls.GridView;assembly=Telerik.Windows.Controls.GridView"
xmlns:telerikGridView="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"
xmlns:telerikScheduler="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Scheduler"
xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"
xmlns:gridViewElements="clr-namespace:Telerik.Windows.Controls.GridView;assembly=Telerik.Windows.Controls.GridView"
xmlns:radDock="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Docking"
xmlns:dragDrop="clr-namespace:Telerik.Windows.Controls.DragDrop;assembly=Telerik.Windows.Controls"
xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
d:DesignWidth="640" d:DesignHeight="480"
Title="Panel del programador maestro">
<Canvas x:Name="LayoutRoot" Background="Gray" Width="1200" Height="740" Margin="0,0,0,0">
<radDock:RadDocking Width="1200" Height="740">
<radDock:RadSplitContainer Width="250" Height="740" InitialPosition="DockedLeft" VerticalAlignment="Top">
<radDock:RadPaneGroup Width="250">
<!-- PANEL DE ELEMENTOS PENDIENTES -->
<radDock:RadPane x:Name="RadPanPendientes" Header="Pendientes" IsPinned="False" CanUserClose="False" CanFloat="False">
<Canvas>
<telerikNavigation:RadMenu Margin="0,0,0,0" Height="25" Background="White">
<telerikNavigation:RadMenuItem x:Name="menPenActualizar" Header="Actualizar lista" />
</telerikNavigation:RadMenu>
<telerikNavigation:RadTreeView x:Name="radTreViePendientes" Margin="0,30,0,0" IsDragDropEnabled="True" IsDragPreviewEnabled="True" IsDragTooltipEnabled="True">
<telerikNavigation:RadTreeViewItem x:Name="RootPendientes" Header="Req. Pendientes" IsSelected="True" IsExpanded="True" IsDragOver="False"/>
</telerikNavigation:RadTreeView>
</Canvas>
</radDock:RadPane>
</radDock:RadPaneGroup>
</radDock:RadSplitContainer>
<radDock:RadSplitContainer Width="250" Height="740" InitialPosition="DockedLeft" VerticalAlignment="Top">
<radDock:RadPaneGroup Width="250">
<!-- PANEL DE ELEMENTOS DE COMPRAS -->
<radDock:RadPane x:Name="radPanCompras" Header="Compras" IsPinned="False" CanUserClose="False" CanFloat="False">
<Canvas>
<telerikNavigation:RadMenu Margin="0,0,0,0" Height="25" Background="White">
<telerikNavigation:RadMenuItem x:Name="menComEdicion" Header="Edicion">
<telerikNavigation:RadMenuItem x:Name="butComAgregar" Header="Agregar nuevo grupo"/>
<telerikNavigation:RadMenuItem x:Name="butComEditar" Header="Editar elemento seleccionado"/>
<telerikNavigation:RadMenuItem x:Name="butComEliminar" Header="Eliminar elemento seleccionado"/>
</telerikNavigation:RadMenuItem>
</telerikNavigation:RadMenu>
<telerikNavigation:RadTreeView x:Name="radTreVieCompras" Margin="0,30,0,0" IsDragDropEnabled="True" IsDragPreviewEnabled="True" IsDragTooltipEnabled="True">
<telerikNavigation:RadTreeViewItem x:Name="RootCompras" Header="Compras no Prog." IsSelected="True" IsExpanded="True" IsDragOver="False"/>
</telerikNavigation:RadTreeView>
</Canvas>
</radDock:RadPane>
</radDock:RadPaneGroup>
</radDock:RadSplitContainer>
<radDock:RadSplitContainer Width="250" Height="740" InitialPosition="DockedLeft" VerticalAlignment="Top">
<radDock:RadPaneGroup Width="250">
<!-- PANEL DE ELEMEBTOS DE TRASPASOS -->
<radDock:RadPane x:Name="radPanTraspasos" Header="Traspasos" IsPinned="False" CanUserClose="False" CanFloat="False">
<Canvas>
<telerikNavigation:RadMenu Margin="0,0,0,0" Height="25" Background="White">
<telerikNavigation:RadMenuItem x:Name="menTraspasos" Header="Edicion">
<telerikNavigation:RadMenuItem x:Name="butTraAgregar" Header="Agregar nuevo grupo"/>
<telerikNavigation:RadMenuItem x:Name="butTraEditar" Header="Editar elemento seleccionado"/>
<telerikNavigation:RadMenuItem x:Name="butTraEliminar" Header="Eliminar elemento seleccionado"/>
</telerikNavigation:RadMenuItem>
</telerikNavigation:RadMenu>
<telerikNavigation:RadTreeView x:Name="radTreVieTraspasos" Margin="0,30,0,0" IsDragDropEnabled="True" IsDragPreviewEnabled="True" IsDragTooltipEnabled="True">
<telerikNavigation:RadTreeViewItem x:Name="RootTraspasos" Header="Traspasos no prog." IsSelected="True" IsExpanded="True" IsDragOver="False"/>
</telerikNavigation:RadTreeView>
</Canvas>
</radDock:RadPane>
</radDock:RadPaneGroup>
</radDock:RadSplitContainer>
<radDock:RadSplitContainer Width="920" Height="740" InitialPosition="DockedRight" VerticalAlignment="Top">
<radDock:RadPaneGroup>
<radDock:RadPane Header="Calendario" IsPinned="False" CanUserClose="False" CanFloat="False">
<telerikScheduler:RadScheduler Name="radScheCalendario" Width="910" Height="620">
</telerikScheduler:RadScheduler>
</radDock:RadPane>
</radDock:RadPaneGroup>
</radDock:RadSplitContainer>
</radDock:RadDocking>
</Canvas>
</
navigation:Page>
-----------------------------------------------------------------------------------------------------------------------------------------
Help Me =(
The code you sent is a bit complex and we cannot really find the problem without actually being able to debug your application. Just by looking at the code there are too many possibilities. Is it possible that you zip your project and send it to us so that we can debug it?
Kind regards,
Tihomir Petkov
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
The code uses WCF services to obtain information from the database.
By mail to tell me just send you the project?
Please open a support ticket - this way our communication will be private and you will be able to attach files to your posts.
Greetings,
Tihomir Petkov
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
You can send us a support ticket via this submit form:
http://www.telerik.com/account/support-tickets/new-support-ticket.aspx
Regards,
Atanas
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.