ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: Soumya on February 13, 2015, 04:15:31 am

Title: Detail grid Expand button got messed up when set columnTemplate :comment render
Post by: Soumya on February 13, 2015, 04:15:31 am
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.
Title: Re: Detail grid Expand button got messed up when set columnTemplate :comment render
Post by: paramvir on February 13, 2015, 05:15:28 pm
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.
Title: Re: Detail grid Expand button got messed up when set columnTemplate :comment render
Post by: Soumya on February 13, 2015, 08:30:42 pm
That worked thank you very much. Was so simple may be i should have figured out myself :).