Skip to Content

Dropdownlistbox

Hello,

we have 2 dropdownlistboxes in a MVC based BSP Applikation. Depending the selection of the first dropdownlistbox, we want to set the attribute "disabled" of the second dropdownlistbox, so the user cannot select anymore from the second dropdownlistbox.

If we switch back the selection of the first dropdownlistbox the user should be able again to select values from the second one.

it works fine the first time we call the page, but not when we change the selection.

any help is greatly appreciated.

thx and regards from Michael

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Posted on Apr 02, 2008 at 09:56 PM

    Hi Michael,

    I'm emailing you a sample.

    Cheers

    Graham Robbo

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 03, 2008 at 02:23 PM

    thx for your fast answer, I tested it and it works fine if you enhance the java function with an "else". Nevertheless I could solve it a different way by bind the value which controls if the dropdownlistbox should be disabled or not to the model.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 07, 2008 at 05:32 AM

    Hi Michael,

    Could you please paste the code which was given by Graham. Coz this kind of code samples are helpful to the beginners like me.

    Thanks,

    Anita

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 07, 2008 at 09:58 PM

    Hi Michael,

    I have some sample code on how this can work. Unfortunately I cannot seem to get it to post into the forum. I have emailed it to you.

    Cheers

    Graham Robbo

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.