if(Dropdown_1.getSelectedKey()===undefined) //undefined is a system reserved word
{ Dropdown_1.setSelectedKey("All"); } // then do an action, in this case set the Key to “All”
Code language: JavaScript (javascript)
if(Dropdown_1.getSelectedKey()===undefined) //undefined is a system reserved word
{ Dropdown_1.setSelectedKey("All"); } // then do an action, in this case set the Key to “All”
Code language: JavaScript (javascript)