i have a jqgrid treegrid cell and i want to have content inside of a cell that has links and other html formatting.
is this possible with jqgrid treegrid ? I don’t see anything mentioned in the documentation
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The most things which you know from jqGrid having simple table data still valid for the tree grid. So you can use custom formatters or custom attribute formatter (
cellattr) to place HTML in the cells. You can place HTML fragments in the JSON or XML input if needed.Look at the small demo:
It is only important to understand, that the tree grid don’t support data paging, so you should set
rowNumparameter to the large enough value like 10000.I recommend you to examine the tree grid contain. You will see hidden columns
'level','parent','isLeaf','expanded','loaded'and'icon'as the last grid columns. Moreover you will see that all tree nodes (expanded and not expanded) are already added to the grid. Not yet expanded nodes are just hidden.The code of the tree grid used in the demo is
where
'AdjacencyTreeWithHTML.json':