add optgroup label support for select

Questionsadd optgroup label support for select
andyvill.chile asked 6 months ago

hi dear.

 

is possible add oprgroup label in select columns??

 

example

 

<select>
<optgroup label=’Expenses’>
<option value=’42’>Accounting Fees</option>
<option value=’60’>Bank Fees</option>
<option value=’23’>Bank Service Charges</option>
<option value=’24’>Books and Publications</option>
<option value=’25’>Cash Discounts</option>
<option value=’43’>Rent</option>
</optgroup>
<optgroup label=’Income’>
<option value=’19’>Sales</option>
<option value=’20’>Services</option>
<option value=’21’>Interest Income</option>
<option value=’22’>Other Income</option>
</optgroup>
</select>

 

thanks

 

1 Answers
Abu Ghufran Staff answered 6 months ago

This is not supported in library now. However you can use dataUrl property which will call a php page that should return this select / optgroup html code and it will fill the dropdown values.

$col[“editoptions”][“dataUrl”] = “my-dropdown.php”;

In this case, you don’t need to set $col[“editoptions”][“value”] property.

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

0 + 7 =

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?