This question is locked. New answers and comments are not allowed.
Frank Michael
Top achievements
Rank 1
Frank Michael
asked on 26 May 2010, 10:22 PM
In my opinion .PrefixUrlParameters(true) should lead to a prefix in the form fields, if row edit is used. I am using client editing.
But this is not the case.
But this is not the case.
9 Answers, 1 is accepted
0
Hi Frank Michael ,
As its name suggests this controls prefixing the url parameters used during server binding.
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.
As its name suggests this controls prefixing the url parameters used during server binding.
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
Frank Michael
Top achievements
Rank 1
answered on 27 May 2010, 06:35 AM
Is there a way to control the prefix during Ajax binding? Otherwise the binding depends on if the grid is in a view with another grid or not. I want to make the name always the prefix, so that I have a predictable behavior.
0
Hi Frank Michael ,
No this is not possible. Why do you need this? For ajax binding every grid has a different action method which populates it.
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.
No this is not possible. Why do you need this? For ajax binding every grid has a different action method which populates it.
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
Frank Michael
Top achievements
Rank 1
answered on 27 May 2010, 06:44 AM
Because I may re-use the same grid WorkitemGrid.ascx in many different views.
If - sometimes - the binding has a prefix, because it is together with another grid in the view - and sometimes not - it is difficult to decide how to bind.
As a workaround I could try to bind with prefix and if that fails (but how to know?) to bind without prefix. This still has the risk, that wrong binding takes place.
If - sometimes - the binding has a prefix, because it is together with another grid in the view - and sometimes not - it is difficult to decide how to bind.
As a workaround I could try to bind with prefix and if that fails (but how to know?) to bind without prefix. This still has the risk, that wrong binding takes place.
0
Hi Frank Michael ,
Client-side binding never takes prefixes. Prefixes are applied only during server-binding. To have prefixes in client-binding you need to modify the grid source. Check telerik.grid.js if you decide to take that route.
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.
Client-side binding never takes prefixes. Prefixes are applied only during server-binding. To have prefixes in client-binding you need to modify the grid source. Check telerik.grid.js if you decide to take that route.
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
Frank Michael
Top achievements
Rank 1
answered on 27 May 2010, 06:52 AM
Hrrm - I think there is a misunderstanding.
If there are two grids in a view, then the Form editor for row edit prefixes the Grid name to the Parameters of the Post. I have seen this in the documentation and in the debugger.
If there are two grids in a view, then the Form editor for row edit prefixes the Grid name to the Parameters of the Post. I have seen this in the documentation and in the debugger.
0
Hello Frank Michael ,
There is a misunderstanding indeed. PrefixUrlParameters adds a prefix to url parameters used in server binding. Form fields used in editing are prefixed internally by ASP.NET MVC when DisplayFor or EditorFor is used.
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.
There is a misunderstanding indeed. PrefixUrlParameters adds a prefix to url parameters used in server binding. Form fields used in editing are prefixed internally by ASP.NET MVC when DisplayFor or EditorFor is used.
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
Frank Michael
Top achievements
Rank 1
answered on 27 May 2010, 06:58 AM
So if I use
DisplayFor(viewData=>viewData.workitem.Title) in one View and
DisplayFor(viewData=>viewData.wi.Title) in the other View, then I have a problem?
I see - thanks.
DisplayFor(viewData=>viewData.workitem.Title) in one View and
DisplayFor(viewData=>viewData.wi.Title) in the other View, then I have a problem?
I see - thanks.
0
Hello Frank Michael ,
Yes.
ASP.NET MVC would use "Title" as a prefix in both cases.
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.
Yes.
ASP.NET MVC would use "Title" as a prefix in both cases.
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.