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

Moving to the grid page of selected item

6 Answers 57 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Tony
Top achievements
Rank 1
Tony asked on 18 Sep 2010, 05:26 AM
I need to do something that seems like it shouldn't be that difficult, but I can't seem to figure out how to do it effectively, but I am fairly new to these controls.

The scenario is that I have a custom control that basically wraps the file explorer with image preview demo and paging is enabled for the grid. I want to be be able to move the page to the selected item (single select only). Right now, the item that is selected when the control first comes up is set using the InitialPath property of the file explorer, but it always opens on page 1. If I scroll through the pages, when I get to the page with the selected item, it is selected and the image preview happens. Great, but I want to do that programmatically.

I have tried a number of different approaches, but they have not yielded anything. Can someone give me some tips or a pointer to some code that could be adapted to do this? I have looked in the demos, forum and code library, but didn't find anything that really addressed this.

Thanks in advance.

6 Answers, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 22 Sep 2010, 02:40 PM
Hi Tony,

By design RadFileExplorer control does not select the file/folder which is not visible and for the time being your scenario is not covered by the control. In your case I recommend you to set InitilaPath to point to an item (file or folder) which is shown in the first page of the Grid.

Sincerely yours,
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
Tony
Top achievements
Rank 1
answered on 22 Sep 2010, 11:56 PM
Selecting an item on the first page will not meet the needs of the application. The item that is set using InitialPath is the image that has been selected by the user and stored in the database. I need to be able to move the control to that image. Is there no way to do this client-side? It seems as though I can iterate through the items in the grid control: is this true? If so, perhaps I can determine the page the file is on and move the control to that page - does that seem like it is possible?
0
Fiko
Telerik team
answered on 01 Oct 2010, 09:05 AM
Hello Tony,

I have logged this feature in our PITS system and we will implement it for the upcoming Q3 2010 release of the controls, scheduled for the middle of November. We will do our best, however, to include the feature in the next internal build which will be uploaded next week.

Regards,
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
Jos
Top achievements
Rank 1
answered on 11 Oct 2010, 01:13 PM
This would be a good extra feature to add to the filebrowser, because after an upload, the upload file is selected. If this file  is on a different page it is not shown as selected. If this is not added to the standard filebrowser I would love to know how to add it to the file myself.

thanks
0
Tony
Top achievements
Rank 1
answered on 12 Oct 2010, 08:46 PM
Thanks for implementing this. It will simplify my life and is a feature that I am sure many will appreciate.
0
Fiko
Telerik team
answered on 13 Oct 2010, 07:07 AM
Hi Tony,

This new feature is already available in the internal builds, so you can download the latest one and test it on your side.

Regards,
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
Tags
FileExplorer
Asked by
Tony
Top achievements
Rank 1
Answers by
Fiko
Telerik team
Tony
Top achievements
Rank 1
Jos
Top achievements
Rank 1
Share this question
or