Drop-down List is not getting closed on clicking other drop-down input field in Angular-6 - angular-components

I have created a component of custom drop down list, for re-use it in another components like form.
I am using two components
1) Form (Parent Component)
2) drop-down (Child Component)
Form component has two drop-down list first is Country Name list and second is Cities Name list. The data is sending from parent component to make the drop down-list.
The expected behaviour is as follows.
1) On clicking the Country input field, the list of Country Names drop-down should be open
2) On clicking the Country input field again, the drop-down should be hide
3) On clicking any where in page the drop-down should hide.
4) On clicking another drop-down input field the relevant drop-down list should be open and same time other drop-down should be hide.
Every-thing is working fine except following.
If Country down-list is already opened and same time I click on Cities drop-down input field the relevant Cities drop-down get opened.
But the Country drop-down list is not getting hiding. The expectation is Country drop-down list should hide.

Related

Multiple dropdown list

I have multiple Dropdown list. Each dropdown have values from 1 upto 10.
In first dropdown list, if the user selects value 2, then automatically the value 3 will be shown in the second dropdown list.
So in the end, if the user selects a value from the first dropdown list, I must show the value, incremented by one on the second dropdown list.
How can I do it in Angular?

Adding multiple dropdown on clicking a link

I have a link which says "add another field". On clicking the link a dropdown should appear on top with let's say 5 custom fields as list in dropdown. Once user selects a field in that dropdown and clicks hyperlink another dropdown should appear below existing dropdown and with only 4 remaining fields as one is already selected.so how to start this?
https://tutorialslink.com/Articles/How-to-add-control-dynamically-in-Aspnet-MVC-using-Javascript/64 . I have tried to use this link which adds text boxes to get started.
I don't have any code expect for the code in above link which is for text box though. Just need an idea of how to do it in asp.net MvC as i cannot move forward now.
Expected results is to do the above requirement, don't have any actual results as of now

Hide and show other controls based on the drop down value using Orbeon Builder

How to create form using Orbeon builder, where user can select value from a drop down and based on the selection the user can see other controls get rendered (probably hidden/shown).
First, give a meaningful name to that dropdown field; say gender.
Click on the Edit Choices icon for that field, just below the Control Details icon, and in the dialog assign meaningful values to each choice. Those are the values you'll refer to in step 3.
Finally, in the Control Details for the other field, under the Formulas tab, if you want that field to only be shown if the value of the gender field is female, enter the XPath expression $gender = 'female'.

How do I filter a table using check list boxes and a button? (in Delphi 2010)

This is the form I am working with:
It shows a basic Delphi form with a DB Grid on top with a panel underneath. The panel below contains two CheckListBox's and one radiogroup. Each CheckListBox contains three check boxes and the radiogroup consists of two radio buttons. There is also a button on the right of the panel with the text "Filter" on it.
Question: How can I select the check boxes and one of the radio buttons and then click the button to make the table filter according to the selection?

How to create Combobox with multiselect capability?

How to create a Combobox having Multiselect Capability using Jquery?
Does JQuery Combobox has this functionality or Property?
if it helps, take a look http://ivaynberg.github.io/select2/ for multi select values
Edited : I found one more link it's really great http://tameraydin.github.io/jquery-easyselect/
Combobox displays the selected value when its list of options is collapsed. You may want to use multiple selection list.
to use multiple select in combobox you will have to create your own user control using checked listbox, textbox and a button.
and on click of button just make checked list box visible and let the user select items from that checkedListBox and as user select items on it you take those values and concatenate it in textbox with comma seperated. and then again on click on button hide that list box.
as it is on : http://9perhour.co.uk/
which is asking for select technology
some good samples
for jquery:
http://abeautifulsite.net/blog/2008/04/jquery-multiselect/
http://quasipartikel.at/multiselect/
http://www.codeproject.com/KB/ajax/jqueryajax.aspx
for asp.net:
http://www.codeproject.com/KB/user-controls/MultipleSelectionDropDown.aspx
http://www.codeproject.com/KB/webforms/DataGridDropDownList.aspx
http://www.codeproject.com/KB/asp/multiselectdropdown.aspx

Resources