When I create RadPanelBarItem dynamically and add a custom control(Grid) only the Grid that is a child of the Selected/Expanded RadPanelBarItem gets loaded.
Once I click on a different RadPanelBarItem then the binding occurs. If I do not Select/Expand any RadPanelBarItem then none of the grid are pre-bound.
Thanks,
Example:
loop start
RadPanelBarItem rpbi = new
rpbi.Header = shift.Title.ToUpper();
rpbi.Name = shift.Title.ToUpper();
rpbi.Tag = shift.Id.ToString();
// Add Custom Reservation UserControl as a child to the RadPanelBarItem (rpbi)
ucReservationGrid grid = new ucReservationGrid();
grid.HorizontalAlignment = HorizontalAlignment.Center;
grid.VerticalAlignment = VerticalAlignment.Center;
// Load the Data
rpbi.Items.Add(grid);
grid.Load(shift);
loop end
Once I click on a different RadPanelBarItem then the binding occurs. If I do not Select/Expand any RadPanelBarItem then none of the grid are pre-bound.
Thanks,
Example:
loop start
RadPanelBarItem rpbi = new
rpbi.Header = shift.Title.ToUpper();
rpbi.Name = shift.Title.ToUpper();
rpbi.Tag = shift.Id.ToString();
// Add Custom Reservation UserControl as a child to the RadPanelBarItem (rpbi)
ucReservationGrid grid = new ucReservationGrid();
grid.HorizontalAlignment = HorizontalAlignment.Center;
grid.VerticalAlignment = VerticalAlignment.Center;
// Load the Data
rpbi.Items.Add(grid);
grid.Load(shift);
loop end