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

Datasource not sets

2 Answers 92 Views
SearchBox
This is a migrated thread and some comments may be shown as answers.
Ajit
Top achievements
Rank 1
Ajit asked on 25 Feb 2013, 05:34 PM
Hi,

I am using the new Search component to search for nodes in a RadTreeView. (Is there a way to do this directly?)

I'm using an ArrayList to capture all my node names, and during Page_load, I am populating this ArrayList and then setting the datasource of my search box to this list.

// this line is in a for loop, adding elements to my arrayList
measureSearchNodesList.Add(m.ToString());

RadMeasuresSearchBox.DataSource = measureSearchNodesList;

This seems like it should work based off the documentation, but any letter I type into the box returns a client side error of "Datasource not sets."

I haven't done much with my onSearch event handler just yet, because I wanted to first ensure the search box was getting bound. Any ideas?

Thanks,

Ajit

2 Answers, 1 is accepted

Sort by
0
Bozhidar
Telerik team
answered on 26 Feb 2013, 06:40 AM
Hello Ajit,

I tested the described scenario but couldn't reproduce the issue. I've attached a small sample page with the markup I tested. Can you add it in an empty website and confirm whether the issue reproduces. Or if your setup is different in any way, could you specify how exactly, so that I can reproduce the problem properly.
 

Regards,
Bozhidar
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Bozhidar
Telerik team
answered on 26 Feb 2013, 07:52 AM
Hello,

Forgot to add the file. Here it is.
 

All the best,
Bozhidar
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
SearchBox
Asked by
Ajit
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Share this question
or