ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Multilookup: Different target
Title:
B
I
{code}
?
I want to use the functionality of Multilookup but I do not want you to draw me a list with the result. I want to display the result in different rows of a table that I have drawn or go to generaer partialviews result. Eg. I have a button, open the poput multilookp, select two names "mark and mick". When I want to draw I accept the record (partialview) of these two clients. 1) do not want the result to be visible in a list 2) I want to through the data to draw what I want. http://fotos.subefotos.com/fab449945472173ee063f3d01e16dbb7o.png It is possible? Thanks.
Save Changes
Cancel
marcosl
asked at 06 Mar 2014
have you seen the multilookup on this page: http://prodinner.aspnetawesome.com (Meals: ) try selecting a few meals that have pictures
at 06 Mar 2014
Omu
I do not want the list, I want to interpret the results and draw with what you want. http://fotos.subefotos.com/aadb864918ffe9c166287813075d3565o.png
at 06 Mar 2014
marcosl
you can bind to the change event, and using the value render the other thing $('#Meals').on('change', function(){ console.log($(this).val()); })
at 06 Mar 2014
Omu
This is not getting fire I need an event that should call my function. i.e. an call back function. You are storing the values in hidden field that does not allow to trigger an change event for more info visit: http://stackoverflow.com/questions/12580761/hidden-input-change-event
at 29 Mar 2014
SJS
you can try it, using chrome go to http://demo.aspnetawesome.com open console (F12), paste and execute (hit enter) this: $('#pageMeals').on('change', function(){ console.log($(this).val()); }); after keep the console open and change the value of the Multilookup
at 30 Mar 2014
Omu
good actually I was trying on page and my multilookup is on popup form. Can you help me on one more thing when I am trying to pass it its passing as string: my code cid = $("#SampleInvs").val(); var json = JSON.stringify({ invids: $(this).val() }); in post parameter showing like: {"invids":"[110,48]"} how can I pass this as proper array so that I can get as array in controller.
at 03 Apr 2014
SJS
if the request has multiple name value pairs with the same name it will be treated as an array
at 03 Apr 2014
Omu
Answers
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