Hello,
I've got a winform rad dropdrown list and all the dropdown items' content appear as expected when I combined 2 data-fields following the instruction in this thread:
http://www.telerik.com/forums/multiple-field-displaymember
Specifically, mine case is:
So far so good.
However I think I still have to set a field to my rdd's MemberDisplay, that is:
If I don't have the DisplayMember explicitly set as done in line (1) - in other words, if I remove line (1) >> as the rdd loads, the ID shown up for the selected item, i.e. 142, because of what's being done in (2) - I need (2) to happen, so I must keep that line.
But if I have both lines of codes, then the selected item get the Last Name displayed. I want it to display Last Name, First Name as well.
How can I achieve that?
Again, although all the items in the dropdown do get rendered in the format I implemented in the VisualListItemFormatting event handling codes, which is LastName, FirstName, the current item in "the box" has only Last Name displayed and it's getting a bit frustrated. What am I missing? Please help!!!
System.Data.DataRowView
I've got a winform rad dropdrown list and all the dropdown items' content appear as expected when I combined 2 data-fields following the instruction in this thread:
http://www.telerik.com/forums/multiple-field-displaymember
Specifically, mine case is:
args.VisualItem.Text = row["LastName"] + ", " + row["FirstName"];
So far so good.
However I think I still have to set a field to my rdd's MemberDisplay, that is:
rddlPaList.<
strong
>DisplayMember </
strong
>= dsResultPa.Tables[0].Columns[2].ToString(); //string - LastName (1)<
br
> rddlPaList.<
strong
>ValueMember</
strong
> = dsResultPa.Tables[0].Columns[3].ToString(); // (interger value - ID) (2)
If I don't have the DisplayMember explicitly set as done in line (1) - in other words, if I remove line (1) >> as the rdd loads, the ID shown up for the selected item, i.e. 142, because of what's being done in (2) - I need (2) to happen, so I must keep that line.
But if I have both lines of codes, then the selected item get the Last Name displayed. I want it to display Last Name, First Name as well.
How can I achieve that?
Again, although all the items in the dropdown do get rendered in the format I implemented in the VisualListItemFormatting event handling codes, which is LastName, FirstName, the current item in "the box" has only Last Name displayed and it's getting a bit frustrated. What am I missing? Please help!!!
System.Data.DataRowView