Unplanned
Last Updated: 05 Apr 2021 13:51 by ADMIN
Created by: Developer
Comments: 12
Category: DropDownList
Type: Bug Report
0
Hi, I am trying to enhance data entry in dropdown lists by using the tab and enter keys to move the focus to the next field after an entry in the list is selected using the up/down arrows or dropdown list filter textbox. While it is working, if the form validator's validateOnBlur setting is set to true, a required field message is displayed even though a value has been selected.

My code is below. How do I get the field to validate after losing the focus?
	var DropDownList = (function (init) {
		return kendo.ui.DropDownList.extend({
			init: function (element, options) {
				var that = this;
				init.call(that, element, options);

				that.wrapper.keydown(function (e) {
					if (e.ctrlKey && e.shiftKey) {
						that.open();
						return;
					}

					var keyCode = e.keyCode || e.which;

					if (keyCode !== 9 && keyCode !== 13) {
						that.open();
					}
				});

				$(that.filterInput).bind("keydown", function (e) {
					var keyCode = e.keyCode || e.which;

					if (keyCode === 9 || keyCode === 13) {
						var press = jQuery.Event("keydown");
						press.ctrlKey = false;
						press.keyCode = 13;
						press.which = 13;
						$(that.wrapper).trigger(press);
					}
				});
			},
			options: {
				name: "DropDownList",
				dataValueField: "Value",
				dataTextField: "Text",
				filter: "contains",
				minLength: 1,
				ignoreCase: true,
				animation: false,
				valuePrimitive: true
			}
		});
	})(kendo.ui.DropDownList.fn.init);

	kendo.ui.plugin(DropDownList);

Declined
Last Updated: 06 Sep 2019 13:57 by ADMIN
Created by: Patrick
Comments: 3
Category: DropDownList
Type: Bug Report
0

Kendo Version - Kendo MVC 2019.2.619

 

My values appear in the previous option item.

Drop Down List name and values:

  • Name = "Select From" 
  • ID = ""
  • Name = "ABCHERG"
  • ID = "ABCHERG"

I have one item and a "Select from" option (see data above) in my list

I select "ABCHERG" from my drop down list and the value that's returned is blank.

If I select the "Select From" option the value returned is "ABCHERG"

Unplanned
Last Updated: 25 Jul 2019 13:11 by Sam

Bug report

Class k-state-focused is not removed from DropDownlist on blur, if its filter input was clicked.

Reproduction of the problem

  1. Use Events demo
  2. Click on DropDownList to expand its dropdown.
  3. Click on DropDownList's filter input.
  4. Click on demo's title to blur the DropDownList

Current behavior

DropDownList appears focused as k-state-focus class is not removed from its span
<span unselectable="on" class="k-dropdown-wrap k-state-default k-state-focused">
image

Expected/desired behavior

DropDownList does not appear focused.

Environment

  • Kendo UI version: 2019.2.619
  • Browser: all