This is a migrated thread and some comments may be shown as answers.

Show only 1 item inside ContentDialog

6 Answers 99 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Miroslav
Top achievements
Rank 1
Miroslav asked on 02 Jun 2016, 12:09 PM

Hello,

I migrated my app from 2016.1 to 2016.2 and when I check my app, that properly work, I can see only 1 item in listview, that is inside ContentDialog. In last version was all OK. Can you repair this?

Best Regards

Miroslav Mareš

6 Answers, 1 is accepted

Sort by
0
Ivaylo Gergov
Telerik team
answered on 06 Jun 2016, 02:25 PM
Hi Miroslav,

Could you please send me a sample project which reproduces this behavior? Thus I will be able to further investigate.

I am looking forward to your reply.

Regards,
Ivaylo Gergov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Miroslav
Top achievements
Rank 1
answered on 06 Jun 2016, 02:33 PM

Hello,

here is xaml code:

<ContentDialog
    x:Class="TwiceM.UWP.VehicleManager.ViewDialog.ServiceOperationDialog"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:TwiceM.UWP.VehicleManager.ViewDialog"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:telerikPrimitives="using:Telerik.UI.Xaml.Controls.Primitives"
    xmlns:telerikDataCore="using:Telerik.Data.Core"
    xmlns:telerikDataControls="using:Telerik.UI.Xaml.Controls.Data"
    xmlns:telerikListView="using:Telerik.UI.Xaml.Controls.Data.ListView"
    xmlns:telerikListViewCommands="using:Telerik.UI.Xaml.Controls.Data.ListView.Commands"
    mc:Ignorable="d"
    DataContext="{Binding Path=ServiceOperations, Source={StaticResource Locator}}"
    Title="Service operations"
    PrimaryButtonText="Save"
    SecondaryButtonText="Cancel"
    PrimaryButtonClick="ContentDialog_PrimaryButtonClick"
    SecondaryButtonClick="ContentDialog_SecondaryButtonClick">
  <Grid Margin="24">
    <telerikPrimitives:RadBusyIndicator AnimationStyle="AnimationStyle1"
                                        Grid.Row="0"
                                        IsActive="{Binding IsDataLoading}"
                                        Content="Loading..."
                                        Canvas.ZIndex="100"/>
    <telerikDataControls:RadListView x:Name="telerikListServiceOperations"
                                       EmptyContentDisplayMode="DataSourceEmpty"
                                       EmptyContent="No data."
                                       IsActionOnSwipeEnabled="False"
                                       SelectionMode="Multiple"
                                       ItemsSource="{Binding Items}" MinHeight="200">
      <telerikDataControls:RadListView.ItemStyle>
        <Style TargetType="telerikListView:RadListViewItem">
          <Setter Property="Padding" Value="0"/>
          <Setter Property="Margin" Value="0"/>
        </Style>
      </telerikDataControls:RadListView.ItemStyle>
      <telerikDataControls:RadListView.ItemTemplate>
        <DataTemplate>
          <Grid Margin="12">
            <Grid.RowDefinitions>
              <RowDefinition Height="Auto"/>
              <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <TextBlock Grid.Row="0"
                       Text="{Binding Name}"/>
            <TextBlock Grid.Row="1"
                       FontSize="10"
                       TextWrapping="Wrap"
                       Text="{Binding Description}"/>
          </Grid>
        </DataTemplate>
      </telerikDataControls:RadListView.ItemTemplate>
      <telerikDataControls:RadListView.Commands>
        <!--<telerikListViewCommands:ListViewUserCommand Id="ItemTap" Command="{Binding EditServiceOperationsCommand}" EnableDefaultCommand="False"/>-->
      </telerikDataControls:RadListView.Commands>
    </telerikDataControls:RadListView>
  </Grid>
</ContentDialog>

Best Regards

Miroslav Mareš

0
Ivaylo Gergov
Telerik team
answered on 09 Jun 2016, 12:56 PM
Hello Miroslav,

I was able to reproduce this issue and I will further investigate it.
I will contact you as soon as I have more information regarding fix or workaround.

Regards,
Ivaylo Gergov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Ivaylo Gergov
Telerik team
answered on 13 Jun 2016, 07:55 AM
Hi Miroslav,

We have logged this issue in our bug tracking system and we will try to address it for some of our next releases. For now, the only workaround would be to set fixed size of the RadListView.

Thank you for your valuable feedback. I have updated your Telerik points.

Regards,
Ivaylo Gergov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Miroslav
Top achievements
Rank 1
answered on 20 Jul 2016, 03:44 PM

Hello,

I installed the last update, but this issue is not fixed? Or only partially? In desktop version (x86) I see same result as before. But in mobile version (ARM) I can see all items, but I cannot scroll last item into view. Please when you fix this bug?

Best Regards

Miroslav Mareš

0
Ivaylo Gergov
Telerik team
answered on 26 Jul 2016, 07:20 AM
Hello Miroslav,

Unfortunately, this bug is not yet fixed. It seems that the fix is not so trivial and we will further evaluate it.

Please, let me know should you have any other questions.

Regards,
Ivaylo Gergov
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
ListView
Asked by
Miroslav
Top achievements
Rank 1
Answers by
Ivaylo Gergov
Telerik team
Miroslav
Top achievements
Rank 1
Share this question
or