If I have a grid, how can I change it’s background image depending on whether a certain variable is true or false?
Thanks.
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.
If you meant a background image for the entire grid then you can use viewConfig of the grid panel to set a custom CSS property with the background image
CSS:
here is a full example:
http://fiddle.jshell.net/dbrin/bQvyg/10/
Must say it doesn’t look great.
EDIT: “HardWorker” asked how to change it programatically after the component is rendered. So here is how: