如何在javascript中将文本和值绑定到ajaxtoolkit组合框(可编辑下拉菜单) [英] how to bind text and value to ajaxtoolkit combobox (editable dropdown) in javascript

查看:76
本文介绍了如何在javascript中将文本和值绑定到ajaxtoolkit组合框(可编辑下拉菜单)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要使用ajaxtoolkit combobox的可编辑下拉菜单.我想在javascript中绑定它.但是当我尝试找到组合框的ID时,我的组合框被转换为两个控件,一个是文本框,另一个是按钮.该页面上有50个组合框,它们的宽度都不同.那就是为什么我更喜欢使用组合框的原因,否则我可能会将代码用作

I want a editable dropdown for that am using ajaxtoolkit combobox.i want to bind it in javascript.But when i try to find the ID of the combobox,my combobox was converted into two control one textbox and the other button .I have 50 combobox in that page all with a different width. that why i prefer to use combobox otherwise i may have use code as

<asp:TextBox style="width:120px;position:absolute" ID="txtDisplay" runat="server"></asp:TextBox>

<asp:DropDownList ID="ddSelect" style="width:140px" runat="server">
    <asp:ListItem Value="test1" >test1</asp:ListItem>
    <asp:ListItem Value="test2">test2</asp:ListItem>
</asp:DropDownList>



我不想使用上面的代码.请帮助



I dont want to use the above code .Please help

推荐答案

http://www.telerik.com/community/forums/aspnet-mvc/combobox/ajax-binding-dropdown--show- current-value.aspx [

这篇关于如何在javascript中将文本和值绑定到ajaxtoolkit组合框(可编辑下拉菜单)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆