<Telerik:RadComboBox ID="ddlInvoiceNumber" CssClass="feilds" runat="server" AutoPostBack="false"
OnClientDropDownClosed="onDropDownClosed" EmptyMessage="-- Select Invoice --"
LoadingMessage="Please wait" CheckBoxes="true" AppendDataBoundItems="true" SkinID="Windows7"
Width="450" HighlightTemplatedItems="true">
<HeaderTemplate>
<table style="width: 420px;" cellspacing="0" cellpadding="0">
<tr>
<td style="width: 180px; float: left">
Invoice
</td>
<td style="width: 60px; float: left">
Value
</td>
<td style="width: 60px; float: left">
Balance
</td>
<td style="width: 60px; float: right">
Requested
</td>
</tr>
</table>
</HeaderTemplate>
<ItemTemplate>
<table style="width: 420px;" cellspacing="0" cellpadding="0">
<tr>
<td style="width: 180px; float: left" class="smalltext">
<%#DataBinder.Eval(Container, "Text")%>
</td>
<td style="width: 60px; float: left" class="smalltext">
<%#DataBinder.Eval(Container, "Value")%>
</td>
<td style="width: 60px; float: left" class="smalltext">
<%#Eval("BalanceAmount")%>
</td>
<td style="width: 60px; float: right" class="smalltext">
<asp:TextBox ID="txtDDLInvoiceAmount" runat="server" Text='<%#Eval("BalanceAmount")%>'
Width="58px"></asp:TextBox>
</td>
</tr>
</table>
</ItemTemplate>
</Telerik:RadComboBox>
onDropDownClosed 上的 Javascript 函数
function onDropDownClosed(sender, eventArgs) {
for (var i = 0; i < Length; i++) {
document.getElementById('<%= lblInvoiceNumberDisplay.ClientID %>').innerHTML += sender.get_checkedItems()[i].get_text() + ", ";
sum += parseFloat(sender.get_checkedItems()[i].get_value(), 10);
// Here i want checked textbox values
}
}
请帮助 - 我如何FindControl
在客户端的 ComboBox 项目模板中使用 TextBox?