DataSet ds = new DataSet();
DataTable dt = new DataTable();
dt.TableName = "Tasks";
dt.Columns.Add("Id");
dt.Columns.Add("ParentID");
dt.Columns.Add("Title");
dt.Columns.Add("Start", typeof(DateTime));
dt.Columns.Add("End", typeof(DateTile));
dt.Rows.Add("1", "","Item1", new DateTime(2018,03,16), new DateTime(2018,03,20);
dt.Rows.Add("2","1","child", new DateTime(2018,03,16), new DateTime(2018,03,17);
dt.Rows.Add("3","","Item2", new DateTime(2018,03,16), new DateTime(2018,03,20);
ds.Tables.Add(dt);
this.radGanttView1.DataSource = ds;
radGanttView1.Items[0].ReadOnly = true;
radGanttView1.Items[0].Items[0].ReadOnly = true;
radGanttView1.Items[0].NextItem.ReadOnly = true;
Item2 is not moving but Item1 is still moving
I want Item1 is not moving too.
How do I make the group descriptor rows automatically increase in height so that they display all of the text?
Note I'm setting the text in the groupSummaryEvaluate event
hi~
radGanttView1.GanttViewElement.DragDropService.PriviewDragStart += DragDropService_PreviewDragStart;
private void DragDropService_PreviewDragStart(object sender , PreviewDragStartEventArgs e)
{
GanttViewSummaryElement element = e.DragInstance as GanttViewSummaryElement;
if(element != null)
{
// Get Start and End
}
}
How can I define the grid back color - the area in White in the attached screen shot of my test application ?
Is it possible to set it as transparent - to display the backgrond image of the hosting form
Thanks in advance
Hi,
I'm trying to work with tabbed views.
It works well
with the addition of a new template to the gridview next to the master
template with a gridview relation (parent master template, child
template) so that I now have a second layer.
Is it possible to add a third layer? A third template and a gridview relation with the second template as parent and the third template as a child?
Best regards,
BloodyFunFrog
I can hide the print preview using this code
radPdfViewerNavigator1.ShowPrintPreview = false;
but how can I hide print preview on the picture shown. Thanks
I want to add result of sql query to dropdownlist items
have tried this :
RadListDataItem dataItem = new RadListDataItem();
dataItem.Text = (read1["size"].ToString());
this.radDropDownList2.Items.Add(dataItem);
A simple example:
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
radPropertyGrid1.SelectedObject = new MyClass();
}
[TypeConverter(typeof(ExpandableObjectConverter))]
public class First
{
[DisplayName("Name"), Category("first")]
public string Name { get; set; }
[DisplayName("Color"), Category("first")]
public Color MyColor { get; set; }
public First()
{
Name = "Foo";
MyColor = Color.Aqua;
}
public override string ToString()
{
return string.Empty;
}
}
[TypeConverter(typeof(ExpandableObjectConverter))]
public class Second
{
[DisplayName("SubName"), Category("Second")]
public string SubName { get; set; }
[DisplayName("SubColor"), Category("Second")]
public Color MySubColor { get; set; }
public Second()
{
SubName = "Any";
MySubColor = Color.Red;
}
public override string ToString()
{
return string.Empty;
}
}
public class MyClass
{
[DisplayName("First"), Category("Item0")]
public First Item0 { get; set; }
[DisplayName("Second"), Category("Item1")]
public Second Item1 { get; set; }
public MyClass()
{
Item0 = new First();
Item1 = new Second();
}
}
}
If I do a search, the RadPropertyGrid finds the name only in the second part of MyClass
I'm trying to make a custom list as the one in the image below using radListView, so far I was already able to create the custom item as i want it to be by creating a custom item that inherits from IconListViewVisualItem but I'm having trouble to access my custom item's properties, so I can hide and show controls as needed as well as the content on them.
Thanks in advance.