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

problem with space in url

1 Answer 46 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Vlastimil
Top achievements
Rank 1
Vlastimil asked on 12 Jan 2011, 02:31 AM
Hallo,
I have problem with spaces in urlI path.
I have Rad Grid with columns like this:
<telerik:GridHyperLinkColumn DataTextFormatString="Adres" ItemStyle-ForeColor="Orange"
 DataNavigateUrlFields="s_adresar" UniqueName="s_adresar" DataNavigateUrlFormatString="file://///SomeServer/Some Directory With Spaces/{0}" Target="_blank" HeaderText="Adres" DataTextField="s_adresar">
 </telerik:GridHyperLinkColumn>

I would like to open file from shared file system in Windows Explorer after click on link in RadGrid, but it doesn't work.
Right path to directory is //SomeServer/Some Directory With Spaces/
but rendered path is  //SomeServer/Some%20Directory%20With%20Spaces/
and  this path is for Windows Explorer unknown. I tried to replace spaces in path ( in DataNavigateUrlFormatString property) with some mark entity but without success.
Can anyone help me  please?
Thanks

1 Answer, 1 is accepted

Sort by
0
Prangadj
Top achievements
Rank 1
answered on 12 Jan 2011, 09:47 AM
I do not see codes in the DataNavigateUrlFormatString that take care of url encoded spaces. Ask Google for solutions and apply them for your hyperlinks.

Prangadj
Tags
Grid
Asked by
Vlastimil
Top achievements
Rank 1
Answers by
Prangadj
Top achievements
Rank 1
Share this question
or