RadListBoxItem item = new RadListBoxItem(str); |
listBox.Items.Add(item); |
I want this ListBox to stay sorted, so I set
listBox.Sorted = Telerik.WinControls.Enumerations.SortStyle.Ascending; |
DataSet
ds = new DataSet ();
ds.ReadXml(
@"Parent.xml");
DataTable Parent = ds.Tables[0];
ds =
new DataSet();
ds.ReadXml(
@"Child.xml");
DataTable Child = ds.Tables[0];
radGridView1.AutoGenerateHierarchyFromDataSet =
true;
radGridView1.MasterGridViewTemplate.AllowAddNewRow =
true;
radGridView1.MasterGridViewTemplate.DataSource = Parent;
//setup the child template
GridViewTemplate template = new GridViewTemplate();
template.AllowAddNewRow =
true;
template.DataSource = Child;
//create the relation
GridViewRelation relation = new GridViewRelation(radGridView1.MasterGridViewTemplate);
relation.ChildTemplate = template;
relation.RelationName =
"ModuleID";
relation.ParentColumnNames.Add(
"ModuleID");
relation.ChildColumnNames.Add(
"ModuleID");
radGridView1.Relations.Add(relation);
// Adding child template to Main Grid
radGridView1.MasterGridViewTemplate.ChildGridViewTemplates.Add(template);
radGridView1.AutoGenerateHierarchyFromDataSet =
true;
Sample Data in Parent Table.
----------------------------------------
<
Table>
<ModuleID>1</ModuleID>
<
ModuleName>Organisation</ModuleName>
<
ArbModuleName>arbOrganisation</ArbModuleName>
</
Table>
Sample Data in child Table
----------------------------------
<
Table>
<
ModuleID>1</ModuleID>
<
FormID>2</FormID>
<
FormName>frmCountry</FormName>
<
FormDescription>Country Details</FormDescription>
<
FormArbDescription>Arb Country Details</FormArbDescription>
</
Table>
The grid is displaying only the parent table data.
I didnt changed any property of the grid except in the above code
please give me a solution.
Thanking you
Sabindas K S
Hello everybody,
we are using RadControls for WinForms Q3 2009 SP1 and want to change the items of a ComboboxColumns editor by the value of the cell of another column.
For this in GridView.CellBeginEdit we set the editors element to the filtered datasource and expected the Comboxbox just to show the items of the filtered datasource BUT it shows all items of the original unfiltered datasource.
RadComboBoxEditor editor = m_gridView.ActiveEditor as RadComboBoxEditor;
if (null != editor)
{
((RadComboBoxElement)(editor.EditorElement)).DataSource = filteredDataSource;
}
Did we make a mistake or is it just a bug???
Greetings from Berlin, Germany
Daniel