Hi, I am new to telerik. I having problem with checking the last item in the listbox. Basicly it will loop alll the item in the listbox and combine it become a string, When listbox item reach end it will replace with "." instead of "',". Please help.Thanks
Dim
sb
As
New
StringBuilder
For
Each
item
As
RadListBoxItem
In
radCustomer.Items
If
radNotMemberOf.Items.Count.ToString.Length - 1
Then
hdnCustomerList.Value = hdnCustomerList.Value & sb.Append(item.Value.Replace(
","
,
"."
)).ToString
Else
hdnCustomerList.Value = sb.Append(item.Value &
","
).ToString()
End
If
Next