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
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?
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!
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
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
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
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
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