ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Child lookup not reflecting change of parent lookup
Title:
B
I
{code}
?
if we use a parent / child lookup combination, and we change the selected value of the parent lookup, the child lookup does not fire the specific GetItem method in controller. The child lookup keeps / shows the old value, but it should reset to empty value. Is this behavior by design, do we need to do this on client-side perhaps in jQuery? Thanks. mk
Save Changes
Cancel
mkscisystems
asked at 20 Apr 2015
yes it's by design, the lookup won't update it's value, but when you open the lookup popup, the search action will get the parent's value. if you want to clear the value of the lookup with js you can call: $('#LookupId').val('').change()
at 20 Apr 2015
Omu
ok, the value of the child lookup is cleared after a change on the parent. The Lookup field shows already the old text. The <div> with class awe-display is not cleared. Here is the js code: $(document).ready(function () { $('#AssignedGroup').change(function () { $('#ClaimedByPerson').val('') }); });
at 20 Apr 2015
mkscisystems
you need to trigger the change event $('#ClaimedByPerson').val('').change()
at 20 Apr 2015
Omu
yes, now it works. thanks for your help. regards mk
at 20 Apr 2015
mkscisystems
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