Binding to List<MyClass> + AfterUpdate

J

J. Askey

Hello...

I have a situation where I need to have a drop down list that binds to a
class such as

class person
{
public int key;
public int name;
public int age;
public int zip;
}

I am using a webservice and expose a method called 'GetPersons' that returns
a List<person>. By setting the binding I can easily display the name property
and and use the key property as the value.

however... here is the question I have... I want to use the 'AfterUpdate'
event for the dropdownlist to do one thing...

1. Display the 'zip' property for the selected item in a seperate text box
on the form after the person has been selected.

From the docs I am unsure of how to get a property of the selected item that
is not the value or display field... does anyone have a JScript example of
how to do this?

thank you...
 
S

Shiva (GGK Tech)

Hello,

You have to add the default value as per your requirement for that new
field. In this you have to add filter condition like below,
/person/@zip[@key = ‘Main DOM XPath of key node’]
Otherwise you can add the rule to dropdown to setting ‘zip’ value depends on
selecting ‘key’ value.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top