This question is locked. New answers and comments are not allowed.
I am evalutating the RadControl set for purchase and am running into some shortcomings in the product; I am trying to put roughly 1200 items into a panelbar (subdivided into 30 or so groups in a jagged manner), unfortunately this causes the bar to render completely wrong. It's pretty disappointing if this control simply can't deal with large amounts of data, or is there something else I need to do other then just:
private void RefreshAxisValues()
{
KeyValuePair<Dictionary<int, Axis>, Dictionary<int, AxisValue>> result = Simulation.GetAvailableAxisValues(m_CurrentSimulationID, null);
m_pnlVariables.Items.Clear();
Dictionary<int, List<AxisValue>> values = new Dictionary<int, List<AxisValue>>();
foreach (AxisValue value in result.Value.Values)
{
if (!values.ContainsKey(value.AxisID))
{
values.Add(value.AxisID, new List<AxisValue>());
}
values[value.AxisID].Add(value);
}
foreach (int axisID in result.Key.Keys)
{
RadPanelBarGroupElement axisGroup = new RadPanelBarGroupElement();
axisGroup.Caption = result.Key[axisID].Name;
foreach (AxisValue value in values[axisID])
{
RadCheckBoxElement element = new RadCheckBoxElement();
element.Text = value.Value;
element.Tag = value;
element.IsChecked = true;
axisGroup.Items.Add(element);
}
axisGroup.Expanded = false;
axisGroup.AutoSize = true;
axisGroup.CollapseChildren(true);
m_pnlVariables.Items.Add(axisGroup);
}
}
private void RefreshAxisValues()
{
KeyValuePair<Dictionary<int, Axis>, Dictionary<int, AxisValue>> result = Simulation.GetAvailableAxisValues(m_CurrentSimulationID, null);
m_pnlVariables.Items.Clear();
Dictionary<int, List<AxisValue>> values = new Dictionary<int, List<AxisValue>>();
foreach (AxisValue value in result.Value.Values)
{
if (!values.ContainsKey(value.AxisID))
{
values.Add(value.AxisID, new List<AxisValue>());
}
values[value.AxisID].Add(value);
}
foreach (int axisID in result.Key.Keys)
{
RadPanelBarGroupElement axisGroup = new RadPanelBarGroupElement();
axisGroup.Caption = result.Key[axisID].Name;
foreach (AxisValue value in values[axisID])
{
RadCheckBoxElement element = new RadCheckBoxElement();
element.Text = value.Value;
element.Tag = value;
element.IsChecked = true;
axisGroup.Items.Add(element);
}
axisGroup.Expanded = false;
axisGroup.AutoSize = true;
axisGroup.CollapseChildren(true);
m_pnlVariables.Items.Add(axisGroup);
}
}