Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
140
Remove ability to make a "blank" selection
posted

I don't want the user to be able to select a blank in my drop-down.  

Didn't see anything in the options that jumped out saying how I could prevent that.  NullText isn't what I want.

Thoughts?

var RangeVar = [{ "Range": "Hourly" }, { "Range": "Daily" }, { "Range": "Monthly" }];

$.ig.loader(function () {
$("#Range_EmbedId").igCombo({
dataSource: RangeVar,
textKey: "Range",
valueKey: "Range",
nullText: "Hourly",
});

Parents
  • 140
    Verified Answer
    posted

    Figured it out, as long as you select one programmatically (using the text option) at the start and your list data source doesn't have blank, you don't get a blank as a selection item.

    $.ig.loader(function () {
    $("#Range_EmbedId").igCombo({
    dataSource: RangeVar,
    textKey: "Range",
    valueKey: "Range",
    nullText: "Hourly",

    text : "Hourly"

    });

Reply Children
No Data