Author Topic: Detail grid Expand button got messed up when set columnTemplate :comment render  (Read 2974 times)

Soumya

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 23
    • View Profile
Master Grid with Detail grid and columnTemplate on Master Grid destroys Expand button .

When i inspect the arrow element this is what i see <td class="pq-grid-cell pq-cell-select ui-state-highlight" pq-col-indx="0" tabindex="0">[object Object]</td>

I am suppose to see <div class="ui-icon ui-icon-triangle-1-e"></div> in the place of [object Object].

This started happening once i set the columnTemplate: { render: commentRender }, in Master Grid Object.

Please see the attached screen shot for more in detail.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6126
    • View Profile
What is the source code in your commentRender.

Either you don't override the default render of detail column.

or

return null when dataIndx == 'pq_detail' inside render callback.
« Last Edit: February 13, 2015, 05:18:45 pm by paramquery »

Soumya

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 23
    • View Profile
That worked thank you very much. Was so simple may be i should have figured out myself :).