Using HTML tags in dropdown not working

QuestionsUsing HTML tags in dropdown not working
DB asked 2 years ago

Hi,

I need HTML tags in select options to have different styling eg:

101 – <i>My description</i>

If I use the tags like above then it shows in the grid but if I cancel an edit, the cell will be empty.

After a litte debugging I found out that the grid parameter savedRow doesn’t contain the ID of the selected record in the column when starting editing.

How can I use tags for styling select options in the grid?

Thank you in advance

Daniel

1 Answers
Abu Ghufran Staff answered 2 years ago

Hello,

Styling in dropdown option is not very well supported in html (so as in our datagrid)
There are some solutions that uses other JS libraries to replace html dropdown to custom to achieve styling.

https://stackoverflow.com/questions/7208786/how-to-style-the-option-of-an-html-select-element

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

19 + 10 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?