Hello Vaghela,
Thank you for writing.
Following the provided brief description, I have tried to reproduce the problem on my end with the latest version but without any success. Please find attached a sample gif file, illustrating the load time in milliseconds for the drop down. It takes less than a second. Here is my sample code snippet:
public
Form1()
{
InitializeComponent();
DataTable dt =
new
DataTable();
dt.Columns.Add(
"Id"
,
typeof
(
int
));
dt.Columns.Add(
"Title"
,
typeof
(
string
));
dt.Columns.Add(
"Type"
,
typeof
(
int
));
Random rand =
new
Random();
for
(
int
i = 0; i < 10; i++)
{
dt.Rows.Add(i,
"Title"
+ i, rand.Next(0, 2000));
}
this
.radGridView1.AutoGenerateColumns =
false
;
GridViewDecimalColumn decimalColumn =
new
GridViewDecimalColumn(
"ID column"
);
decimalColumn.FieldName =
"Id"
;
this
.radGridView1.MasterTemplate.Columns.Add(decimalColumn);
GridViewTextBoxColumn textBoxColumn =
new
GridViewTextBoxColumn(
"Title column"
);
textBoxColumn.FieldName =
"Title"
;
this
.radGridView1.MasterTemplate.Columns.Add(textBoxColumn);
DataTable comboSource =
new
DataTable();
comboSource.Columns.Add(
"Id"
,
typeof
(
int
));
comboSource.Columns.Add(
"Description"
,
typeof
(
string
));
for
(
int
i = 0; i < 2000; i++)
{
comboSource.Rows.Add(i,
"Type"
+ i);
}
GridViewComboBoxColumn comboColumn =
new
GridViewComboBoxColumn(
"Type column"
);
comboColumn.DataSource = comboSource;
comboColumn.ValueMember =
"Id"
;
comboColumn.DisplayMember =
"Description"
;
comboColumn.FieldName =
"Type"
;
this
.radGridView1.Columns.Add(comboColumn);
this
.radGridView1.DataSource = dt;
this
.radGridView1.AutoSizeColumnsMode = Telerik.WinControls.UI.GridViewAutoSizeColumnsMode.Fill;
this
.radGridView1.CellEditorInitialized += radGridView1_CellEditorInitialized;
}
Stopwatch sw;
private
void
radGridView1_CellEditorInitialized(
object
sender, GridViewCellEventArgs e)
{
if
(e.Column.Name ==
"Type"
)
{
RadDropDownListEditor ddl = e.ActiveEditor
as
RadDropDownListEditor;
if
(ddl !=
null
)
{
sw =
new
Stopwatch();
sw.Start();
RadDropDownListEditorElement element = ddl.EditorElement
as
RadDropDownListEditorElement;
element.PopupOpened -= element_PopupOpened;
element.PopupOpened += element_PopupOpened;
}
}
}
private
void
element_PopupOpened(
object
sender, EventArgs e)
{
sw.Stop();
RadMessageBox.Instance.StartPosition = FormStartPosition.CenterScreen;
RadMessageBox.Show(
"Load Time: "
+ sw.ElapsedMilliseconds);
}
Feel free to modify it on a way to reproduce the issue you are facing and get back to me with it so I can investigate the precise case and assist you further. Thank you in advance.
I am looking forward to your reply.
Regards,
Desislava
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.