Master-Detail grid – Message error.

QuestionsMaster-Detail grid – Message error.
Montemaggiore Sebastian asked 6 years ago

Hello Abu. I use a implementation of the Master-Detail grid. When a use the sentence "phpgrid_error('La fecha de partida no puede ser posterior a la fecha de retorno.')" inside the callback function on_insert that correspond to the detail grid nothing is shown. Can you help me?. Thanks again.

3 Answers
Montemaggiore Sebastian answered 6 years ago

Hello Abu. I could find the mistake. The property $col["editable"] of the field "a_fecha_retorno" was set to false. I find that if that property is set to false the value of that field is not accessible within any callback function because the library does not send it as the other parameter that are editable.
So i have a new question: What do i do if a want that i field remains no editable in the detail grid but still visible?.
Thanks Abu for your time.

Abu Ghufran answered 6 years ago

You are can it readonly while keeping editable = true.

You can also set certain column as readonly on edit dialog, and editable on add dialog.
$col["editrules"]["readonly"] = true;

Montemaggiore Sebastian answered 6 years ago

Thanks Abu!!!.

Your Answer

0 + 19 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?