I have a Multiselect box that I am trying to get to sort alphabetically. I populate it on Page_init with text and values from a search string. Code is here:
I have this code in my aspx pageFor Each Member As Object In CType(Members, IEnumerable) ' loop through members Dim CurrentMember As New DirectoryEntry(Member) ' Get directoryentry for user UList.Add(CurrentMember.Name.Remove(0, 3)) EList.Add(CurrentMember.Properties("mail").Value.ToString) Dim c As New Ext.Net.ListItem.Config c.Text = CurrentMember.Name.Remove(0, 3) c.Value = CurrentMember.Properties("mail").Value.ToString MultiSelect1.Items.Add(New Ext.Net.ListItem(c)) Next
But it does not seem to work at all, is there something I am missing? Any help is greatly appreciated.<ext:MultiSelect ID="MultiSelect1" runat="server" SubmitText = "true" Height="500" Width="200" Direction ="ASC" SortField = "text"></ext:MultiSelect>


Reply With Quote