Options-Groups Displaying Dummy Line 1st

Posted By shulemj Mon 30 Nov 2015
Add to Favorites1
Author Message
shulemj
 Posted Mon 30 Nov 2015
Supreme Being

Supreme Being - (58,761 reputation)Supreme Being - (58,761 reputation)Supreme Being - (58,761 reputation)Supreme Being - (58,761 reputation)Supreme Being - (58,761 reputation)Supreme Being - (58,761 reputation)Supreme Being - (58,761 reputation)Supreme Being - (58,761 reputation)Supreme Being - (58,761 reputation)

Group: Forum Members
Last Active: Thu 11 Jul 2019
Posts: 115, Visits: 565
How can I remove the 1st line of every option-group drop-down-menu that's displaying a dummy dash ("-")?

The code is always
<option value="0">-</option>
Mon 30 Nov 2015 by shulemj
Tiggywiggler
 Posted Tue 22 Dec 2015
Supreme Being

Supreme Being - (120,382 reputation)Supreme Being - (120,382 reputation)Supreme Being - (120,382 reputation)Supreme Being - (120,382 reputation)Supreme Being - (120,382 reputation)Supreme Being - (120,382 reputation)Supreme Being - (120,382 reputation)Supreme Being - (120,382 reputation)Supreme Being - (120,382 reputation)

Group: Forum Members
Last Active: Mon 6 Dec 2021
Posts: 235, Visits: 750
depending on where you are there are different template controls that are in charge of this behaviour. you would simply have to alter the source code to remove this first item (it is entered in via the code). Why would you want to do this? We put that there for those places where selecting anything may be optional and we want to give the user the ability to select nothing. With the top item removed you could not select nothing.

We are always willing to help out the community or pitch in to help you fix a problem. However, if you want a complete solution made such as a code module or new feature added you have two options. Either
1) Reach out to the Kartris internal development team at http://www.kartris.com/Contact.aspx.
2) Contact one of the Kartris approved partners at http://www.kartris.com/t-Worldwide-Developers.aspx.

Have fun and good luck coding.
shulemj
 Posted Wed 30 Dec 2015
Supreme Being

Supreme Being - (58,761 reputation)Supreme Being - (58,761 reputation)Supreme Being - (58,761 reputation)Supreme Being - (58,761 reputation)Supreme Being - (58,761 reputation)Supreme Being - (58,761 reputation)Supreme Being - (58,761 reputation)Supreme Being - (58,761 reputation)Supreme Being - (58,761 reputation)

Group: Forum Members
Last Active: Thu 11 Jul 2019
Posts: 115, Visits: 565
But I want to hide it. Where do I edit?
(I know code.)
Tiggywiggler
 Posted Sat 2 Jan 2016
Supreme Being

Supreme Being - (120,382 reputation)Supreme Being - (120,382 reputation)Supreme Being - (120,382 reputation)Supreme Being - (120,382 reputation)Supreme Being - (120,382 reputation)Supreme Being - (120,382 reputation)Supreme Being - (120,382 reputation)Supreme Being - (120,382 reputation)Supreme Being - (120,382 reputation)

Group: Forum Members
Last Active: Mon 6 Dec 2021
Posts: 235, Visits: 750
If you really want to remove the hyphen you can find the code within 'Options.ascx'. this is within the folder UserControls/General.

The hyphen is added inside the method CreateOption().

You will need to trigger the 'Index Changed' events inside of Options.ascx and OptionsContainer.ascx after you load the items into the options controller each time to ensure that whatever option is displayed in the drop down is also what the back end code thinks is there. this will not be a problem if someone changes the drop down value, but if they leave the default value in there you may have an issue.


We are always willing to help out the community or pitch in to help you fix a problem. However, if you want a complete solution made such as a code module or new feature added you have two options. Either
1) Reach out to the Kartris internal development team at http://www.kartris.com/Contact.aspx.
2) Contact one of the Kartris approved partners at http://www.kartris.com/t-Worldwide-Developers.aspx.

Have fun and good luck coding.

Similar Topics

Expand / Collapse

Reading This Topic

Expand / Collapse

Back To Top