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

[Solved] Event OnChange DropDownList not work

3 Answers 93 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.
Phat
Top achievements
Rank 1
Phat asked on 08 Oct 2010, 08:23 AM
View
<%= Html.Telerik().DropDownList()
    .Name("ddlSpecificationAttributes")
    .ClientEvents(events => events
        .OnLoad("onDropDownListLoad")
        .OnDataBinding("onDropDownListDataBinding")
        .OnDataBound("onDropDownListDataBound")
        .OnChange("onDropDownListChange")
        .OnOpen("onDropDownListOpen")
        .OnClose("onDropDownListClose")
    )
    .HtmlAttributes(new { @class = "adminInput" })                                  
    .DropDownHtmlAttributes( new { @class = "adminInput"})
    .BindTo(ViewData["SpecificationAttributes"] as SelectList)
%>

Controller
public ActionResult Edit(Guid id)
{
    ViewData["SpecificationAttributes"] = new SelectList(SpecificationAttributeManager.GetAllSpecificationAttributes(), "ID", "Name");
    return View(product);
}

But i don't know why Onchange not work, all other event work well. When i user Combobox Onchange work?????

3 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 08 Oct 2010, 09:43 AM
Hello Phat,

Unfortunately, I am not able to reproduce this issue locally. Could you try replicate the aforementioned problem in this online demo.

Best wishes,
Georgi Krustev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Phat
Top achievements
Rank 1
answered on 08 Oct 2010, 10:30 AM
I saw it, but when i use dropdownlist with client binding, it work, when i use serverbinding onChange not work, hichic. I can't understand.
0
Georgi Krustev
Telerik team
answered on 08 Oct 2010, 11:11 AM
Hello Phat,

Unfortunately I still cannot reproduce the depicted issue. I have used the aforementioned demo as a base for my test. Here is a screencast. which shows that everything works with server and client binding.

Regards,
Georgi Krustev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
ComboBox
Asked by
Phat
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Phat
Top achievements
Rank 1
Share this question
or