Ignacio Ortuzar
Top achievements
Rank 1
Ignacio Ortuzar
asked on 10 Nov 2009, 02:00 PM
Hi there!!..
I want to know if exist any way to add a search input and show de results in the file explorer?
The idea is that I can manage the results files in the same way that I can manage the files inside the folders.
Thanks!
4 Answers, 1 is accepted
0
Hi,
In your scenario you could use this approach:
For your convenience I have attached a demo project to this thread. I hope it helps.
All the best,
Fiko
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
In your scenario you could use this approach:
- attach a handler to the ExplorerPopulated event:
protected
void
Page_Load(
object
sender, EventArgs e)
{
RadFileExplorer1.ExplorerPopulated +=
new
RadFileExplorerGridEventHandler(RadFileExplorer1_ExplorerPopulated);
}
- Implement the handler as follows:
void
RadFileExplorer1_ExplorerPopulated(
object
sender, RadFileExplorerPopulatedEventArgs e)
{
// Filter the items by value set to the textbox;
e.List = e.List.Where(fbi => fbi.Name.Contains(TextBox1.Text)).ToList();
}
For your convenience I have attached a demo project to this thread. I hope it helps.
All the best,
Fiko
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Terrier Maxandre
Top achievements
Rank 1
answered on 08 Jul 2010, 09:42 AM
HI I would like to use this code in VB , I tried the converter but the result is wrong.
Cordially
Cordially
0
Hi Cordially,
For your convenience I have prepared a VB version of the provided example.
I hope this helps.
Greetings,
Fiko
the Telerik team
For your convenience I have prepared a VB version of the provided example.
I hope this helps.
Greetings,
Fiko
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0
Terrier Maxandre
Top achievements
Rank 1
answered on 15 Jul 2010, 10:17 AM
Thanx a lot for your reply the code works perfectly!