Hi.
I used RadDropDownListEditor in my gridview.when press tab Key and enter it,and start write with keyboard
i have a problem.but when enter this cell with Mouse I don't have any problem.
I used RadDropDownListEditor in ver2011 and don't have any problem.
but now Use ver2012.this problem is exist.
private void GrdCheck_CellBeginEdit(object sender, GridViewCellCancelEventArgs e)
{
if (GrdCheck.CurrentColumn is GridViewComboBoxColumn)
{
if (GrdCheck.CurrentColumn.Name.ToString() == "BankRef")
{
RadDropDownListEditor comboBoxEditor = this.GrdCheck.ActiveEditor as RadDropDownListEditor;
if (comboBoxEditor != null)
{
comboBoxEditor.EditorElement.StretchVertically =
false;
comboBoxEditor.DropDownStyle = Telerik.WinControls.
RadDropDownStyle.DropDownList;
comboBoxEditor.DropDownSizingMode =
SizingMode.UpDownAndRightBottom;
}
}
}
}
private void GrdCheck_CellEditorInitialized(object sender, GridViewCellEventArgs e)
{
if (GrdCheck.CurrentColumn.Name.ToString() == "BankRef")
{
RadDropDownListEditor cmb = GrdCheck.ActiveEditor as RadDropDownListEditor;
if (cmb != null)
{
((
RadDropDownListEditorElement)(cmb).EditorElement).DisplayMember = "Descr";
((
RadDropDownListEditorElement)(cmb).EditorElement).ValueMember = "Id";
((
RadDropDownListEditorElement)(cmb).EditorElement).DataSource =DtBankCheck;
((
RadDropDownListEditorElement)(cmb).EditorElement).SelectedIndex = -1;
((
RadDropDownListEditorElement)(cmb).EditorElement).ShowPopup();
}
}
}