Welcome to the Xceed Community | Help
Community Search  

Table view / Card view issue

Sort Posts: Previous Next
  •  12-04-2008, 10:47 AM Post no. 17347

    Table view / Card view issue

    Hi All,

    Our scenario is:

    We are having grid with three columns with both options - table view and card view. In card view we are populating the images for all the columns based on the text they get and in table view we display text. For this we have created custom custom datarow templates for both and they are assigned dynamically based on user selection. We have a condition where we do not want to display third column so we did something like

    grid.Columns[2].Visibility = Visibility.Hidden;

    It works fine for table view but not for card view. Card view still shows images based on third column value.

    The problem may be because we need to already define

    <xcdg:DataCell FieldName="xyz" Visibility="Hidden"/>

    the datacell visibility to hidden in the datarow template of cardview. While for table view we define it as

    <xcdg:DataCell FieldName="ObjectBackupState" Grid.Column="2"
                               ContentTemplate="{StaticResource customTableViewDataTemplate}"/>

     i.e. visibility is not set initially.

    Can anybody suggest us what are we doing wrong here or any better approach. (like clearing third column values - is there a direct call like Column[2].clear or so)

    Thanks and Regards,

    Anurodh

View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2008 Xceed Software Inc.