TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Abhilash J A
501
2.4k
598.1k
How can I do parent/child in the bootstrap multiselect ?
Apr 27 2017 12:52 AM
I am working on MVC 5,
How can I bind a category and sub-category to be shown in the same bootstrap multiselect dropdown ?
Here is the table structure and table name is 'productcategory'.
View,
<pre><script src=
"~/Scripts/bootstrap-multiselect.js"
></script>
<link href=
"~/css/bootstrap-multiselect.css"
rel=
"stylesheet"
/>
<script type=
"text/javascript"
>
$(
function
() {
$(
'[id*=DDLProductCate]'
).multiselect({
includeSelectAllOption:
true
, buttonWidth:
'213%'
});
});
</script>
@Html.DropDownListFor(
model
=
>
model.ShowAdConfigIDs, ViewData["Products"] as List
<
SelectListItem
>
, new { @
id
=
"DDLProductCate"
, @
class
=
"form-control"
, @
multiple
=
"multiple"
})
How can I do this, inside the same DropDownList's ViewData["Products"] using C# LINQ query ?
Reply
Answers (
1
)
How to sent mail using smtp config.?
job after a gap