This is a migrated thread and some comments may be shown as answers.

RadSideDrawer cannot be added to IGridList

1 Answer 70 Views
SideDrawer
This is a migrated thread and some comments may be shown as answers.
Tom
Top achievements
Rank 1
Tom asked on 27 Feb 2019, 08:58 PM

I have been trying to get this example to work in my project using the content view and the content page both are getting me the same errro about the RadSideDrawer cannot be added to a collection of type IGridList. In My project I have a MainPage.xaml with a MasterDetailPage tag selected to the MenuPage.axml. Can you please let me know why I am getting this error.

https://www.telerik.com/blogs/getting-started-with-radsidedrawer-for-xamarin-forms

1 Answer, 1 is accepted

Sort by
0
Lance | Manager Technical Support
Telerik team
answered on 27 Feb 2019, 10:05 PM
Hello Tom,

Such an error is usually due to a general Xamarin programming error where an object is trying to be added to a Grid but is not a type supported by Grid or it was added in the wrong place in the Grid (most likely cause). See the IGridList definition in the Microsoft Documentation.

What I suspect happened here is that the code from the different steps in the blog post was inserted into the wrong part of the Grid, which results in the SideDrawer being in the wrong place, triggering the error calling out the SideDrawer, but isn't necessarily a problem with the .


Tutorial Source Code

I recommend comparing directly to the source code companion to the blog post instead of trying to copy/pasting the code from the blog post text. Most of the blog posts for such tutorials will have the full version of the application in a repo or we'll point you to a specific demo in the SDK Examples.

Note that the demo is 2 years old (this is a long time for Xamarin) and uses an old way of doing things in Xamarin.Forms. That version' won't work correctly with the latest release of Telerik UI for Xamarin and Xamarin.Forms.  Most of the code itself will still work, but you'd want to take into consideration the deprecated methods like using OnPlatform with Enums instead of strings.

For your convenience, I just copied out the code into a new Xamarin project to save you some time. Find it attached.

Further assistance

If you have any further trouble, I recommend leveraging your Priority Support license and open a Priority Support ticket here. This will let you attach code directly to the ticket and engineering will take a look at it within 24 hours.

I hope I was able to help clarify the problem and help you move forward.

Regards,
Lance | Technical Support Engineer, Principal
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
SideDrawer
Asked by
Tom
Top achievements
Rank 1
Answers by
Lance | Manager Technical Support
Telerik team
Share this question
or