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

[Solved] AJAX problem

1 Answer 41 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Alexei
Top achievements
Rank 1
Alexei asked on 10 Nov 2011, 02:20 PM
Hi!
I have problem with combobox in my MVC application.

My view:
@model SearchingDealKind                
<div class="dealKind">
    @(Model.DealKindId??"none")
    @(Html.Telerik().ComboBoxFor(x => Model.DealKindId)
            .AutoFill(true)
            .DataBinding(binding => binding.Ajax().Select("DealKindsLoading", "Deal"))
            .HighlightFirstMatch(true)
            .HtmlAttributes(new{style = "width:200px"}))
</div>
My controller:
public ActionResult Index()
{
  return View(new SearchingDealKind(){DealKindId = "2314"});
}
DealKind with id "2314" exist, but I get 2314 and empty combobox (items existing). If I don't use AJAX and DataBinding change to BindTo than combobox isn't empty. How to solve my problem?

1 Answer, 1 is accepted

Sort by
0
Alexei
Top achievements
Rank 1
answered on 05 Dec 2011, 11:54 AM
This bug fixed In last version.
Tags
ComboBox
Asked by
Alexei
Top achievements
Rank 1
Answers by
Alexei
Top achievements
Rank 1
Share this question
or