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

[Solved] Dropdown list Enable/Disable 'is not a function'

2 Answers 390 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.
Christopher Ronak
Top achievements
Rank 1
Christopher Ronak asked on 29 Oct 2010, 04:46 PM
Hello,

I'm getting the following error using the Dropdown list or ComboBox:
$("#SelectRateTable").data("tDropDownList").disable is not a function. The same error occurs for enable/disable.

Here is the event callback function:
function ProjectRateTypeChange() {
    $("#SelectRateTable").data("tDropDownList").disable();
}

And here is the dropdown I'm trying to disable:
<%= Html.Telerik().DropDownList()
              .Name("SelectRateTable")
              .SelectedIndex((int)Model.RateTables.FirstOrDefault().Key)
              .BindTo(new SelectList(Model.RateTables, "Key", "Value"))
              .DropDownHtmlAttributes(new { style = string.Format("height:125px;font-size:small") })
              .HtmlAttributes(new { style = string.Format("width:165px;;vertical-align:middle") })
            %>

Any help would be greatly appreciated.
If disable/enable don't work, can you possibly show me how to change the attr directly?

Thanks!



2 Answers, 1 is accepted

Sort by
0
Hristo Germanov
Telerik team
answered on 29 Oct 2010, 05:01 PM
Hi Christopher Ronak,

Can you reproduce this online demo and please give me more information about your case?

All the best,
Hristo Germanov
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
Christopher Ronak
Top achievements
Rank 1
answered on 02 Nov 2010, 08:03 PM
Hi,

Thanks for your reply. I upgraded to the latest (930) version, and the problem went away.

Chris
Tags
ComboBox
Asked by
Christopher Ronak
Top achievements
Rank 1
Answers by
Hristo Germanov
Telerik team
Christopher Ronak
Top achievements
Rank 1
Share this question
or