1
0
-1

Please suggest an idea to have Default option in Data driven Drop down.

Thanks

    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      Hi,

      You can just assign a value to the data driven dropdown that matches the 'Value Field' property of an item in your data source, once you determine which item is to be the selected one.  By default, the 'Value Field' property is 'value'.

      For example, if you have this list as your data source:

      data.bikes = [
        {
          value:'bmw',
          label:'BMW'
        },
        {
          value:'suzuki',
          label:'Suzuki'
        }
      ]

      ... you can set a dropdown's selection to Suzuki with:

        data.datadrivenDropdown = 'suzuki'

      This works because 'suzuki' matches value:'suzuki' of the second element in the dropdown's data source.

      CommentAdd your comment...