Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Drop Down List behavior
Message
From
08/09/2004 08:57:02
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00940045
Message ID:
00940246
Views:
19
Did Houston's answer do it for you? I think I'm still having trouble picturing what you're doing.

In my case, I fill the ddl once (from a table now). It starts out on the first record. As I choose different items, other things being displayed in other controls change, but the ddl display remains as is.

It sounds like you're saying that you fill the ddl, the user chooses something from the list, and then you refill the ddl in accordance with new information depending on the user's selection. But you still want the ddl display to show what it did before you refilled it. I'm sure I've got that wrong, and I'm misreading what you're trying to say, but that's what it sounds like to me.

Could you clarify?

Alan

>Alan;
>
>Yes, it is an ASP.NET page with a server ddl side control. I have been working with different ideas like:
>
>ddl.Items.IndexOf(ddl.Items.FindByText(etc.)
>
>If you get a chance try it with a table. If I find the answer I will let you know.
>
>Tom
>
>>Ok, I think I know what you're talking about now. I'm doing something very similar, but I'm populating my unbound ddl manually using the ddl's Add() method - Add(new ListItem(key,val)) (the items being read from a text file). I haven't tried using a table, but I can try that out later and see what happens.
>>
>>Do I take it that your ddl is a web control on an aspx page?
>>
>>Alan
>>
>>>Alan;
>>>
>>>Thank you for the attempt to solve this issue. No, AutoPostBack will not do it.
>>>
>>>I should have added that the control is unbound. That might help a bit more.
>>>
>>>This is not easy to describe in words. That is why I gave the ASP example. Let me try another explanation:
>>>
>>>1. I want to use a ddl to display a specific piece of data related to a row of data.
>>>
>>>2. If I go into Edit mode I want to fill the ddl with data from a table while retaining the original displayed data in the ddl. This will allow the user to make another selection. Right now if I fill the ddl from the table the record shown in the ddl is the BOF.
>>>
>>>Does that help? I can try to elaborate more if necessary. It is simple to show someone what I mean but not too easy to put into words! :)
>>>
>>>Tom
>>>
>>>
>>>
>>>
>>>>I'm not real sure I understand what you want, but if you set the list's AutoPostBack property to true, does that give you what you want?
>>>>
>>>>Alan
>>>>
>>>>>This is an issue about behavior. In ASP a cbo will display the value saved by the user. When using a table to drive the cbo you can pull down the cbo list and the original value will still be displayed.
>>>>>
>>>>>Using a Drop Down List control I want to be able to create the same behavior as described above. Can someone point me in the right direction?
>>>>>
>>>>>Tom
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform