@Html.ListBoxFor(x => x.SelectedIds, new SelectList(Model.DisplayList, "Id", "Name"))
The above asp.net mvc code renders a <select>-tag.
How can I set the width to stretch horizontally 100% ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Code above will render “select” tag with multiple=”multiple” attribute.
Now, not sure if I understand your problem but if you set attribute style=”width:100%” on select tag it will stretch horizontally.
Please correct me if I missed your point.