How can I set an icon for some column in dojox.grid.TreeGrid / LazyTreeGrid ?
In dijit.Tree I can overload getIconClass method to acomplish this.
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.
You can use CSS for that:
This will display
icon.pngin grid cells (indicated by classdojoxGridCelland attributerole="gridcell") in column with the index 3.This is using generated content so you might want to consult the support matrix. If you need to support IE6/IE7 then you will need a fallback solution, all other browsers will do fine.