Hi @Siarhei @Maksim_Lakatkou @ArtyomBorisevich,
I’m using DHTMLX Suite 9 TreeGrid and I have a column that combines two fields:
-
levelIndicator(readonly) -
product.fullName(editable)
My current column configuration:
{
id: "test",
minWidth: 300,
htmlEnable: true,
header: [
{ text: "Level Indicator" },
{ content: "inputFilter" }
],
editorType: "input",
template: (value, row) => {
const level = row?.levelIndicator ?? "";
const name = row?.product?.fullName ?? "";
return `
<span class="lvl-readonly">${level}</span>
-
<span class="product-editable">${name}</span>
`;
}
}
Requirement
- Clicking or double-clicking on levelIndicator should not trigger editing.
- Editing should start only when the user clicks on the
product-editablepart of the cell.
Question
Is there a recommended or native way in Suite 9 TreeGrid to make only a specific part of a templated cell editable, while keeping the rest readonly?
Or would you recommend a different column structure to achieve this behavior?
Thanks in advance ![]()