I have 2 List Boxes. One with State the other with City. The City Listbox has Checkboxes.
I am trying to find a way to have all the checkboxes 'checked' as the default when the page opens with a State Default selected.
For example ... When the page opens the State Selected Value is 'WA' and all the cities in Washington are displayed with checkboxes. Works fine.
But I want them displayed with Checkboxes 'Checked'
I have tried the collection method:
But the collection at this point returns 0 items. I tried rebinding the rlbSubAreas listbox but that didn't work either.
Anyone?
I am trying to find a way to have all the checkboxes 'checked' as the default when the page opens with a State Default selected.
For example ... When the page opens the State Selected Value is 'WA' and all the cities in Washington are displayed with checkboxes. Works fine.
But I want them displayed with Checkboxes 'Checked'
I have tried the collection method:
If Not Page.IsPostBack Then
rlbAreas.SelectedValue = "F50"
Dim collection As IList(Of RadListBoxItem) = rlbSubAreas.Items
For Each item As RadListBoxItem In Collection
item.Checked = True
Next
End If
But the collection at this point returns 0 items. I tried rebinding the rlbSubAreas listbox but that didn't work either.
Anyone?