jqGrid - Einstellung Beschriftung dynamisch

Habe ich die caption Parametersatz in das jqGrid definition. Ich möchte wissen, ob es einen Weg gibt, um es dynamisch je nach class - Attribut des table-Elements, an das die jqGrid-plugin verbunden ist.

HTML 1

<table id="myjqgrid" class="view"></table>
<div id="Pager"></div>

HTML 2

<table id="myjqgrid" class="edit"></table>
<div id="Pager"></div>

JQGrid Definition

$("#myjqgrid").jqGrid({
    caption: ""     //this is what I want to set dynamically
})
InformationsquelleAutor techlead | 2011-12-30
Schreibe einen Kommentar