Good morning.
Is there any way to keep the selection of a CGridView if form submit fails because the data already exists?
I want save into database FiledName='xxx', but 'xxx' data already exists in database. Then, it shows the validation notice, but loses the seleccion of a possible CGridView in same page.
Thanks.
Page 1 of 1
[Solved]Keep Cgridview Selection After Submit [SOLVED]
#1
Posted 23 January 2013 - 06:11 AM
-- If your question has been resolved, write [SOLVED] in the title of it.
-- Si tu pregunta ha sido respondida, escribe [SOLUCIONADO] en el título de la misma.
-- Se a túa pregunta foi resolta, escribe [RESOLTA] no título da mesma.
-- Si tu pregunta ha sido respondida, escribe [SOLUCIONADO] en el título de la misma.
-- Se a túa pregunta foi resolta, escribe [RESOLTA] no título da mesma.
#2
Posted 24 January 2013 - 05:40 AM
Anybody has faced this scenario?
-- If your question has been resolved, write [SOLVED] in the title of it.
-- Si tu pregunta ha sido respondida, escribe [SOLUCIONADO] en el título de la misma.
-- Se a túa pregunta foi resolta, escribe [RESOLTA] no título da mesma.
-- Si tu pregunta ha sido respondida, escribe [SOLUCIONADO] en el título de la misma.
-- Se a túa pregunta foi resolta, escribe [RESOLTA] no título da mesma.
#3
Posted 24 January 2013 - 06:43 AM
Hi,
if I understand you correct, you have both a grid view and a form on the same page. If so, you could try to use CActiveForm and utilize its ajax-validation capability. It will allow to perform validation without page reload, unless we sure that data in the form is correct.
if I understand you correct, you have both a grid view and a form on the same page. If so, you could try to use CActiveForm and utilize its ajax-validation capability. It will allow to perform validation without page reload, unless we sure that data in the form is correct.
#4
Posted 25 January 2013 - 07:44 AM
Thanks for reply.
I'm thinking another way to do it, and if I get, I'll post here.
Anyway any idea is welcome.
Regards.
I'm thinking another way to do it, and if I get, I'll post here.
Anyway any idea is welcome.
Regards.
-- If your question has been resolved, write [SOLVED] in the title of it.
-- Si tu pregunta ha sido respondida, escribe [SOLUCIONADO] en el título de la misma.
-- Se a túa pregunta foi resolta, escribe [RESOLTA] no título da mesma.
-- Si tu pregunta ha sido respondida, escribe [SOLUCIONADO] en el título de la misma.
-- Se a túa pregunta foi resolta, escribe [RESOLTA] no título da mesma.
#5
Posted 05 February 2013 - 09:28 AM
I used SelGridView extension and it works!
Regards.
Regards.
-- If your question has been resolved, write [SOLVED] in the title of it.
-- Si tu pregunta ha sido respondida, escribe [SOLUCIONADO] en el título de la misma.
-- Se a túa pregunta foi resolta, escribe [RESOLTA] no título da mesma.
-- Si tu pregunta ha sido respondida, escribe [SOLUCIONADO] en el título de la misma.
-- Se a túa pregunta foi resolta, escribe [RESOLTA] no título da mesma.
Share this topic:
Page 1 of 1

Help















