Telerik Forums
UI for Xamarin Forum
1 answer
152 views
I'm trying this to make this sample from the site, but I couldn't find a example from Telerik Examples application.

Is there a code for it?
Petar Marchev
Telerik team
 answered on 27 Mar 2017
1 answer
100 views

Hello

We have chart in LinearLayout with layout_weight

<!--chart layout-->
    <FrameLayout 
        android:layout_weight="0.8"
        android:id="@+id/chart_consistency_layout"
        android:layout_width="0dp"
        android:layout_height="match_parent" />

    <!--Panel layout-->
    <LinearLayout
      android:layout_margin="10dp"
        android:orientation="vertical"
        android:id="@+id/chart_panel"
        android:layout_weight="0.2"
        android:layout_width="0dp"
        android:layout_height="match_parent"
      >

We add the chart to the FrameLayout

When the chart load this look good we have the chart and the panel in the left 
(look in the attached pic1)

When the orientation changed to landscape mode the chart not render until we touch 
The chart and start trackball left or right (look in the attached pic2)

And when the orientation changed to portrait mode the horizontal axis not render 
render until we touch 
The chart and start trackball left or right (look in the attached pic3)

How can we solve this problem?

Best Regards


Deyan
Telerik team
 answered on 27 Mar 2017
2 answers
157 views

After updating to the latest Telerik for Xamarin.Forms my Android project throws an exception when running:

 

03-21 11:49:29.863 I/MonoDroid( 3328): UNHANDLED EXCEPTION:

03-21 11:49:29.867 I/MonoDroid( 3328): System.NullReferenceException: Object reference not set to an instance of an object.
03-21 11:49:29.867 I/MonoDroid( 3328):   at (wrapper managed-to-native) Java.Interop.NativeMethods:java_interop_jnienv_call_nonvirtual_void_method_a (intptr,intptr&,intptr,intptr,intptr,Java.Interop.JniArgumentValue*)
03-21 11:49:29.867 I/MonoDroid( 3328):   at Java.Interop.JniEnvironment+InstanceMethods.CallNonvirtualVoidMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniObjectReference type, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue* args) [0x0008f] in /Users/builder/data/lanes/4009/3a62f1ea/source/Java.Interop/src/Java.Interop/Java.Interop/JniEnvironment.g.cs:12079 
03-21 11:49:29.867 I/MonoDroid( 3328):   at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeVirtualVoidMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) [0x00068] in /Users/builder/data/lanes/4009/3a62f1ea/source/Java.Interop/src/Java.Interop/Java.Interop/JniPeerMembers.JniInstanceMethods_Invoke.cs:31 
03-21 11:49:29.867 I/MonoDroid( 3328):   at Android.Views.View.OnMeasure (System.Int32 widthMeasureSpec, System.Int32 heightMeasureSpec) [0x0002a] in /Users/builder/data/lanes/4009/3a62f1ea/source/monodroid/src/Mono.Android/platforms/android-23/src/generated/Android.Views.View.cs:14800 
03-21 11:49:29.867 I/MonoDroid( 3328):   at Telerik.XamarinForms.DataControlsRenderer.Android.RadExtendedListView.OnMeasure (System.Int32 widthMeasureSpec, System.Int32 heightMeasureSpec) [0x00071] in <b664ae9a6fbb4834b3589dc3568115e7>:0 
03-21 11:49:29.867 I/MonoDroid( 3328):   at Android.Views.View.n_OnMeasure_II (System.IntPtr jnienv, System.IntPtr native__this, System.Int32 widthMeasureSpec, System.Int32 heightMeasureSpec) [0x00009] in /Users/builder/data/lanes/4009/3a62f1ea/source/monodroid/src/Mono.Android/platforms/android-23/src/generated/Android.Views.View.cs:14787 
03-21 11:49:29.867 I/MonoDroid( 3328):   at (wrapper dynamic-method) System.Object:c1e42a16-a523-4e8e-b034-412a0c9d22b2 (intptr,intptr,int,int)

 

Any clues?

Jesper Bolling
Top achievements
Rank 1
 answered on 26 Mar 2017
1 answer
176 views

Hello everyone!

I’ve created two RadListView on a MasterDetailPage (Xamarin Forms), one on master (side menu) and another on detail page. When I select an item on master, I expect a visible selection on detail item. Both lists have the same items, so that’s the reason that I want to synchronize them. 

My problem is when I tap an Item on master’s list, I can’t mirror the selection (selectedItem) on Detail’s list. I expect a visible selection on detail item, once I tap the correspondent on master. If I tap an item on detail, it’s visibly selected. If I tap again on the same item, it’s unselected, and these behaviors are ok.

I tried using the article’s solution below, but the behavior that I want is to keep the item selected once I tap the item on master. 

http://www.telerik.com/forums/how-to-deselect-radlistview-item

Let me show some code… The binding was made at code-behind, in the ViewModel:

this.SetBinding<IMenuPageViewModel>(DepententListView.SelectedItemProperty, vm => vm.SelectedDependent, BindingMode.TwoWay);

This one is the Property's ViewModel:

public IUser SelectedDependent
{
      get { return _selectedDependent; }
      set
      {
        if (_selectedDependent != value)
        {
          _selectedDependent = value;
          RaisePropertyChanged();
        }
      }
    }

}

And this one is the method that I try to change the selection:
public void ChangeDependent(IUser dependent)
{
   // I expect the item selection change here...
   this.SelectedDependent = dependent;

   // Trying force change...
   RaisePropertyChanged("SelectedDependent"); 
}

In the beginning, I thought the RadListView had a bug, but I send this to clarify if in fact is. In Xamarin.Forms’ ListView works fine.

Can anyone help me with this issue?

 

Thanks!

Rosy Topchiyska
Telerik team
 answered on 24 Mar 2017
1 answer
109 views
Can the data editors, specifically the segmented control, be used outside a data form?
Ivaylo Gergov
Telerik team
 answered on 24 Mar 2017
2 answers
127 views

Hi

I'm looking to place the RadDataForm inside a StackLayout as I want to be part of a page on my app, rather than the whole.

However when I add my dataForm to the StackLayout, it isn't displayed at all

I'm trying this ...

            var layout = new StackLayout();
            _dataForm = new RadDataForm();
            _dataForm.Source = new Login();

            layout.Children.Add(_dataForm);
            Content = layout;

If anyone could point out what I'm doing wrong, I'd be most grateful.

Thanks

Andy

Andy
Top achievements
Rank 1
 answered on 23 Mar 2017
1 answer
183 views

Hello,

 

I am working with Xamarin Forms and decided to try out the UI tools. I used the Telerik Nuget to install UI for Xamarin into the project and then did a build and it blew up. I think I missed a step or something. Screen shots show the errors and the package.config for the Android project in the solution.

 

Any help would be appreciated.

 

Thanks,

Chris

Lance | Senior Manager Technical Support
Telerik team
 answered on 23 Mar 2017
0 answers
83 views

Hello

We need to show horizontal bar series in ios and android on the chart 

The horizontal axis is DateTimeCategoricalAxis and the vertical is LinearAxis
The bar series should be from date time now to 7 days before on the horizontal axis
In range of min value on the vertical 150 height value on the vertical 420

We have 3 more series on this chart

The horizontal bar samples in android and the bar samples in ios use the vertical axis as the category axis in this case this upside down.
How can I implement this in ios and android ?

Best Regards

Itamar
Top achievements
Rank 1
 asked on 23 Mar 2017
1 answer
1.0K+ views

Hi,

I am using SQLite.Net  to store my records for RadListview in Xamarin PCL. I have to update records once users click on list item to modify it's status as already viewed item. Eventhough I have auto increment and primary key attributes on selected columns, autoincrement doesnot sem to work and it always stores '0' for it's value. I have three records in SQLite.Net ORM table each with unique ID, when I try to Update record, it throws 'it has no PK " error. 

I looked into Xamarin forum too but couldnot find any answers, has anyone encountered this error or knows how to fix it?

Here is my model:

public class NotificationSettings

{

[PrimaryKey, AutoIncrement]

public int ID { get; set; }

public string  NotificationName{ get; set; }

public string  NotificationValue{ get; set; }

public bool IsCleanData { get; set; } 

}

 

Public class NotificationModifier{

public  void Update() {

NotificationSettings  s = database.Table<NotificationSettings>().FirstOrDefault();

s.IsCleanData = false; //This data is initially  true and is marked false after user reviews it

 database.Update(s) }

}

 

 

Thanks,

Prava

 

 

Pavel R. Pavlov
Telerik team
 answered on 22 Mar 2017
3 answers
141 views

This is not about this sidedrawer.  I am not using side drawer.  I got new 2017 january version and I am getting this error

Tried to adding all necessary dlls but still same error.

 

  Severity Code Description Project File Line Suppression State
Error error: package com.telerik.android.primitives.widget.sidedrawer does not exist
com.telerik.android.primitives.widget.sidedrawer.DrawerChangeListener XamarinEvolve.Android C:\Project\Test.Android\obj\Debug\android\src\mono\com\telerik\android\primitives\widget\sidedrawer\DrawerChangeListenerImplementor.java 8

 

Thanks for your help

Mario
Top achievements
Rank 1
 answered on 21 Mar 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?