or
private
void
FindStudent_Btn_Click(
object
sender, EventArgs e)
{
string
fsText = FindStudent_DDL.Text;
FindStudent_DDL.Items.Clear();
FindStudent(fsText);
}
private
void
FindStudent_DDL_KeyPress(
object
sender, KeyPressEventArgs e)
{
if
(e.KeyChar == (
char
)13)
{
string
fsText = FindStudent_DDL.Text;
FindStudent_DDL.Items.Clear();
FindStudent(fsText);
}
}
private
void
FindStudent(
string
fsText)
{
... code that retrieves data from database and populates a DataTable dt ...
if
(dt.Rows.Count > 0)
{
for
(
int
i = 0; i < dt.Rows.Count; i++)
{
StudentObject student =
new
StudentObject(dt.Rows[i][
"id_num"
].ToString(), dt.Rows[i][
"last_name"
].ToString(), dt.Rows[i][
"first_name"
].ToString());
FindStudent_DDL.Items.Add(
new
RadListDataItem(student.ToString(), student));
}
}
FindStudent_DDL.ShowDropDown();
}
CType
(
Me
.RadRichTextBox1.SpellChecker, DocumentSpellChecker).AddDictionary(dictionary, CultureInfo.InvariantCulture)
Hello,
I have a problem with the RadSplitContainer. I would like to place more sizable panels in the RadSplitContainer.
If the AutoScroll of RadSplitContainer is true and I scroll the container a little, don’t work the resizes of the panels.
How can I resize the panels after scroll?
Is it a bug in the RadSplitContainer? If yes, is there a workaround to this?
Below is the sample code
Thanks
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
RadSplitContainer radSplitContainer1 = new RadSplitContainer()
{
Dock = DockStyle.Fill,
AutoScroll = true
};
this.Controls.Add(radSplitContainer1);
for (int i = 0; i < 10; i++)
{
var panel = new SplitPanel();
panel.SizeInfo.SizeMode = SplitPanelSizeMode.Absolute;
panel.SizeInfo.AbsoluteSize = new Size(100, 0);
radSplitContainer1.SplitPanels.Add(panel);
}
}
}