Completed
Last Updated: 19 Jul 2016 13:21 by ADMIN
ADMIN
Dess | Tech Support Engineer, Sr.
Created on: 08 Jun 2016 08:51
Category:
Type: Bug Report
2
FIX. RadGridView - NullReferenceException when modifying the RadDropDownListEditorElement.AutoCompleteMode property in the TextChanged event
To reproduce: use the attached project and follow the steps from the gif file

Workaround: use a custom autocomplete helper:

private void radGridView1_CellEditorInitialized(object sender, GridViewCellEventArgs e)
{
    RadDropDownListEditor editor = e.ActiveEditor as RadDropDownListEditor;
    if (editor != null)
    {
        RadDropDownListEditorElement editorElement = (RadDropDownListEditorElement)editor.EditorElement;
        editorElement.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDown;
        editorElement.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
        editorElement.AutoCompleteSuggest = new CustomAutoCompleteSuggestHelper(editorElement);
    }
}

public class CustomAutoCompleteSuggestHelper : AutoCompleteSuggestHelper
{
    public CustomAutoCompleteSuggestHelper(RadDropDownListElement owner) : base(owner)
    {
    }

    public override void ApplyFilterToDropDown(string filter)
    {
        if (filter.Length > 3)
        {
            base.ApplyFilterToDropDown(filter);
        }
    }
}
2 comments
ADMIN
Stefan
Posted on: 11 Jul 2016 08:27
Hello Ceki,

for the time being, we do not have a time frame for this issue. Depending on the other tasks planned and the priority and demand for the item, it will be scheduled accordingly.

You can use the "Follow this item" option in order to receive notification when its status changes.
Ceki Granti
Posted on: 14 Jun 2016 04:54
Any Schedule for the fix of this bug?