Add dialog in detailed grid conditioning by value of column of master grid

QuestionsAdd dialog in detailed grid conditioning by value of column of master grid
Massimo Gagliardi asked 4 years ago

I have a question
Is't possible to enable/disable the add button in a detail grid (I have 4 detailed grids ) according to the specific value of a column of the selected row of the master grid?
Thank in advance to all suggestions

3 Answers
Abu Ghufran answered 4 years ago

You can refer demos/editing/column-access.php.

And in grid_select() function, you can put following line on your desired condition:

jQuery("#add_list4").addClass("ui-state-disabled");

where list4 is your detail grid id.

Massimo Gagliardi answered 4 years ago

Thank you Abu
This solution is very nice!

Massimo Gagliardi answered 4 years ago

Abu, a suggestion by my part
I found this best solution:

jQuery("#gbox_list4").addClass("ui-state-disabled"); // disable the grid
jQuery("#gbox_list4").zIndex("-1"); // the grid on the background

Your Answer

13 + 17 =

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 / 5. Vote count:

As you found this post useful...

Follow us on social media!

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

Let us improve this post!