This question is locked. New answers and comments are not allowed.
Hi.
I recently update to Telerik MVC 2010.3.1110.235. (released today).
My problem is that now the grid's ajax rebind don't work for me. When I delete an item, the grid don't refresh. I must click the "refresh button" to refresh the data.
My grid's are inside a TabStrip.
The Select, Add and Update works fine.
Any idea?
Thanks.
I recently update to Telerik MVC 2010.3.1110.235. (released today).
My problem is that now the grid's ajax rebind don't work for me. When I delete an item, the grid don't refresh. I must click the "refresh button" to refresh the data.
My grid's are inside a TabStrip.
The Select, Add and Update works fine.
Any idea?
Thanks.
6 Answers, 1 is accepted
0
Daniel
Top achievements
Rank 1
answered on 11 Nov 2010, 07:53 PM
Can somebody reproduce this error?
The problem still persists. Any help please?
The problem still persists. Any help please?
0
Hi Daniel,
Atanas Korchev
the Telerik team
We cannot reproduce this error. Please provide a sample project. Just attach it to this thread.
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
Daniel
Top achievements
Rank 1
answered on 16 Nov 2010, 08:13 PM
Hi Atanas.
My edit is in Inline Mode. I do a little research and I see when the item is deleted in the BD, and execute the rebind
the Json return an "Model Estate", and the refresh id not executed.
Firebug results:
Call: POST http://localhost:4080/MorbidHistory/_DeleteMorbidHistory?rut=17455432
Parameters: rut
Post: id=58&page=1&size=10&orderBy=&groupBy=&filter=
And the important response:
See that the Json return the fields validation, and It's cause that refresh view dont work (i think).
I attach images for view. See image2. Json return 2 item, the grid still show 3. And an object "ModelState" appears.
Thanks.
My edit is in Inline Mode. I do a little research and I see when the item is deleted in the BD, and execute the rebind
//Rebind the gridreturn View(new GridModel{ Data = _morbidHistoryRepository.GetPatientById(id)});the Json return an "Model Estate", and the refresh id not executed.
Firebug results:
Call: POST http://localhost:4080/MorbidHistory/_DeleteMorbidHistory?rut=17455432
Parameters: rut
17455432Post: id=58&page=1&size=10&orderBy=&groupBy=&filter=
And the important response:
{"data":[{"Id":59,"Rut":17455432,"Nombre":"dfdfssfds","Tipo":"dfsdsdfsdfs","Fecha":"\/Date(1289876400000)\/","Observacion":null},{"Id":57,"Rut":17455432,"Nombre":"dsf","Tipo":"dsfds","Fecha":"\/Date(1289876400000)\/","Observacion":null}],"total":2,"modelState":{"Nombre":{"errors":["Campo obligatorio"]},"Tipo":{"errors":["Campo obligatorio"]},"Fecha":{"errors":["Campo obligatorio"]}}}See that the Json return the fields validation, and It's cause that refresh view dont work (i think).
I attach images for view. See image2. Json return 2 item, the grid still show 3. And an object "ModelState" appears.
Thanks.
0
Hello Daniel,
Atanas Korchev
the Telerik team
This is by design. If there are model state errors (validation didn't work) the grid is not rebound. Please make sure you don't have any validation errors.
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
Daniel
Top achievements
Rank 1
answered on 17 Nov 2010, 02:02 PM
Hi Atanas.
There are no validation errors.
This is the model for the grid:
But as I wrote, the problem is only with Delete. The validation only executed on Insert and Edit. It's strange happens when I delete an item. My Telerik build version is 1111, MCV 2.
Thanks.
There are no validation errors.
This is the model for the grid:
[KnownType(typeof(PatientAntecedentesMorbidosViewModel))]public class PatientAntecedentesMorbidosViewModel{ [ScaffoldColumn(false)] public int Id { get; set; } [ScaffoldColumn(false)] public int Rut { get; set; } [Required(ErrorMessage = "Campo obligatorio")] [DisplayName("Nombre")] [DataType(DataType.Text)] public string Nombre { get; set; } [Required(ErrorMessage = "Campo obligatorio")] [DisplayName("Tipo")] [DataType(DataType.Text)] public string Tipo { get; set; } [Required(ErrorMessage = "Campo obligatorio")] [DisplayName("Fecha")] [DataType(DataType.Date)] public DateTime? Fecha { get; set; } [DisplayName("Observación")] [DataType(DataType.MultilineText)] public string Observacion { get; set; }}But as I wrote, the problem is only with Delete. The validation only executed on Insert and Edit. It's strange happens when I delete an item. My Telerik build version is 1111, MCV 2.
Thanks.
0
Hello Daniel,
means that there are validation errors. You can check ModelState.IsValid with the debugger to verify this.
Regards,
Atanas Korchev
the Telerik team
This
{"Nombre":{"errors":["Campo obligatorio"]},"Tipo":{"errors":["Campo obligatorio"]},"Fecha":{"errors":["Campo obligatorio"]}}}means that there are validation errors. You can check ModelState.IsValid with the debugger to verify this.
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