Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>i would second cdonners comment. having a combobox with disabled options could be a pretty confusing situation for users. isn't there a way to filter the options based on whether the time slots are already booked?</p> <p>some sort of custom control which displays time ranges would be ideal form something like this. this way you could load existing events so that users would be able to see why they aren't able to select a specific time range. i understand that this may go a little further than what you want.</p> <p>something like <a href="http://www.daypilot.org/demo/Calendar/" rel="nofollow noreferrer">this</a> is what i'm thinking... (assuming asp.net, not winforms)</p> <p>but if you're intent on using the combobox, i would go with cdonners suggestion, or you could handle the OnSelectedIndexChanged event in order to validate that the selected choice is available and notify the user if not. sounds like this might be what you're trying to do now. could you post the code that isn't working?</p> <p>edit:</p> <p>it looks like you're making this much more complicated that it has to be. but since it seems like this is homework (correct me if i'm wrong) i don't want to just write out a solution. also, you should tag your question as homework if appropriate.</p> <ol> <li>Grab selected index values of each combo</li> <li>Ensure that the selected index values are valid together </li> <li>If the combination is not, then notify the user</li> <li>Otherwise process accordingly based on whether the current context is for a user or a member.</li> </ol> <p>try setting up the available values of each combo into two separate enums and process based on that rather than hard coding the vlaues.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload