private
void
SetupSpecialControls() {
RadButtonElement buttonElement =
new
RadButtonElement(
"..."
);
buttonElement.Click += buttonElement_Click;
RadTextBoxItem textBoxItem = Text_Update_BI_BatchNo.TextBoxElement.TextBoxItem;
textBoxItem.Alignment = ContentAlignment.MiddleLeft;
Text_Update_BI_BatchNo.TextBoxElement.Children.Remove(textBoxItem);
DockLayoutPanel.SetDock(textBoxItem, Telerik.WinControls.Layouts.Dock.Left);
DockLayoutPanel.SetDock(buttonElement, Telerik.WinControls.Layouts.Dock.Right);
DockLayoutPanel dockLayoutPanel =
new
DockLayoutPanel();
dockLayoutPanel.Children.Add(buttonElement);
dockLayoutPanel.Children.Add(textBoxItem);
Text_Update_BI_BatchNo.TextBoxElement.Children.Add(dockLayoutPanel);
}
Public
Class
Form1
Private
Sub
Form1_Load()
Handles
Me
.Load
Dim
x
As
New
ItemModel
RadDropDownList1.DataSource = x.ListItems
RadDropDownList1.ValueMember =
"ItemNumber"
RadDropDownList1.AutoCompleteMode = AutoCompleteMode.SuggestAppend
RadDropDownList1.AutoCompleteValueMember =
"ItemNumber"
End
Sub
Private
Sub
radDropDownList1_ItemDataBound(
ByVal
sender
As
Object
,
ByVal
args
As
Telerik.WinControls.UI.ListItemDataBoundEventArgs)
Handles
RadDropDownList1.ItemDataBound
Dim
view
As
DataRowView =
CType
(args.NewItem.DataBoundItem, DataRowView)
args.NewItem.Text =
"<html><b>"
& view(
"ItemNumber"
) &
" • "
& view(
"ItemName"
) &
"</b><br/>"
& view(
"Description"
) &
"</html>"
args.NewItem.Height = 40
End
Sub
Private
Sub
Button1_Click(
ByVal
sender
As
System.
Object
,
ByVal
e
As
System.EventArgs)
Handles
Button1.Click
MessageBox.Show(RadDropDownList1.SelectedValue)
End
Sub
End
Class
Hello
I have three tables(Person, Phones, Type). I attached a picture for these tables and relationships.
I want to show the Person table as Parent grid and the Phones table as a Child grid in radGridView and I want to show the Phone Types in a combobox column in child grid too. So I Binded the child grid to the Phones table and added a ComboboxColumn to the child grid then binding it (Combobox Column) to the Type table.
There is no trouble with it while Inserting a new row but When it loads the data form database it does not show the Phone Type I Selected before.
How can I load data and show the PhoneType Selected (and saved in database)?
I hope you can get me
Regards
private
void radGridView1_GroupByChanged(object sender, GridViewCollectionChangedEventArgs e)
{
radGridView1.ShowGroupPanel = radGridView1.Groups.Count > 0;
}
this
.radGridView1.GroupByChanged += new Telerik.WinControls.UI.GridViewCollectionChangedEventHandler(this.radGridView1_GroupByChanged);
It works propely if gris something in it, but does not on empty grid.
Thank you
Lily