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

How to get a directory path from a radWindow

2 Answers 90 Views
Window
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 20 Oct 2011, 10:25 PM

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 Answers, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 25 Oct 2011, 09:17 AM
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
0
David
Top achievements
Rank 1
answered on 26 Oct 2011, 03:32 PM
Thank you,

It's a good idea
Tags
Window
Asked by
David
Top achievements
Rank 1
Answers by
Rumen
Telerik team
David
Top achievements
Rank 1
Share this question
or