Example 1.
dataAdapter.Fill(myDataSet);
myDataSet.Tables[0].TableName = "workorder";
myDataSet.Tables[1].TableName = "details";
DataRelation dr = new DataRelation("workorders",
myDataSet.Tables[0].Columns["WorkOrderId"],
myDataSet.Tables[1].Columns["WorkOrderId"]);
DataSet.Relations.Add(dr);
radGridView1.AutoGenerateHierarchy = true;
radGridView1.DataSource = myDataSet;
radGridView1.DataMember = "workorder";
Example 2.
radGridView1.DataSource = myDataSet.Tables[0];
GridViewTemplate template = new GridViewTemplate();
template.DataSource = myDataSet.Tables[1];
radGridView1.MasterGridViewTemplate.ChildGridViewTemplates.Add(template);
GridViewRelation relation = new GridViewRelation(radGridView1.MasterGridViewTemplate);
relation.ChildTemplate = template;
relation.RelationName = "workorders";
relation.ParentColumnNames.Add("WorkOrderId");
relation.ChildColumnNames.Add("WorkOrderId");
radGridView1.Relations.Add(relation);
You can now see the button in the ribbon. The image is there, but the text has disappeared - it is (I assume) beneath the image, but the button has sized itself to the height of the image alone (rather than the image height plus the text height), so the text cannot be seen.
When I change the image to a 16x16 image (for example, Common7\VS2008ImageLibrary\1033\Objects\24bit_bitmaps\camera.bmp), the top of the text can now be seen but it still appears to be cropped as if the button is being resized based on the height of the image alone.
I put the RadSplitButtonElement into a RadRibbonBarButtonGroup because I couldn't find a way for the UI to offer me the option of adding a RadSplitButtonElement except for into a RadRibbonBarButtonGroup.
Is there a bug at work here or (more probably) am I doing something wrong?
Thanks!
Cheers,
FRASER TUSTIAN
Specs:
OS: Windows Vista SP1
.NET Version: 3.5
Telerik Libraries Referenced:
Telerik.WinControls.dll 8.0.0.0
Telerik.WinControls.UI.dll 8.0.0.0
TelerikCommon.dll 8.0.0.0