0

我正在努力使我的级联选择使用 Telerik 表单装饰器进行装饰。这是我的js,

var attributes = s.attributes;
        for (var i = 0, iLen = attributes.length; i < iLen ; i++) {
            $elem.append('<option ' + (selectedValue === attributes[i].id ? 'selected ' : '') + 'value="' + attributes[i].id + '">' + attributes[i].name + '</option>');
        }

在这之后我打电话,

formDecorator.decorate($elem[0], false);

它仅在父选择更改时(在级联选择中)第一次起作用。但在此之后没有任何效果。我努力了,

formDecorator.decorate();

formDecorator.updateSelect($elem[0]);

有什么办法让它工作吗?

4

1 回答 1

1

在 Telerik 的论坛中快速搜索给了我这个似乎有有用响应的线程:http ://www.telerik.com/community/forums/aspnet-ajax/form-decorator/cascading-select-in-javascrip-and- Telerik-radformdecorator.aspx。我会试一试并在那里发布让更多人看到。我希望它对你有帮助。

于 2013-09-10T15:26:24.143 回答