Last post Jul 30, 2007 11:58 AM by BobbyFrazier
Jul 06, 2007 03:10 PM|BobbyFrazier|LINK
I'm new to mobile development so forgive me if I'm missing something simple.
I'm using the <Mobile:SelectionList> control in a mobile application and I want a dropdown rendered. When I run the app, the SelectionList renders as a list of radio buttons even when the SelectType attribute is set to dropdown. The only SelectType attribute
that renders correctly is Checkbox. Everything else renders as radio buttons.
The emulator that I'm using for display is Openwave v7. I'm binding the control in the codebehind and the aspx page shows as follows:
<mobile:SelectionList SelectType="DropDown" ID="drpProducts" Runat="server"></mobile:SelectionList>
I know that the emulator can show dropdowns because of the example that I see at this site:
I also notice that each of the items in my SelectionList control renders WITHOUT a value attribute. Why would that be?
Any help would be greatly appreciated.
ASP.NET Mobile Controls
Jul 13, 2007 10:29 AM|MikeLim|LINK
I managed to get SelectList rendered as dropdown with my installation of Openwave emulator. On postback,the correct value is not registered.
Got it working with radio buttons though.
Jul 20, 2007 12:16 PM|BobbyFrazier|LINK
What did you have to do to get the SelectList rendered as a dropdown in your Openwave Emulator. Did you have to override the WML Adapter class or something? If so what needs to change?
Jul 29, 2007 10:35 PM|Dorph|LINK
The problem is that ASP.Net recognises the Openwave emulator as a wml11 device. If you add a new browser file under App_Browsers with the following spec it should work fine:
<capability name="RendersWmlSelectsAsMenuCards" value="False" />
<capability name="preferredRenderingType" value="xhtml-basic" />
Jul 30, 2007 11:58 AM|BobbyFrazier|LINK
Thanks so much! That was it! I've got a lot to learn with mobile development. Thanks again!