Hi,
I have the following ListBox and I want to loop through the values entered into the text box and enable a button if they pass validation.
I've gone through your examples using and tried some things like below, but I have not found the magic formula for finding the text box in each row and getting its value.
I'm finding the list and getting its items, but cannot find the controls inside each row. Can you please give me some guidance here?
Thanks,
John
I have the following ListBox and I want to loop through the values entered into the text box and enable a button if they pass validation.
<
telerik:RadListBox
ID
=
"rlbDocuments"
runat
=
"server"
EnableDragAndDrop
=
"True"
AllowReorder
=
"True"
Height
=
"400px"
Width
=
"480px"
ButtonSettings-ShowReorder
=
"False"
>
<
HeaderTemplate
>
<
div
style
=
"width: 88px; text-align: center; clear: none; float: left;"
>Page Count</
div
>
<
div
style
=
"width: 160px; clear: none; float: left;"
>Document Name</
div
>
<
div
style
=
"width: 160px; clear: none; float: left;"
>Document Type</
div
>
</
HeaderTemplate
>
<
ItemTemplate
>
<
div
style
=
"width: 100%; height: 28px;"
>
<
input
id
=
"txtPageCount"
type
=
"text"
style
=
"width: 40px; margin: 0 18px; clear: none; float: left;"
onchange
=
"txtPageCount_TextChanged()"
/>
<
div
style
=
"width: 160px; clear: none; float: left;"
><%# Eval("documentName") %></
div
>
<
div
style
=
"width: 160px; clear: none; float: left;"
><%# Eval("documentType") %></
div
>
</
div
>
</
ItemTemplate
>
</
telerik:RadListBox
>
I've gone through your examples using and tried some things like below, but I have not found the magic formula for finding the text box in each row and getting its value.
var
list = $find(
"<%= rlbDocuments.ClientID %>"
);
var
items = list.get_items();
I'm finding the list and getting its items, but cannot find the controls inside each row. Can you please give me some guidance here?
Thanks,
John