Telerik Forums
UI for .NET MAUI Forum
0 answers
695 views

Hi,

When I run this login page without popup is OK.

But When I add it to the content page he throw exception in runtime , why ?

System.NullReferenceException: 'Object reference not set to an instance of an object.'
Thanks,
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="AutomationClient.MAUI.LoginPage"
             xmlns:telerikInput="clr-namespace:Telerik.XamarinForms.Input;assembly=Telerik.Maui.Controls.Compatibility"
             xmlns:telerik="clr-namespace:Telerik.Maui.Controls;assembly=Telerik.Maui.Controls"
             xmlns:telerikPrimitives="clr-namespace:Telerik.XamarinForms.Primitives;assembly=Telerik.Maui.Controls.Compatibility" 
              xmlns:telerikMauiControls="clr-namespace:Telerik.Maui.Controls;assembly=Telerik.Maui.Controls">
    <Grid>
      
        <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="110"/>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="450"/>
            <RowDefinition Height="130"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="350"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <Image  Grid.Row="0" Grid.RowSpan="4" Grid.ColumnSpan="3" Source="loginbackground.png" Aspect="Fill"/>
        <Image  Grid.Row="0" Grid.RowSpan="4" Source="gslogo.png" WidthRequest="250" HeightRequest="110"/>
   
        <telerik:RadBorder Grid.Row="1" Grid.Column="1" Grid.RowSpan="2" BorderColor="AliceBlue" BorderThickness="2"  HorizontalOptions="Center" VerticalOptions="Center" CornerRadius="15, 5, 15, 5">
            <Grid BackgroundColor="White" RowSpacing="25" RowDefinitions="Auto,Auto,Auto,Auto,Auto, Auto,Auto,Auto,Auto">
                <Label  Grid.Row="0" Grid.Column ="0"  Text="Automation Client"  FontSize="Large" HorizontalOptions="CenterAndExpand" VerticalOptions="CenterAndExpand" />
                <Label Grid.Row="1" Grid.Column ="0"  Text="Login"  FontSize="Title" HorizontalOptions="CenterAndExpand" VerticalOptions="CenterAndExpand"/>
                <Entry Grid.Row="2" Grid.Column ="0" x:Name="txtName" Placeholder="User Name" HorizontalOptions="CenterAndExpand" VerticalOptions="CenterAndExpand" WidthRequest="200" />
                <Entry Grid.Row="3" Grid.Column ="0"   x:Name="txtPassword" Placeholder="Password"  HorizontalOptions="CenterAndExpand" VerticalOptions="CenterAndExpand" WidthRequest="200" IsPassword="True"  />
                <telerik:RadButton Grid.Row="4" Grid.Column ="0" Text="Login" HorizontalOptions="CenterAndExpand" VerticalOptions="Center" Clicked="OnLoginClicked"/>
                
                 <telerikPrimitives:RadBusyIndicator Grid.Row="7" Grid.Column ="0" x:Name="busyIndicator" IsVisible="false"
                                  AnimationContentHeightRequest="100"
                                  AnimationContentWidthRequest="100"
                                  AnimationContentColor="{DynamicResource PrimaryColor}"
                                                    IsBusy="false">
                    <telerikPrimitives:RadBusyIndicator.Content>
                        <Label Text="Loading..." TextColor="Black" />
                    </telerikPrimitives:RadBusyIndicator.Content>
                </telerikPrimitives:RadBusyIndicator>
            </Grid>
        </telerik:RadBorder>
        <Image  Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="3" Margin="0,0,0,10" Opacity="0.7" Source="wave.png" Aspect="Fill"/>
        </Grid>

        <telerikPrimitives:RadPopup.Popup Margin="10" Grid.Row="1" >
            <telerikPrimitives:RadPopup x:Name="popupError"
                                  IsModal="True"
                                  OutsideBackgroundColor="#6F000000"
                                            Placement='Center'>
                <telerikMauiControls:RadBorder CornerRadius="8"
                                         BackgroundColor="{DynamicResource PrimaryColor}">
                    <telerikMauiControls:RadScrollView >
                        <Grid Padding="20"
                                WidthRequest="200"
                                HeightRequest="170">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="40" />
                                <RowDefinition Height="70" />
                            </Grid.RowDefinitions>
                            <Button Grid.Row="0"
                                    Padding="2"
                                   HorizontalOptions="End"
                                   Text="X"
                                   Clicked="OnClosePopup" 
                                  BackgroundColor="{DynamicResource PrimaryColor}" TextColor="White" />
                            <Label x:Name="labelError" Grid.Row="1" Text="" TextColor="White" HorizontalOptions="CenterAndExpand" VerticalOptions="CenterAndExpand"/>
                        </Grid>
                    </telerikMauiControls:RadScrollView>
                </telerikMauiControls:RadBorder>
            </telerikPrimitives:RadPopup>
        </telerikPrimitives:RadPopup.Popup>

    </Grid>
  
</ContentPage>


Daniel
Top achievements
Rank 1
Silver
Bronze
 updated question on 10 Mar 2022
1 answer
283 views

Hi,

Expander control - do you have control like  that ?

Thanks,

Lance | Senior Manager Technical Support
Telerik team
 answered on 10 Mar 2022
1 answer
97 views

Hi,

What are steps for moving project MAUI in preview + telerik controls to release ?

Thanks,

Lance | Senior Manager Technical Support
Telerik team
 answered on 10 Mar 2022
1 answer
112 views

Hi,

I used your document: https://docs.telerik.com/devtools/maui/controls/chart/chart-getting-started

And the chart not look ok, it get out of view in the bottom I want to see the name properly.


<ContentView.Content>
        <Grid RowSpacing="25" RowDefinitions="auto, auto, auto,auto, auto,*" ColumnDefinitions="*">
           
            <Label Grid.Row="3" Grid.Column="0" Text="Total Files Divided By Routes" HorizontalOptions="CenterAndExpand" VerticalOptions="CenterAndExpand"/>
            <telerikChart:RadCartesianChart Grid.Row="4" Grid.Column="0">
                <telerikChart:RadCartesianChart.BindingContext>
                    <local:CategoricalDataViewModel />
                </telerikChart:RadCartesianChart.BindingContext>
                <telerikChart:RadCartesianChart.HorizontalAxis>
                    <telerikChart:CategoricalAxis PlotMode="OnTicks"
                                    MajorTickInterval="2"
                                    GapLength="0.5"/>
                </telerikChart:RadCartesianChart.HorizontalAxis>
                <telerikChart:RadCartesianChart.VerticalAxis>
                    <telerikChart:NumericalAxis LabelFitMode="MultiLine" />
                </telerikChart:RadCartesianChart.VerticalAxis>
                <telerikChart:RadCartesianChart.Series>
                    <telerikChart:BarSeries ValueBinding="Value"
                                    CategoryBinding="Category"
                                    ItemsSource="{Binding Data}" />
                </telerikChart:RadCartesianChart.Series>
            </telerikChart:RadCartesianChart>
        </Grid>
    </ContentView.Content>

Didi
Telerik team
 answered on 10 Mar 2022
1 answer
390 views

Hi,

How to change he background of the selected TabViewItem?

Thanks,

Yana
Telerik team
 answered on 10 Mar 2022
1 answer
88 views

Hi,

You have spelling mistake see:

 

Yana
Telerik team
 answered on 10 Mar 2022
1 answer
542 views

Hi,

How I take the value of DateTimePicker in run time when I press on other button.

Thanks,

Yana
Telerik team
 answered on 10 Mar 2022
1 answer
89 views

Hi,

Didi
Telerik team
 answered on 09 Mar 2022
0 answers
119 views

Hi,

Problem:When I lick on button outside the grid only on second click I get data? why?


var historyReportViewModel = new HistoryReportViewModel();
        var historyReportResults = historyReportViewModel.CreateHistotyReport(resultsSelection, portalSelection, fromDateTimeSelection,
             selectionTypeSelection, routeSelection, toDateTimeSelection);

resultsDataGrid.ItemsSource = historyReportResults;



 <telerikDataGrid:RadDataGrid Grid.Row="4" Grid.Column="0" x:Name="resultsDataGrid" Margin="10"
                AutoGenerateColumns="False">
                <telerikDataGrid:RadDataGrid.BindingContext>
                    <local:HistoryReportViewModel />
                </telerikDataGrid:RadDataGrid.BindingContext>
                <telerikDataGrid:RadDataGrid.Columns>
                    <telerikDataGrid:DataGridTextColumn PropertyName="Succeded" HeaderText="Succeded"/>
                    <telerikDataGrid:DataGridTextColumn PropertyName="Type" HeaderText="Type"/>
                    <telerikDataGrid:DataGridTextColumn PropertyName="EndTime" HeaderText="End Time"/>
                    <telerikDataGrid:DataGridTextColumn PropertyName="File" HeaderText="File"/>
                    <telerikDataGrid:DataGridTextColumn PropertyName="Route" HeaderText="Route"/>
                    <telerikDataGrid:DataGridTextColumn PropertyName="FailedFolder" HeaderText="FailedFolder"/>
                    <telerikDataGrid:DataGridTextColumn PropertyName="Portal" HeaderText="Portal"/>
                </telerikDataGrid:RadDataGrid.Columns>
            </telerikDataGrid:RadDataGrid>

 

Daniel
Top achievements
Rank 1
Silver
Bronze
 updated question on 09 Mar 2022
1 answer
115 views

Hi,


        <Grid telerik:RadDockLayout.Dock="Left"  WidthRequest="250" >
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <VerticalStackLayout >
                <telerik:RadButton AutomationId="button" Text="Dashboard" Clicked="OnDashboaredClicked" ImageSource="dashboard.png"  WidthRequest="200" HeightRequest="50" FontSize="Micro"/>
                <telerik:RadButton AutomationId="button" Text="Routes"   Clicked="OnRoutesClicked" ImageSource="routes.png"   WidthRequest="200" HeightRequest="50"  FontSize="Micro"/>
                <telerik:RadButton AutomationId="button" Text="Schedulers"  Clicked="OnScedulersClicked" ImageSource="schedules.png"  WidthRequest="200" HeightRequest="50"  FontSize="Micro"/>
                <telerik:RadButton AutomationId="button" Text="Settings"  Clicked="OnSettingsClicked" ImageSource="settings.png" WidthRequest="200" HeightRequest="50"  FontSize="Micro"/>
                <telerik:RadButton AutomationId="button" Text="History"  Clicked="OnHistoryClicked" ImageSource="history.png"  WidthRequest="200" HeightRequest="50"  FontSize="Micro"/>
            </VerticalStackLayout>
            <Image Grid.Row="1" Source="smallwave.png" Aspect="Fill" HorizontalOptions="Fill" VerticalOptions="End" HeightRequest="70" />
        </Grid>

 

 

 

 

Petar Marchev
Telerik team
 answered on 07 Mar 2022
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?