Telerik Forums
UI for .NET MAUI Forum
1 answer
260 views

Hi,

How I use validations with your controls ?

Thanks,

Lance | Senior Manager Technical Support
Telerik team
 answered on 17 Mar 2022
1 answer
992 views

Hi,

1.  want to know how I do pagination to RadDataGrid ? for 20/50/200 rows.

2.Scroll view

Thanks,

Lance | Senior Manager Technical Support
Telerik team
 answered on 17 Mar 2022
1 answer
82 views

Hi,

 I want to remove the button that open the RadDateTimePicker  to hand like in css?

Is it possible?

Thanks,

Yana
Telerik team
 answered on 17 Mar 2022
2 answers
1.1K+ views

Hi,

  DataGrid selected item is null ? Why?
private void OnResultsDataGridSelectionChanged(object sender, Telerik.XamarinForms.DataGrid.DataGridSelectionChangedEventArgs e)
    {
        var resultsDataGrid = sender as Telerik.XamarinForms.DataGrid.RadDataGrid;
        if (resultsDataGrid != null)
        {
           var selectedItem = resultsDataGrid.SelectedItem.ToString();
           if(selectedItem != null)
           {

           }
        }
    }


 <telerikDataGrid:RadDataGrid Grid.Row="4" Grid.Column="0" x:Name="resultsDataGrid" Margin="10"
                AutoGenerateColumns="False" SelectionChanged="OnResultsDataGridSelectionChanged">

Yana
Telerik team
 answered on 17 Mar 2022
1 answer
83 views

Hi,

Why telerikInput:RadEntry - has Blue border ?

        <telerikInput:RadEntry Grid.Row="0" Grid.Column="2" x:Name="txtName" WatermarkText="Name" WidthRequest="200" Text="{Binding SchedulerName, Mode=TwoWay}"/>

            

Lance | Senior Manager Technical Support
Telerik team
 answered on 16 Mar 2022
1 answer
145 views

Hi,

I have two RadDateTimePicker from && two RadButton.

In the command button I filter the chart,

The data is ok but the chart is not refreshed.

The chart load OK on view loaded.

 <ContentView.BindingContext>
        <local:DashboardViewModel/>
    </ContentView.BindingContext>

 

<VerticalStackLayout ><HorizontalStackLayout><Label Text="From:" HorizontalOptions="CenterAndExpand" VerticalOptions="CenterAndExpand" /><telerikInput:RadDateTimePicker x:Name="fromDateTimePicker" HorizontalOptions="CenterAndExpand" VerticalOptions="CenterAndExpand" Margin="5" HeightRequest="60" WidthRequest="150" Date="{Binding FromDate, Mode=TwoWay}"/></HorizontalStackLayout><HorizontalStackLayout><Label Text="To:" HorizontalOptions="CenterAndExpand" VerticalOptions="CenterAndExpand" Margin="0,0,20,0"/><telerikInput:RadDateTimePicker x:Name="toDateTimePicker" HorizontalOptions="CenterAndExpand" VerticalOptions="CenterAndExpand" Margin="5" HeightRequest="60" WidthRequest="150" Date="{Binding ToDate, Mode=TwoWay}"/></HorizontalStackLayout><telerik:RadButton AutomationId="button" Text="Search" HorizontalOptions="CenterAndExpand" VerticalOptions="Center" BackgroundColor="#1ABB9C" Margin="5" Command="{Binding OnDashBoardCommand}"/></VerticalStackLayout>


           <telerikChart:RadCartesianChart Grid.Row="4" Grid.Column="0" x:Name="totalFilesDividedByRoutesChart">
                <telerikChart:RadCartesianChart.BindingContext>
                    <local:DashboardViewModel />
                </telerikChart:RadCartesianChart.BindingContext>
                <telerikChart:RadCartesianChart.HorizontalAxis>
                    <telerikChart:CategoricalAxis PlotMode="OnTicks"/>
                 </telerikChart:RadCartesianChart.HorizontalAxis>
                <telerikChart:RadCartesianChart.VerticalAxis>
                    <telerikChart:NumericalAxis LabelFitMode="MultiLine" />
                </telerikChart:RadCartesianChart.VerticalAxis>
                <telerikChart:RadCartesianChart.Series>
                    <telerikChart:BarSeries ValueBinding="Value"
                                    CategoryBinding="RouteName"
                                    ItemsSource="{Binding TotalFilesDividedByRoutesDataSource}" />
                </telerikChart:RadCartesianChart.Series>
            </telerikChart:RadCartesianChart>
 



public class DashboardViewModel: BaseViewModel
    {
OnDashBoardCommand = new Command(execute: () =>
            {
                    GetDataTotalFilesDividedByRoutesData();
            },
            canExecute: () => {
                if (!(FromDate.HasValue && ToDate.HasValue))
                {
                    return false;
                }
                return FromDate.Value <= ToDate.Value;
            });
TotalFilesDividedByRoutesDataSource = new ObservableCollection<TotalFilesDividedByRoutesData>();
             GetDataTotalFilesDividedByRoutesData();
}
 public ObservableCollection<TotalFilesDividedByRoutesData> TotalFilesDividedByRoutesDataSource { get; private set; }


  private void GetDataTotalFilesDividedByRoutesData()
        {
            if (!(FromDate.HasValue && ToDate.HasValue))
            {
                return ;
            }

.....

TotalFilesDividedByRoutesDataSource.Clear();
            TotalFilesDividedByRoutesDataSource = new ObservableCollection<TotalFilesDividedByRoutesData>(computedData.AsEnumerable());
}

Lance | Senior Manager Technical Support
Telerik team
 answered on 16 Mar 2022
1 answer
303 views

Hi,

1.  How do I set the text of telerikPrimitives:RadCheckBox?

2,. Documents: https://docs.telerik.com/devtools/maui/controls/checkbox/checkbox-overview

 

  <telerikPrimitives:RadCheckBox x:Name="checkboxSunday"  IsChecked="{Binding Sunday, Mode=TwoWay}"/>

3. On window it checked only after two clicks on checking why ?

4.How I style the background for all checkbock in app xaml?

Lance | Senior Manager Technical Support
Telerik team
 answered on 16 Mar 2022
1 answer
2.0K+ views

Hi,

I would like to get small of radio buttons group asshow in picture?

Thanks,

Lance | Senior Manager Technical Support
Telerik team
 answered on 16 Mar 2022
1 answer
640 views

Hi,

I would like to know when I use Telerik MAUI template, how it can open in full screen ?

Thanks,

Lance | Senior Manager Technical Support
Telerik team
 answered on 16 Mar 2022
0 answers
97 views

Hi,

There is problem with binding.


   <ContentView.BindingContext>
        <local:HistoryViewModel/>
    </ContentView.BindingContext>

<telerikInput:RadListPicker x:Name="typeListPicker" Placeholder="Select Type" HorizontalOptions="CenterAndExpand" VerticalOptions="CenterAndExpand" HeightRequest="40" WidthRequest="200" Margin="5" ItemsSource="{Binding TypesItems}" DisplayMemberPath="Value" SelectedItem="{Binding Types, Mode=TwoWay}"><telerikInput:RadListPicker.ItemTemplate><DataTemplate><Label Text="{Binding Value}" HorizontalTextAlignment="Center" VerticalTextAlignment="Center"/></DataTemplate></telerikInput:RadListPicker.ItemTemplate></telerikInput:RadListPicker>


 private SchedulerTypeItem _types; 
  public HistoryViewModel()
        {
     
InitTypesItem();
}

   private void InitTypesItem()
        {
            TypesItems = new ObservableCollection<TypesItem>()

            {
              new TypesItem { Value = "Push" },
              new TypesItem { Value = "Pull" },
             };
        }

  public SchedulerTypeItem Types
        {
            get
            {
                return _types;
            }
            set
            {
                if (_types != value)
                {
                    _types = value;
                    OnPropertyChanged();
                }
            }
        }

Commad
======
if (Types != null && !string.IsNullOrEmpty(Types.Value)) // throw init innitlized exception
            {
                historyReport = new ObservableCollection<HistoryReport>(historyReport.Where(hr => hr.Type == Types.Value));
            }


 

 

Daniel
Top achievements
Rank 1
Silver
Bronze
 updated question on 16 Mar 2022
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?