Is there anyway to make the kendo AutoComplete show dropdown with given item count? eg: When the items less than 50, show the dropdown, and when larger, don't show the dropdown or show a warning field.
Many thanks!
Looking at the kendo-ui autocomplete doc, the key is to recognize that if dataSource is empty, the dropdown will not show up.
Take a look at this fiddle to see if it does what you want.
The dropdown will appear if limit is set to a number higher than the size of the data array.
Otherwise, the dropdown will not appear, and the placeholder shows a warning message.
Related
I'm new to UI5. Can somebody help me to show selected tabs in SplitApp? I wan't to do something like this in UI5.
Take a look at the example page and switch to "Single Selection (Master)" in the dropdown.
Example List - Selection
You'll have to add mode="SingleSelectMaster" to the list. Now the selected item will be highlighted.
I am using cq form and have a dropdowns dragged and dropped on the form for country and states.
How do i make states available on change of country.(I am populating country options from a item load path i.e. a node has all countries as its children).
I searched a lot all I am getting is how to do it in dialog box.but thats not what I am looking for.
I want to populate the /libs/foundation/components/form/dropdown component.
Any help is welcome.
I am using cq 5.6.1 (aem 6 adaptive forms has some way to do it)
Here's how you can do it
Add the FORM component to the page
Add Dropdown List component in between the above Form Start/End
Right-click on the dropdown component, select Edit. In the dialog, enter the Element Name(Country), Title, and in "Items Load Path" enter the node path from where data need to be filled in.
Add another Dropdown List component
Right-click on the dropdown component, select Edit. In the dialog, enter the Element Name (State), Title, and in "Items Load Path" enter the node path from where data need to be filled in. Save to come back to dialog.
In the dialog, choose Show/Hide, a dialog popups up. Choose Country "is equal to" some value "say US". This value should match the values in the above Country dropdown. Save and exit.
That's it.
I have to select leads while scheduling a meeting in the "related to" field. A popup is generated when I click the "arrow mark" icon. The results fetched after clicking on submit button are not matching the filters used.
When I navigate to second page, I have seen that checkbox queries are getting applied, for instance, checkbox1=0&checkbox2=0&checkbox3=0 is getting appended to the url.
I would like to remove this extra checkbox related query from the url so that my search works properly. Please provide guidance.
Thanks in advance!
My custom CQ5 component has a dialog which consists of 2 drop down menus. I would like to automatically set a default value to second menu depending on whatever is the value selected from the previous drop down.
How can I achieve this?
you can register handlers for different events triggered by the widgets. You can use the "selectionchanged" event to register a function that will read the new content from the dropdown and then use the setValue() method in the second dropdown to put whatever you want there.
To obtain the second dropdown from the first you can use the nextSibling() method.
The widget documentation will help you a lot. look for "selection"
We can able to create lot of fields and forms using remedy developer. i just wanted to know whether any options for giving tooltip to those fields so that users can better understand over the respective field.
For eg: If there is a field say price, say tooltip like decimal values accepted or something reasonable.
Try to edit fields' "Alternate Text" attribute for a small tool tip.
If you want a bigger one like in overview console table etc., run AL log and see which AL opens it.
Hover option is available for ARS 7.6 or later, and here are some info for you from BMC docs:
Using the message action to create tooltips
Tooltips are brief informational messages that are displayed in response to a user action with an object on the screen. Tooltips are commonly used to provide descriptions of menu items, toolbar buttons, or other objects.
In AR System, tooltips can be applied to tables, attachments, field labels, or field data.
A tooltip can be displayed either by hovering the mouse over an area in a form or by clicking an object such as a button. For table fields, a tooltip can be displayed by hovering over a row. The tooltip displays the values for the row being hovered over, even if that row is not the currently selected row.
When a tooltip appears by hovering, it is closed when the mouse is moved outside the tooltip's border. When a tooltip appears by clicking (for example, when a tooltip appears when you click a button), it is closed when you click anywhere outside the tooltip's border.
A tooltip also can be dismissed by pressing the Escape key.
Tooltips can include URL links, which can be added through a Set Fields action.
Implementing tooltips
Tooltips are implemented through two types of AR System features:
HOVER event
Active link Message action