Telerik Forums
UI for Xamarin Forum
4 answers
607 views

Hi, 

is it possible to align the checkboxes to the right off the screen. At the moment is proven difficult for some user with big finger to tap the checkbox and they end up collapsing the item. 

Thank you.

Hernando .

Hernando
Top achievements
Rank 1
Iron
Iron
 answered on 09 Apr 2019
3 answers
353 views

hi

When i set background color of RadEntry it appear as square, rounded border is inside of square.

how to set background color under rounded border (without exceeding borders)

Yana
Telerik team
 answered on 09 Apr 2019
2 answers
78 views

Hi,

I'm populating a list from the database using RadLIstView and trying to group the populated list of items by previous day, today and tomorrow. I'm calculating these 3 categories by an attribute Date which I'm getting from database. Is There any way to pass all three calculated categories in the list and group them accordingly. Please let me know if there are any properties in  RadListView.

Nethra
Top achievements
Rank 1
 answered on 08 Apr 2019
1 answer
234 views

Hi there

We are using custom font in our entire app. but when we tried to set up custom font for RadEntry, seems like it is not working but it is working fine for xamarin forms 'entry'. For android our  'Fonts' folder is inside of asset folder & in ios it is inside Resource folder

 

<input:BorderStyle x:Key="EntryBorderStyle"
              BorderThickness="0,0,0,2.2" BorderColor="#A9A9A9" />

  <Style TargetType="input:RadEntry">

                <Setter Property="BorderStyle" Value="{StaticResource EntryBorderStyle}"/>
                <Setter Property="WatermarkTextColor" Value="#A9A9A9"/>
                <Setter Property="Margin" Value="0,0,0,6"/>
                <Setter Property="Padding"  Value="0,0,0,5"/>
                <Setter Property="FontSize" Value="Medium"/>
                <Setter Property="FontFamily">
                    <Setter.Value>
                        <OnPlatform x:TypeArguments="x:String" 
                                   Android="Fonts/Lato-Regular.ttf#Lato" 
                                   iOS="Fonts/Lato-Regular"/>
                    </Setter.Value>
                </Setter>
                <Setter Property="FontSize" Value="Medium"/>
            </Style>

Lance | Senior Manager Technical Support
Telerik team
 answered on 04 Apr 2019
1 answer
401 views

Hallo,

 

i have a stack with 2 Checkboxes YES/NO i want only check one Checbox.

i use mvvm i can not handle the CheckedChange event to uncheck the other Checkbox if Checked.

 

may be using Commands or something can u give me please a example?

Thanks

Yana
Telerik team
 answered on 04 Apr 2019
3 answers
224 views

Hi,

I am playing around with the PopUp but I have several basic issues:

 

  1. I would like the Modal PopUp to close when I click outside the PopUp (This is how the Non-Modal popup behaves??).
  2. When I add a "Non-Modal" popup, I would like my page to stay active (right now the PopUp will close when I click outside the PopUp, but the content on my page is not active until the PopUp is closed.)
  3. I find it difficult to position the PopUp - How can I place it horizontally centered with a margin to the left and the right and vertically on top with a margin? (If I add Margin to the border inside the PopUp's content, then the "Non-Modal "popup wont close when I click on the area defined by the "Margin")

Best regards,

 

Yana
Telerik team
 answered on 04 Apr 2019
5 answers
177 views

Hi,

Do you hve a sample project that is present in google play / app store that represents xamarin forms? we wnat to evaluate the tools first before we purhcase it..

 

thanks

Lance | Senior Manager Technical Support
Telerik team
 answered on 03 Apr 2019
3 answers
153 views
there is a package AutoFac - responsible for creating all the components of the application
there is a package Cirrious.FluentLayouts.Touch - is responsible for the automatic location (of the type of automatic display) of all displayed components
there is a package Google.Maps

this link leads to a issue with a marker - the marker is drawn higher than needed

When creating a Google Map Controller, and then when using it as a child controller, the marker is drawn incorrectly. And more specifically, then:
1) create a controller (parent)
2) this controller has a view with frame with an upper indent of 64 (any value)
`View.frame = ((0, 64), (width, height))`
3) create a controller with google maps
4) create mapview 
`mapView = new MapView(new CGRect(0, 0, parentView.Frame.Width, parentView.Frame.Height))`
5) add a controller with google maps to the parent
`parentController.AddChildViewController(googleMapsViewController)`
6) add a view of google maps to the parent controller
`parentController.Add(mapView)`
`parentView.AddConstraints(mapView.FullSizeOf(parentView))`
7) inside the controller with google maps initiate display a marker
```
var mapCenter = new CGPoint(mapView.Center.X, mapView.Center.Y);
var mapCenterCoordinate = mapView.Projection.CoordinateForPoint(mapCenter);

var googleMarker = new Marker()
            {
                Title = "title",
                Snippet = "someText",
                Position = mapCenterCoordinate,
                Icon = ...someImage,
                Tappable = true,
                Map = mapView
            };
```
8) the marker is displayed incorrectly (empirically found that the readout of the Y coordinate comes from 0 and not from 64 as expected)

When creating a mapview with a frame with an upper indent of 64, the marker is drawn correctly, but then inside the map delegate the position definition is shifted along the Y axis by the same 64 points.
Lance | Senior Manager Technical Support
Telerik team
 answered on 02 Apr 2019
2 answers
338 views

Hello,

I have a RadDataGrid which has 2 text columns and a template column which has a switch inside it. What I'm trying to achieve is, when I click a button, that's below the grid, I want to get all the grid's data in the code behind and handle it according to the corresponding switch's status. How can I get the row data in code?  

<telerikGrid:RadDataGrid x:Name="dataGrid" AutoGenerateColumns="False">
    <telerikGrid:RadDataGrid.SelectionStyle>
        <telerikGrid:DataGridBorderStyle BackgroundColor="#ffc46d" />
    </telerikGrid:RadDataGrid.SelectionStyle>
    <telerikGrid:RadDataGrid.AlternateRowBackgroundStyle>
        <telerikGrid:DataGridBorderStyle BackgroundColor="#ffc46d" />
    </telerikGrid:RadDataGrid.AlternateRowBackgroundStyle>
    <telerikGrid:RadDataGrid.Columns>
        <telerikGrid:DataGridTextColumn SizeMode="Stretch" PropertyName="StandardCode" HeaderText="{i18n:TranslateExtension StandardCode}">
            <telerikGrid:DataGridTextColumn.HeaderStyle>
                <telerikGrid:DataGridColumnHeaderStyle
                       HorizontalTextAlignment="Center"
                       TextColor="Black"
                       TextFontAttributes="Bold"/>
            </telerikGrid:DataGridTextColumn.HeaderStyle>
            <telerikGrid:DataGridTextColumn.CellContentStyle>
                <telerikGrid:DataGridTextCellStyle
                   TextColor="Black"
                   VerticalTextAlignment="Start"
                   HorizontalTextAlignment="Start">
                </telerikGrid:DataGridTextCellStyle>
            </telerikGrid:DataGridTextColumn.CellContentStyle>
        </telerikGrid:DataGridTextColumn>
        <telerikGrid:DataGridTemplateColumn SizeMode="Fixed" Width="150" HeaderText="{i18n:TranslateExtension Status}">
            <telerikGrid:DataGridTemplateColumn.HeaderStyle>
                <telerikGrid:DataGridColumnHeaderStyle
                       HorizontalTextAlignment="Center"
                       TextColor="Black"
                       TextFontAttributes="Bold"/>
            </telerikGrid:DataGridTemplateColumn.HeaderStyle>
            <telerikGrid:DataGridTemplateColumn.CellContentTemplate>
                <DataTemplate>
                    <StackLayout HorizontalOptions="Center">
                        <Switch></Switch>
                    </StackLayout>
                </DataTemplate>
            </telerikGrid:DataGridTemplateColumn.CellContentTemplate>
        </telerikGrid:DataGridTemplateColumn>
        <telerikGrid:DataGridTextColumn SizeMode="Auto"  PropertyName="StandardName"  HeaderText="{i18n:TranslateExtension StandardName}">
            <telerikGrid:DataGridTextColumn.HeaderStyle>
                <telerikGrid:DataGridColumnHeaderStyle
                       HorizontalTextAlignment="Start"
                       TextColor="Black"
                       TextFontAttributes="Bold"/>
            </telerikGrid:DataGridTextColumn.HeaderStyle>
            <telerikGrid:DataGridTextColumn.CellContentStyle>
                <telerikGrid:DataGridTextCellStyle
                   TextColor="Black"
                   VerticalTextAlignment="Start"
                   HorizontalTextAlignment="Start"
                    FontSize="12">
                </telerikGrid:DataGridTextCellStyle>
            </telerikGrid:DataGridTextColumn.CellContentStyle>
        </telerikGrid:DataGridTextColumn>
    </telerikGrid:RadDataGrid.Columns>
</telerikGrid:RadDataGrid>
Lance | Senior Manager Technical Support
Telerik team
 answered on 01 Apr 2019
3 answers
1.5K+ views

Hi, how I can hide the overlay keyboard from appearing after set the focus oin the NumericInput.

For now I try with Depedency on cross platform without success

RadNumericInput ntb = Qte as RadNumericInput;
if (ntb != null)
{
    ntb.Focus();
    var key = Xamarin.Forms.DependencyService.Get<IForceKeyboardDismissalService>();
    key.DismissKeyboard();
}

 

then on droid:

[assembly: Xamarin.Forms.Dependency(typeof(AndroidForceKeyboardDismissalService))]
namespace KelvinMobile.Droid
{
    public class AndroidForceKeyboardDismissalService : IForceKeyboardDismissalService
    {
        public void DismissKeyboard()
        {
            InputMethodManager imm = InputMethodManager.FromContext(CrossCurrentActivity.Current.Activity.ApplicationContext);
 
            imm.HideSoftInputFromWindow(CrossCurrentActivity.Current.Activity.Window.DecorView.WindowToken, HideSoftInputFlags.NotAlways);
        }
    }
}

 

The call work, but the keyboard still there...

 

Yana
Telerik team
 answered on 28 Mar 2019
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?