Welcome Guest
(
Login
|
Register
)
Latest Posts
Popular Topics
Home
Search
Tags
Members
Home
»
Kartris ASP.NET Ecommerce Software
»
Kartris technical issues
»
Options-Groups Displaying Dummy Line 1st
Options-Groups Displaying Dummy Line 1st
Posted By
shulemj
Mon 30 Nov 2015
1
POST REPLY
LIKE
1,249
Options-Groups Displaying Dummy Line 1st
Flat Ascending
Flat Descending
Threaded
Topic View
Add To Favorites
Print This Topic
Goto Topics Forum
Topic Options
Author
Message
shulemj
Posted Mon 30 Nov 2015
Supreme Being
Group: Forum Members
Last Active: Thu 11 Jul 2019
Posts: 115,
Visits: 565
60,561
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>
Tags
HTML
,
Option Groups
,
options
Edited
Mon 30 Nov 2015 by
shulemj
REPLY
QUOTE
LIKE
325
Tiggywiggler
Posted Tue 22 Dec 2015
Supreme Being
Group: Forum Members
Last Active: Mon 6 Dec 2021
Posts: 235,
Visits: 750
123,966
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.
REPLY
QUOTE
LIKE
272
shulemj
Posted Wed 30 Dec 2015
Supreme Being
Group: Forum Members
Last Active: Thu 11 Jul 2019
Posts: 115,
Visits: 565
60,561
But I want to hide it. Where do I edit?
(I know code.)
REPLY
QUOTE
LIKE
338
Tiggywiggler
Posted Sat 2 Jan 2016
Supreme Being
Group: Forum Members
Last Active: Mon 6 Dec 2021
Posts: 235,
Visits: 750
123,966
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.
REPLY
QUOTE
LIKE
314
POST REPLY
LIKE
1,249
Similar Topics
Reading This Topic
Powered By InstantForum.NET 2012-1 © 2024
Execution: 0.047.
10 queries.
Compression Enabled.