This is a migrated thread and some comments may be shown as answers.

RadComobox Clear

1 Answer 27 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
mohamed
Top achievements
Rank 1
mohamed asked on 22 Jul 2011, 06:27 AM

In RadCombobox i bind tree View how i clear the selected tree view value

Thanks,
Mohamed.

1 Answer, 1 is accepted

Sort by
0
mohamed
Top achievements
Rank 1
answered on 22 Jul 2011, 06:29 AM
I'm clear like that .
            BrowsebyCategory.Text = "";
            BrowsebyCategory.SelectedValue = "";
            BrowsebyCategory.ClearSelection();
            BrowsebyCategory.Items.Clear();

After clear i newly load that ramcobobox  inside radtreeview

RadTreeView radtreeview = (RadTreeView)BrowsebyCategory.Items[0].FindControl("CategoryTreeView");

Error come on

Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index


Thanks,
Mohamed.
Tags
ComboBox
Asked by
mohamed
Top achievements
Rank 1
Answers by
mohamed
Top achievements
Rank 1
Share this question
or