Moving to the grid page of selected item

7 posts, 0 answers
  1. Tony
    Tony avatar
    14 posts
    Member since:
    Sep 2010

    Posted 18 Sep 2010 Link to this post

    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.
  2. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 22 Sep 2010 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Tony
    Tony avatar
    14 posts
    Member since:
    Sep 2010

    Posted 22 Sep 2010 Link to this post

    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?
  5. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 01 Oct 2010 Link to this post

    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
  6. Jos
    Jos avatar
    1 posts
    Member since:
    Oct 2010

    Posted 11 Oct 2010 Link to this post

    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
  7. Tony
    Tony avatar
    14 posts
    Member since:
    Sep 2010

    Posted 12 Oct 2010 Link to this post

    Thanks for implementing this. It will simplify my life and is a feature that I am sure many will appreciate.
  8. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 13 Oct 2010 Link to this post

    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017