How to get a directory path from a radWindow

3 posts, 1 answers
  1. David
    David avatar
    81 posts
    Member since:
    May 2011

    Posted 20 Oct 2011 Link to this post

    Hi everyone,

    It is possible to create a button in the same kind of "save as" ? In fact, in want a button that, once clicked, will open a radWindow that will allow the client to choose a path and will return the path once closed (Just the path, without the name of the file. Ex : C:\User\Joblo\Desktop\). It this any tool that can allow such a thing ?

    Thank you,

    David 

  2. Answer
    Rumen
    Admin
    Rumen avatar
    13894 posts

    Posted 25 Oct 2011 Link to this post

    Hi David,

    The functionality demonstrated in the following live demo File Selector Dialog could be helpful for your scenario. All you need to do is to strip the file name in the OnFileSelected client function before the path is set in the textbox element:

    function OnFileSelected(fileSelected)
     {
                //strip here the file name from the path string returned by the fileSelected parameter
                var textbox = $find("<%= fileName.ClientID %>");
                textbox.set_value(fileSelected);
    }


    All the best,
    Rumen
    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
  3. David
    David avatar
    81 posts
    Member since:
    May 2011

    Posted 26 Oct 2011 Link to this post

    Thank you,

    It's a good idea
Back to Top