ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
MultiLookup Select all at once
Title:
B
I
{code}
?
Hi When opening the multilookup popup is it possible to select all the items at once
Save Changes
Cancel
NM
asked at 01 Aug 2014
Answers
B
I
{code}
?
you could not use pagination, so you would return the whole list, and set the More = false ( no more items) return Json(new AjaxListResult { Items = list.Select(o => new KeyContent(o.Id, o.Name)) // without .Skip((page - 1) * PageSize).Take(PageSize) More = false // bool - show More button or not }); and you could use a custom search form like here: http://demo.aspnetawesome.com/MultiLookupDemo/CustomSearch where you will add a button that will click all the buttons in the search result using js, something like this: <button type='button' onclick='mselectall'>select all </button> in js: function mselectall(){ $(this).closest('.awe-multilookup-popup').find('.awe-srl .awe-movebtn').click(); }
Save Changes
Cancel
Omu
answered at 01 Aug 2014
B
I
{code}
?
It's work, thank you!
Save Changes
Cancel
NM
answered at 04 Aug 2014
You're welcome ( btw there's an "add comment" link under each post, for this kind of thing)
at 04 Aug 2014
Omu
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK