How I set Height to ListViewTemplateCell.View to see all content

0 Answers 148 Views
ListView
Daniel
Top achievements
Rank 1
Silver
Bronze
Daniel asked on 27 Apr 2022, 11:28 AM

Hi,

How I set Height to ListViewTemplateCell.View to see all content?

Thanks,


      <telerikDataControls:RadListView ItemsSource="{Binding RulesSource, Mode=TwoWay}" x:Name="rulesListView" >
                <telerikDataControls:RadListView.GroupDescriptors>
                    <telerikListView:PropertyGroupDescriptor PropertyName="Portal"/>
                </telerikDataControls:RadListView.GroupDescriptors>
                <telerikDataControls:RadListView.ItemTemplate>
                    <DataTemplate>
                        <telerikListView:ListViewTemplateCell>
                            <telerikListView:ListViewTemplateCell.View>
                                <telerik:RadBorder  BorderColor="{DynamicResource PrimaryColor}" BorderThickness="1"   VerticalOptions="Center" CornerRadius="5" Margin="5" >
                                    <Grid RowSpacing="10" RowDefinitions="auto, auto, auto" ColumnSpacing="10" ColumnDefinitions="auto, auto, auto, auto, auto, auto,auto, auto" HorizontalOptions="Center" VerticalOptions="Center">
                                        <Label Grid.Row="0" Grid.Column="0" Text="Capacity (In Mega):" TextColor="Black" VerticalOptions="Center" FontSize="16" FontAttributes="Bold" Margin="5"/>
                                        <Label Grid.Row="0" Grid.Column="1" Text="{Binding Capacity}" TextColor="Black" VerticalOptions="Center" />
                                        <Label Grid.Row="0" Grid.Column="2" Text="Capacity in used (In Mega):" TextColor="Black" VerticalOptions="Center" FontSize="16" FontAttributes="Bold" Margin="5"/>
                                        <Label Grid.Row="0" Grid.Column="3" Text="{Binding CapacityUsed}" TextColor="Black" VerticalOptions="Center" />

                                        <Label Grid.Row="0" Grid.Column="4" Text="Scan capacity (In Mega/Mounth):" TextColor="Black" VerticalOptions="Center" FontSize="16" FontAttributes="Bold" Margin="5"/>
                                        <Label Grid.Row="0" Grid.Column="5" Text="{Binding ScanCapacity}" TextColor="Black" VerticalOptions="Center" />
                                        <Label Grid.Row="0" Grid.Column="6" Text="Scan capacity in used: (In Mega/Mounth)" TextColor="Black" VerticalOptions="Center" FontSize="16" FontAttributes="Bold" Margin="5"/>
                                        <Label Grid.Row="0" Grid.Column="7" Text="{Binding ScanCapacityUsed}" TextColor="Black" VerticalOptions="Center" />

                                        <Label Grid.Row="1" Grid.Column="0" Text="File type black list:" TextColor="Black" VerticalOptions="Center" FontSize="16" FontAttributes="Bold" Margin="5"/>
                                        <Label Grid.Row="1" Grid.Column="1" Text="{Binding FileTypeBlackList}" TextColor="Black" VerticalOptions="Center" />
                                        <Label Grid.Row="1" Grid.Column="2" Text="File type black list:" TextColor="Black" VerticalOptions="Center" FontSize="16" FontAttributes="Bold" Margin="5"/>
                                        <Label Grid.Row="1" Grid.Column="3" Text="{Binding FileTypeWhiteList}" TextColor="Black" VerticalOptions="Center" />

                                        <Label Grid.Row="2" Grid.Column="0" Text="Max single file size: (In Mega)" TextColor="Black" VerticalOptions="Center" FontSize="16" FontAttributes="Bold" Margin="5"/>
                                        <Label Grid.Row="2" Grid.Column="1" Text="{Binding MaxSingleFileSize}" TextColor="Black" VerticalOptions="Center" />
                                        <Label Grid.Row="2" Grid.Column="2" Text="Max files in job: (In Mega)" TextColor="Black" VerticalOptions="Center" FontSize="16" FontAttributes="Bold" Margin="5"/>
                                        <Label Grid.Row="2" Grid.Column="3" Text="{Binding MaxFilesInJob}" TextColor="Black" VerticalOptions="Center" />
                                        <Label Grid.Row="2" Grid.Column="4" Text="Max total files size in job: (In Mega)" TextColor="Black" VerticalOptions="Center" FontSize="16" FontAttributes="Bold" Margin="5"/>
                                        <Label Grid.Row="2" Grid.Column="5" Text="{Binding MaxSingleFileSize}" TextColor="Black" VerticalOptions="Center" />


                                    </Grid>
                                </telerik:RadBorder>
                            </telerikListView:ListViewTemplateCell.View>
                        </telerikListView:ListViewTemplateCell>
                    </DataTemplate>
                </telerikDataControls:RadListView.ItemTemplate>
                <telerikDataControls:RadListView.LayoutDefinition>
                    <telerikListView:ListViewLinearLayout ItemLength="60" />
                </telerikDataControls:RadListView.LayoutDefinition>
            </telerikDataControls:RadListView>

Daniel
Top achievements
Rank 1
Silver
Bronze
commented on 27 Apr 2022, 11:45 AM

Set this property:

 <telerikListView:ListViewLinearLayout ItemLength="200" />

No answers yet. Maybe you can help?

Tags
ListView
Asked by
Daniel
Top achievements
Rank 1
Silver
Bronze
Share this question
or