| Support Center

(Back to Website)

Support Center

Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Detail Caption Update on Master change

S19K15 Feb 12, 2018 07:20PM PKT

Hi, is there any way to update the caption of child grid when using tab-master-detail based on selected record of master's grid?
For example when a user changes the selected record on master grid the property "caption" of detail grid must change -> $grid_detail_jott["caption"] = "ID:"."-".intval($_GET["IDNumb"]);

Up 0 rated Down
Abu Ghufran Feb 12, 2018 11:07PM PKT PHP Grid - Support Center Engineer
$opt["onSelectRow"] = "function(id){ $('#list2').jqGrid('setCaption','Details for ID: '+id); }";
$grid->set_options($opt);

where list2 is detail grid id.
Up 0 rated Down
S19K15 Feb 12, 2018 11:32PM PKT
Can i take a different data field from my master grid columns ecxept the id?
Up 0 rated Down
Abu Ghufran Feb 12, 2018 11:43PM PKT PHP Grid - Support Center Engineer
For grid id list1, if you want to get data of column 'invdate' selected row:
jQuery('#list1').jqGrid('getCell', id, 'invdate');

Post Your Public Answer

Your name (required)
Your email address (required)
Answer (required)

Contact Us

  • Post a Public Question
  • Email Us
  • Live Chat!
  • Ask the Community

    Instructions

    • Paste complete code that is involved in your question. You can use pastebin.com to share code link.

    Screenshots or Online link of webpage is helpful in resolution. You can also send email at address mentioned below.

    • To report an issue, Write steps to regenerate the case.

    • For email support or live chat, Use gridphp@gmail.com and add it in Google Chat.
https://cdn.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete