ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Adding image in TreeGrid Control
Title:
B
I
{code}
?
Is it possible to add images in TreeGrid CRUD Control.
Save Changes
Cancel
Chandra Mohan
asked at 24 Feb 2018
Answers
B
I
{code}
?
sure, you can add any html, and image can be an img tag or a div with css that has backround-image, so you can add a column like this: new Column { ClientFormat = "<img src='pic1.gif' >" } or new Column { ClientFormat = "<img src='.ImgUrl' >" } `ImgUrl` being a property in the grid model another way is to use js function that generates the content for the grid cell and you specify it using `ClientFormatFunc` you can see more about grid custom format here: https://demo.aspnetawesome.com/GridDemo/CustomFormat
Save Changes
Cancel
Omu
answered at 24 Feb 2018
Thank u.
at 24 Feb 2018
Chandra Mohan
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK