Thanks. It work's
But if I want show dialog as tooltip?
I need return tooltip for a every cell in datagrid as a different dialog contents
How I can use something in
function formatAttribute , for example:
var clickedData = resultData.rows;
var clickedCell = clickedData[index];
var cell = clickedCell[field];
$('#dlg').dialog({
title: 'Замеры за ' + field,
width: 220,
height: height,
closed: false,
cache: false,
content: function () {
var tableDialog = document.createElement(
'table');
tableDialog.style.width = "100%";
tableDialog.id =
'dataGridDialog' + wellId;
document.getElementById('dlgCheckerboard'
+ wellId)
.appendChild(tableDialog);
$('#dataGridDialog' + wellId)
.datagrid({
data: obj,
title: 'Параметр '
+ clickedCell["NAME"],
striped: true,
bodyCls: "dialog-color",
singleSelect: true,
fit: true,
border: false,
fitColumns: true,
remoteSort: false,
remoteFilter: false,
columns: [[
{
field: 'time',
title: 'Время',
halign: 'center',
width: "45%"
},
{
field: 'value',
title: 'Значение',
halign: 'center',
width: "55%",
sortable: true,
styler: cellDialogStyler
}
]],
showFooter: true
});
}
});