Post Reply 
 
Thread Rating:
  • 38 Votes - 3.08 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DropdownListのリストアイテムをラベル名で選択させる
07-11-2012, 05:47 PM
Post: #1
DropdownListのリストアイテムをラベル名で選択させる
DropDownListのリストアイテムをindexやvalueで選択させるのではなく、

ラベル名で選択させる方法はありますか?
Find all posts by this user
Quote this message in a reply
02-01-2013, 06:34 PM
Post: #2
RE: DropdownListのリストアイテムをラベル名で選択させる
ラベルに文字列を指定していて、その値で選択させたい、ということであれば、
ListValueItem.label.get-text で指定した文字列と同じ値が取れると思います。
DropdownList.list-items をコンテナループでまわしながら、比較して選択させれば(面倒ではありますが)可能だと思います。
Find all posts by this user
Quote this message in a reply
02-04-2013, 03:54 PM
Post: #3
RE: DropdownListのリストアイテムをラベル名で選択させる
ありがとうございます。

比較方法でうまくいきました。
Find all posts by this user
Quote this message in a reply
Post Reply 

Forum Jump:


User(s) browsing this thread:
1 Guest(s)