This question is locked. New answers and comments are not allowed.
Alexey Kobin
Top achievements
Rank 1
Alexey Kobin
asked on 06 Jun 2011, 04:34 PM
Cyrillic strings are not url encoded in selectUrl, if these strings were provided in route values of the Ajax().Select method.
7 Answers, 1 is accepted
0
Hello Alexey Kobin,
Atanas Korchev
the Telerik team
Are those strings encoded if you pass them to Html.ActionLInk? I think this is the behavior of the ASP.NET routing - it does not encode strings by default.
All the best,Atanas Korchev
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
Alexey Kobin
Top achievements
Rank 1
answered on 08 Jun 2011, 11:37 AM
Yes, these strings url encoded if I pass them to Html.ActionLink.
I think it's bug on your side.
I think it's bug on your side.
0
Hello Alexey Kobin,
Atanas Korchev
the Telerik team
Indeed cyrillic text is encoded by Html.ActionLink. However my tests showed that the grid is also encoding them. Find attached my test project.
Regards,Atanas Korchev
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
Alexey Kobin
Top achievements
Rank 1
answered on 08 Jun 2011, 02:25 PM
Yes, grid encoded them in your test. But I have found the grid does not encode route values if the grid page is rendered for ajax request. See my example.
0
Accepted
Hi Alexey Kobin,
Atanas Korchev
the Telerik team
Thank you for providing a sample project. It clearly shows that there is a problem. I updated your Telerik points.
I think I fixed that issue. Find attached the updated project. You can use the dll an JavaScript files from it. The build I am sending also fixes another problem. You are no longer required to manually include the JavaScript files for the grid if you load it with ajax.
Atanas Korchev
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
Alexey Kobin
Top achievements
Rank 1
answered on 08 Jun 2011, 04:19 PM
Thank you!
0
Maria
Top achievements
Rank 1
answered on 11 Mar 2012, 02:02 PM
Hello,
I'd like to ask if this bug has been fixed in the new version of MVC Telerik Components "Telerik_Extensions_for_ASPNET_MVC_2012_1_214".
I have a similar issue in a project I am working on: I have defined a custom command button in a grid column that makes an ajax request to a controller's method. The command is defined with some dataroutevalues that are taken from other fields of the same row. The dataroutevalues contain non-english characters and this seems to cause a problem, since when the grid loads I get an error that it contains illegal characters...
This is the part of the grid definition that generated the problem
c.Command(commands =>
{
commands.Custom("showDetails")
.Ajax(true)
.Text("Λεπτομέρειες")
.Action("ShowDetails", "Grid")
.DataRouteValues(route =>
{
route.Add(o => o.ΔΙΕΥΘΥΝΣΗ).RouteKey("address");
route.Add(o => o.ΠΟΛΗ).RouteKey("city");
route.Add(o => o.ΤΑΧ_ΚΩΔ).RouteKey("postal_code");
});
});
Regards,
Maria
I'd like to ask if this bug has been fixed in the new version of MVC Telerik Components "Telerik_Extensions_for_ASPNET_MVC_2012_1_214".
I have a similar issue in a project I am working on: I have defined a custom command button in a grid column that makes an ajax request to a controller's method. The command is defined with some dataroutevalues that are taken from other fields of the same row. The dataroutevalues contain non-english characters and this seems to cause a problem, since when the grid loads I get an error that it contains illegal characters...
This is the part of the grid definition that generated the problem
c.Command(commands =>
{
commands.Custom("showDetails")
.Ajax(true)
.Text("Λεπτομέρειες")
.Action("ShowDetails", "Grid")
.DataRouteValues(route =>
{
route.Add(o => o.ΔΙΕΥΘΥΝΣΗ).RouteKey("address");
route.Add(o => o.ΠΟΛΗ).RouteKey("city");
route.Add(o => o.ΤΑΧ_ΚΩΔ).RouteKey("postal_code");
});
});
Regards,
Maria