Telerik Forums
UI for Xamarin Forum
3 answers
65 views
Hello! Is there a way to align the stroke of a selected cell? I have problems displaying the selected cell correctly. (Please see attachment)

 
Stefan Nenchev
Telerik team
 answered on 21 Aug 2017
2 answers
99 views
Hello!

How can I set the Number Text Position on Android? I am using a CustomizationRule for all my cells but I can't figure out how to set the position of the numbers (Center). I am currently doing it like this:

cell.TextPosition = 1;
cell.TextPositionX();
cell.TextPositionY();
cell.SecondaryTextPosition = 1;

 

Any thoughts on this?

Adam
Top achievements
Rank 1
 answered on 17 Aug 2017
2 answers
253 views

Hello! 

While using a Custom Renderer on Android the vertical scroll of the month calendar seems to be VERY slow, don't know what is happening but seems to me that using a Custom CustomizationRule or a CustomAdapter the Month Calendar behaves more slower than normal.

I am using latest Xamarin.Forms (2.3.5.256 pre-6), Visual Studio for Mac and Latest Xamarin.Android version (updates from 08/14/2017).

I am only using this on the custom renderer to experience the slowlness:

 

protected override void OnElementChanged(ElementChangedEventArgs<RadCalendar> e)
{
    base.OnElementChanged(e);
    if (Element == null || e.OldElement != null) return;
 
    _element = (CalendarCustomRenderer)Element;
    _control = Control;
    _control.CustomizationRule = new CustomizationRule();
 
}
 
public class CustomizationRule : Java.Lang.Object, IProcedure
{
    Java.Util.Calendar calendar = Java.Util.Calendar.Instance;
 
    public void Apply(Java.Lang.Object p0)
    {
        Calendar.CalendarDayCell cell = p0.JavaCast<Calendar.CalendarDayCell>();
         
        var boldTypeface = Typeface.CreateFromAsset(Forms.Context.Assets, "Branding-Bold.otf");
        var mediumTypeface = Typeface.CreateFromAsset(Forms.Context.Assets, "Branding-Medium.otf");
        var semiBoldTypeface = Typeface.CreateFromAsset(Forms.Context.Assets, "Branding-SemiBold.otf");
 
        if (cell is CalendarTitleCell titleCell)
        {
            cell.TextColor = Colors.DarkBlueColor.ToAndroid();
            cell.Typeface = boldTypeface;
            cell.TextSize = TypedValue.ApplyDimension(ComplexUnitType.Sp, 16, Forms.Context.Resources.DisplayMetrics);
            cell.Text = cell.Text.ToUpper();
        }
 
        else if (cell is Calendar.CalendarDayCell dayCell)
        {
            cell.Typeface = mediumTypeface;
            cell.TextSize = TypedValue.ApplyDimension(ComplexUnitType.Sp, 15, Forms.Context.Resources.DisplayMetrics);
        }
        calendar.TimeInMillis = cell.Date;
    }
}
Nikolay
Telerik team
 answered on 17 Aug 2017
12 answers
127 views

Hi support:

Today I upgraded the Xamarin UI from R3 2016 to the R2 2017.  The problem is that under Android I cant find a way to change the ShapeSize nor ShapeType of the appointment indicator of the Month view.  In the past I could display a rectangle as 

this.calendar.AppointmentsStyle.ShapeSize = new Size(5, 1);

To show a line in the calendarcell to be able to show many appointments, but now the cell  can only hold two rectangles, so its like is ignoring my properties values.

I tried to change the Shape Type without luck like this:

this.calendar.AppointmentsStyle = new CalendarAppointmentsStyle

            {
                DisplayMode = AppointmentDisplayMode.Shape,
                Padding = new Thickness(5, 5, 5, 5),
                MaxCount = 20,
                Spacing = 1,
                ShapeType = CalendarAppointmentShapeType.Ellipse,
            };

What could I be missing here.

Thanks

David

Stefan Nenchev
Telerik team
 answered on 17 Aug 2017
2 answers
107 views

Hello 

can i make a lazy loading to my AutoComplete control items source from a web service

ex:

if i have 100 thousand patient and i want to search in this list 

i think i should send the typed text to my web service and returned the searched list and display it in the autocomplete displayer 

does it applicable or not

Thanks

N Mackay
Top achievements
Rank 1
 answered on 16 Aug 2017
1 answer
113 views

Hi,

 

I am working on RadListview Multi selection and swipe actions.

I am showing the RadListview with swipe actions initially. its working fine.

Now I want to enable multi selection on the same list view by showing/changing actions on Navigation bar when user selects one or more Items.

So

1) how to enable Multi selection first dynamically when user clicks/selects an Item.

2) How to change the Navigation bar actions when Item/Items are selected.

 

Thank you,

Nikolay Demirev
Telerik team
 answered on 16 Aug 2017
2 answers
130 views
I am trying to pass dynamic values for a SplineAreaSeries chart in a viewmodel and reference that viewmodel in my xaml. But so far viewmodel constructor with parameters is not working for me in the designs while using it inside TelerikBindingContext. Constructor without parameters always works! But I need it for  constructor with parameters for my project! Any suggestions or example will be very nice.. Thanks in advance.
Stefan Nenchev
Telerik team
 answered on 15 Aug 2017
5 answers
151 views

I've just experienced OutOfMemoryException at RadListView on iOS.

 

I'm not able to reproduce it again, it's completelly ramdom issue, and even doing the same things, didn't cause issue occuring again.

Below stacktrace from HockeyApp:

 

Application Specific Information:
*** Terminating app due to uncaught exception 'System.OutOfMemoryException', reason: 'System.OutOfMemoryException: Out of memory'
 
Xamarin Exception Stack:
  at (wrapper alloc) System.Object:AllocVector (intptr,intptr)
  at System.Collections.Generic.Dictionary`2[TKey,TValue].Resize (System.Int32 newSize, System.Boolean forceNewHashCodes) <0x1004409c0 + 0x0008f> in <2f4074c3120b4d80802e10af84b67d41#fdbbfcde2555a858848d8a7e8bde1613>:0
  at System.Collections.Generic.Dictionary`2[TKey,TValue].Resize () <0x100440980 + 0x00033> in <2f4074c3120b4d80802e10af84b67d41#fdbbfcde2555a858848d8a7e8bde1613>:0
  at System.Collections.Generic.Dictionary`2[TKey,TValue].Insert (TKey key, TValue value, System.Boolean add) <0x1004400a0 + 0x0032b> in <2f4074c3120b4d80802e10af84b67d41#fdbbfcde2555a858848d8a7e8bde1613>:0
  at System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) <0x10043f1a0 + 0x00027> in <2f4074c3120b4d80802e10af84b67d41#fdbbfcde2555a858848d8a7e8bde1613>:0
  at Xamarin.Forms.ResourcesExtensions.GetMergedResources (Xamarin.Forms.IElement element) <0x10059f890 + 0x001eb> in <937957814f5d45be82b66795cb584841#fdbbfcde2555a858848d8a7e8bde1613>:0
  at Xamarin.Forms.Element.set_Parent (Xamarin.Forms.Element value) <0x1005fd760 + 0x00107> in <937957814f5d45be82b66795cb584841#fdbbfcde2555a858848d8a7e8bde1613>:0
  at Telerik.XamarinForms.DataControlsRenderer.iOS.ListView.ListViewCellRenderer.GetOrCreateCell (Telerik.XamarinForms.DataControls.RadListView owner, Telerik.XamarinForms.DataControlsRenderer.iOS.ListView.UIListViewCell ncell, System.Object dataItem) <0x10164bef0 + 0x00343> in <115ddaaac3ec4300a5cfeca81b6750fc#fdbbfcde2555a858848d8a7e8bde1613>:0
  at Telerik.XamarinForms.DataControlsRenderer.iOS.ListView.UIListViewCell.UpdateCell (Telerik.XamarinForms.DataControls.RadListView owner, System.Object dataItem) <0x10164ecd0 + 0x0004b> in <115ddaaac3ec4300a5cfeca81b6750fc#fdbbfcde2555a858848d8a7e8bde1613>:0
  at Telerik.XamarinForms.DataControlsRenderer.iOS.ListViewDataSource.CreateCellForItem (TelerikUI.TKListView listView, Foundation.NSIndexPath indexPath, Foundation.NSObject obj) <0x101647690 + 0x000f7> in <115ddaaac3ec4300a5cfeca81b6750fc#fdbbfcde2555a858848d8a7e8bde1613>:0
  at Telerik.XamarinForms.DataControlsRenderer.iOS.ListViewDataSource.CreateCellForItemCallback (TelerikUI.TKListView listView, Foundation.NSIndexPath indexPath, Foundation.NSObject obj) <0x1016473c0 + 0x00077> in <115ddaaac3ec4300a5cfeca81b6750fc#fdbbfcde2555a858848d8a7e8bde1613>:0
  at ObjCRuntime.Trampolines+SDFuncArity4V2.Invoke (System.IntPtr block, System.IntPtr arg1, System.IntPtr arg2, System.IntPtr arg3) <0x101799120 + 0x000a7> in <ecd5b6bb7bca4e31bddbff54b66a188f#fdbbfcde2555a858848d8a7e8bde1613>:0
  at (wrapper native-to-managed) ObjCRuntime.Trampolines+SDFuncArity4V2:Invoke (intptr,intptr,intptr,intptr)
--- End of stack trace from previous location where exception was thrown ---
  at (wrapper managed-to-native) UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr)
  at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) <0x100c65720 + 0x0002b> in <58a9bd8a3cbb4d0092bc0a767ff66c0f#fdbbfcde2555a858848d8a7e8bde1613>:0
  at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) <0x100c65660 + 0x000ab> in <58a9bd8a3cbb4d0092bc0a767ff66c0f#fdbbfcde2555a858848d8a7e8bde1613>:0
  at Meercat.iOS.Application.Main (System.String[] args) <0x10025c1c0 + 0x00023> in <656568806e264fe8bacd615d82af51c4#fdbbfcde2555a858848d8a7e8bde1613>:0
Nikolay Demirev
Telerik team
 answered on 14 Aug 2017
3 answers
806 views

I have this Xaml definition here and no matter how much padding to the bottom I put, the ListView doesn't move up. Half of the last cell in the ListView is cutoff, and I am not sure why. I tried this exact Xaml definition, but just swapped the RadListView out for a native ListView, and the problem was resolved. Why is this?? This is what I am seeing.

Stefan Nenchev
Telerik team
 answered on 14 Aug 2017
2 answers
226 views

Hi,

 

I am trying to create swipe functionality in listview, The challenge is I have to add 3 columns in left swipe. right now what is happening that I am getting one column on right side and one columns in left side. Please help

 

Regards,

Amit

Stefan Nenchev
Telerik team
 answered on 14 Aug 2017
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?