Click here to Skip to main content
15,897,718 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
JavaScript
var question= dataQuestions;


I am loading "dataQuestions" which is an array collection.

next Iam adding another item at "0th" position as following

JavaScript
question.splice(0,0,{"Qid": 0,"Answer":null,"Text":""}


Now i am

JavaScript
function insertData(sQ, question) {
			sQ.kendoDropDownList({
				dataTextField : "Text",
				dataValueField : "Qid",
				dataSource : question
                           
			});
		} 

So now my dropdown contains few questions like "wht is....?".But at "0th" position there will be an empty row.
I want that emptyrow to hide or non clickable.(based on my click on any question in the dropdown some functionality happens).

Any help?
Posted
Updated 2-Sep-12 22:06pm
v2

1 solution

The SELECT > OPTION supports disabled attribute:

XML
<select>
  <option>Volvo</option>
  <option>Saab</option>
  <option disabled="disabled">Mercedes</option>
  <option>Audi</option>
</select>


But I don't know if you can pass this property to the kendoui dropdown :(
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900