Master-Detail doesn't work when master is in excel view

QuestionsMaster-Detail doesn't work when master is in excel view
Abed asked 10 years ago

When setting cellEdit option for master grid to true, detail grid would not change when clicking on master rows. And also is there any way to edit the cells by double clicking on each. I would appreciate your help.

1 Answers
Abu Ghufran answered 10 years ago

Emailed you a demo.

Adding following options will make celledit work on double click and functional on master detail grid.

// celledit double click (master-detail) – list1 is grid id
$opt["cellEdit"] = true;
$opt["beforeSelectRow"] = "function(rowid) { if (jQuery('#list1').jqGrid('getGridParam','selrow') != rowid) { jQuery('#list1').jqGrid('resetSelection'); jQuery('#list1').setSelection(rowid); } return false; }";
$opt["ondblClickRow"] = "function (rowid, iRow,iCol) { jQuery('#list1').editCell(iRow, iCol, true); }";

$grid->set_options($opt);

Your Answer

14 + 16 =

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?