Hi
When I tried to open the examples I got the attached error then the Visual Studio is close
Any one has any idea regard that?!
Thanks in advance
Hi all,
I used RadDock but by mistake I deleted my windows document in the design view, however its still working in the runtime..
Can you tell me how to restore them back in the design view?
Thanks a lot
See the attached pictures
gridView.GridElement.BeginUpdate();
DataTable dt = gridView.DataSource as DataTable;
dt.Clear();
// Loops a list and add DataRows with dt.NewRow() function
gridView.GridElement.EndUpdate();
Hi
I want to use the grouping function of radScheduler to only group visible resources.
But it does not work, it always shows all resources.
What am I doing wrong?
*** sample code loading Resources
Resource tempResource = null;
recResourceGroup[] resourceGroups = plannerSettings.recResourceGroup;
foreach (recResourceGroup resourceGroup in resourceGroups)
{
tempResource = new Resource("G-"+resourceGroup.No,resourceGroup.Name);
tempResource.Visible = false;
tempResource.Color = Color.Orange;
plannerSchedule.Resources.Add(tempResource);
recResource[] resources = resourceGroup.recResource;
foreach (recResource resource in resources)
{
string sKey = resource.IsRentalItem.ToString() == "1" ? "M" : "R";
sKey += resource.VirtualResource.ToString() == "1" ? "V-" : "-";
tempResource = new Resource(sKey+resource.No,resource.Name);
tempResource.Visible = false;
tempResource.Color = Color.Green;
plannerSchedule.Resources.Add(tempResource);
}
}
*** sample code loading Appointment-Resources
foreach (recResourceAssigned planningAssignedResource in planningAssignedResources)
{
string sKey = null;
switch (planningAssignedResource.Type.ToString())
{
case "0": //resource
{
sKey = "R-" + planningAssignedResource.No.ToString();
}
break;
case "1": //resourceGroup
{
sKey = "G-" + planningAssignedResource.No.ToString();
}
break;
case "2": //workPlace
{
sKey = "W-" + planningAssignedResource.No.ToString();
}
break;
default:
{
//error not supported
}
break;
};
schedulerApp.ResourceIds.Add(plannerSchedule.Resources.GetById(sKey).Id);
}
*** Sample code switching visibility of Resources
foreach (Resource resource in radScheduler1.Resources)
{
string tempKey = resource.Id.KeyValue.ToString();
switch(groupby)
{
case "resource":
resource.Visible = tempKey.Contains("R-") ? true : false;
break;
case "resourceGroup":
resource.Visible = tempKey.Contains("G-") ? true : false;
break;
case "workplace":
resource.Visible = tempKey.Contains("W-") ? true : false;
break;
case "order":
resource.Visible = tempKey.Contains("J-") ? true : false;
break;
default:
resource.Visible = false;
break;
}
...
radScheduler1.RepaintElements();
any ideas?
Daniel
Hello!
Is it possible to set the font of the dropdown grid other then default "Segoe UI" ?
The expected behavior is that the grid must use the same font as RadMultiColumnComboBox.
The code I tried to use is similar to this:
RadMultiColumnComboBox combo =
new
RadMultiColumnComboBox();
combo.Font =
new
System.Drawing.Font(
"Microsoft Sans Serif"
, 8.25F);
combo.EditorControl.Font =
new
System.Drawing.Font(
"Microsoft Sans Serif"
, 8.25F);
But the dropdown grid still uses Segoe UI Font.