-1

请原谅我,因为我没有要粘贴的示例代码。

该页面具有asp:DropdownList诸如 的事件change。事件处理程序使用 jquery 附加(在$('#mydropdown').bind('change', function() {});其上依次进行 ajax 调用(想想 3 个下拉菜单,其中下拉菜单 3 依赖于下拉菜单 2,下拉菜单 2 依赖于下拉菜单 1)。

更改请求需要我使用不具有相同模型(例如change事件、options属性等)的 Telerik RadComboBox。我不希望修改在change事件上触发的现有代码,它在客户端执行状态管理和 ajax 调用。

有人可以帮我重定向 RadComboBox 事件(OnSelectedIndexChanged到下拉事件(change),从而确保代码不必关心它的 RadComboBox 还是 html 选择 - 因为它能够接收change事件通知)。

发表评论,如果这不清楚。

4

2 回答 2

0

Have you taken a look at the RenderMode property on the control? This allows you to define the mode that it should render to the page in. Classic is the default method that Telerik use for creating the controls, but They have Lightweight and Native modes. At least one of them renders a typical select onto the page.

Demo Page

A word of warning, your existing code might work against these objects, but it could equally introduce a number of bugs - thorough testing is recommended.

于 2013-10-16T08:58:57.647 回答
0

you cannot do this.Telerik controls behave in different way.The events of this functions are also different.

The javascript used and the method of telerik are different.

Changing the RadcomboBox OnSelectedIndexChangedto change , the logic would be same except just finding controls

于 2013-10-16T07:29:52.577 回答