This is a migrated thread and some comments may be shown as answers.

[Solved] No AutoCompleteMode?

3 Answers 131 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Andreas Sturl
Top achievements
Rank 1
Andreas Sturl asked on 21 Oct 2009, 09:46 AM
How come I cannot set different AutoCompleteModes in the asp version of the radcombobox?

The feature exists in radcombobox for winforms, apparently. But the available autocompletion in webpages does not deliver what I need.

Will this be added in the future?

3 Answers, 1 is accepted

Sort by
0
Paul
Telerik team
answered on 21 Oct 2009, 01:51 PM
Hello Andreas,

First, I'd like to emphasize on the fact that some functionalities are not easily achievable in web; in general, we cannot expect to have exactly the same functionality in web as compared to the desktop.

As on your particular question, unfortunately, the current version of RadComboBox for ASP.NET AJAX does not have AutoCompleteModes. Anyway, your request has been logged for future consideration.

All the best,
Paul
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Andreas Sturl
Top achievements
Rank 1
answered on 21 Oct 2009, 03:12 PM
Thank you Paul, I understand your reasoning.

Though I need to find some other way to get the desired behaviour for my comobobox.

I need a way to have the combobox scroll to the first match, just like the Markfirstmatch behaviour does, as well as adding the suggested text on keypress

HOWEVER

After a keypress, it should only scroll down to the first match in the dropdownlist, not select it

I use the radcombobox for filtering a radgrid, and it should only suggest possible matches. I don't want to force the user to select one, which markfirstmatch does.

I hope you can give me directions on how to solve this issue.
0
Simon
Telerik team
answered on 27 Oct 2009, 02:46 PM
Hello Andreas Sturl,

Thank you for clarifying.

In you case you could use a modified version of the MarkFirstMatch functionality by putting the following script after the ScriptManager on your page:

<script type="text/javascript">
    Sys.Application.add_init(function() {
        Telerik.Web.UI.RadComboBox.prototype.highlightMatches = function() {
            if (!this.get_markFirstMatch()) return;
            var text = this.get_text();
            var firstMatch = this.findFirstMatch(text)
            if (firstMatch) {
                if (this.get_highlightedItem())
                    this.get_highlightedItem().unHighlight();
                firstMatch.scrollOnTop();
                var firstMatchText = firstMatch.get_text();
                this.set_text(firstMatchText);
                this.selectText(text.length, firstMatchText.length - 1);
            }
        }
    });
</script>

Greetings,
Simon
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
ComboBox
Asked by
Andreas Sturl
Top achievements
Rank 1
Answers by
Paul
Telerik team
Andreas Sturl
Top achievements
Rank 1
Simon
Telerik team
Share this question
or