objectlist and templated checkbox

Discussion in 'ASP .Net Mobile' started by Trine, Nov 23, 2004.

  1. Trine

    Trine Guest

    Please has anyone tried to add a checkbox column to an obejctlist AND
    suceeded in taking a boolean value from a dataset to check or uncheck it.
    I have the following code which give me a devicespecific templated checkbox
    (it only displays a checkbox) :

    <mobile:SelectionList SelectType="ChekcBox" ..... >
    <Item Selected='<%#
    Convert.ToBoolean(((ObjectListItem)(((ObjectList)(Container.NamingContainer)).Selection))["primaryvalue"])%></Item>
    </mobile:SelectionList>

    in another objectlist I try a different approach and this code brings me the
    boolean value in text:
    <Field Title="Primary Value" Name="primaryvalue"
    DataField="primaryvalue"></Field>

    but I cant seem to make the two things work together. Any suggestions?
     
    Trine, Nov 23, 2004
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. RA Scheltema
    Replies:
    3
    Views:
    410
    RA Scheltema
    Jan 6, 2004
  2. Marijn
    Replies:
    5
    Views:
    480
    Marijn
    Feb 13, 2004
  3. Replies:
    0
    Views:
    2,248
  4. Amadeus W. M.
    Replies:
    2
    Views:
    406
    Amadeus W. M.
    Jul 4, 2006
  5. Reinhold Schalk

    templated ObjectList problem

    Reinhold Schalk, Dec 4, 2003, in forum: ASP .Net Mobile
    Replies:
    6
    Views:
    140
    C├ęsar A. Fong Espinola
    Dec 10, 2003
Loading...

Share This Page