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 11 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 11 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 11 years ago

Thank you Abu
This solution is very nice!

Massimo Gagliardi answered 10 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 + 9 =

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?