Posted 18 Mar 2013 Link to this post
radMultiColumnComboBox1.MultiColumnComboBoxElement.EditorControl.Relations.AddSelfReference(
this
.radMultiColumnComboBox1.MultiColumnComboBoxElement.EditorControl.MasterTemplate,
"id"
,
"parentid"
);
sqlDataAdapter1.Fill(dataSet11);
radMultiColumnComboBox1.DataSource = t1BindingSource;
radMultiColumnComboBox1.DisplayMember =
"name"
;
radMultiColumnComboBox1.ValueMember =
.radMultiColumnComboBox1.AutoFilter =
true
.radMultiColumnComboBox1.DisplayMember =
FilterDescriptor filter =
new
FilterDescriptor();
filter.PropertyName =
.radMultiColumnComboBox1.DisplayMember;
filter.Operator = FilterOperator.Contains;
.radMultiColumnComboBox1.EditorControl.MasterTemplate.FilterDescriptors.Add(filter);
CREATE
TABLE
[dbo].[T1](
[id] [
int
]
NOT
NULL
[
name
] [nvarchar](50)
COLLATE
Arabic_CI_AS
[parentid] [
CONSTRAINT
[PK_T1]
PRIMARY
KEY
CLUSTERED
(
[id]
ASC
)
WITH
(PAD_INDEX =
OFF
, STATISTICS_NORECOMPUTE =
, IGNORE_DUP_KEY =
, ALLOW_ROW_LOCKS =
ON
, ALLOW_PAGE_LOCKS =
GO
ALTER
[dbo].[T1]
CHECK
ADD
[FK_T1_T1]
FOREIGN
([parentid])
REFERENCES
[dbo].[T1] ([id])
Posted 24 Mar 2013 Link to this post
Posted 27 Mar 2013 Link to this post
Posted 03 Oct 2013 Link to this post
comboBox.AutoFilter = true;
FilterDescriptor filter = new FilterDescriptor();
filter.PropertyName = comboBox.DisplayMember;
comboBox.EditorControl.MasterTemplate.FilterDescriptors.Add(filter);
comboBox.EditorControl.MasterTemplate.Columns["EquipStructNodeID"].IsVisible = false;
comboBox.EditorControl.MasterTemplate.Columns["Display"].IsVisible = false;
comboBox.EditorControl.MasterTemplate.Columns["ParentEquipStructNodeID"].IsVisible = false;
if (comboBox.EditorControl.RowCount > 0)
{
comboBox.EditorControl.Relations.AddSelfReference(comboBox.EditorControl.MasterTemplate, "EquipStructNodeID", "ParentEquipStructNodeID");
comboBox.EditorControl.TableElement.ShowSelfReferenceLines = true;
comboBox.EditorControl.MasterTemplate.ExpandAll();
}
Posted 08 Oct 2013 Link to this post
Posted 25 Aug 2015 in reply to George Link to this post
Posted 25 Aug 2015 Link to this post