Options-Groups Displaying Dummy Line 1st
Home
»
Kartris ASP.NET Ecommerce Software
»
Kartris technical issues
https://forum.kartris.com/Topic6301.aspx
Print Topic
|
Close Window
By shulemj
-
Mon 30 Nov 2015
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>
By Tiggywiggler
-
Tue 22 Dec 2015
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.
By shulemj
-
Wed 30 Dec 2015
But I want to hide it. Where do I edit?
(I know code.)
By Tiggywiggler
-
Sat 2 Jan 2016
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.
Powered By InstantForum.NET 2012-1 © 2024
Execution: 0.031.
4 queries.
Compression Enabled.