We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridPicker not work...

Thread ID:

Created:

Updated:

Platform:

Replies:

142846 Feb 21,2019 10:08 PM UTC Feb 26,2019 11:52 AM UTC Xamarin.Forms 5
loading
Tags: SfDataGrid
Paul Dietz
Asked On February 21, 2019 10:15 PM UTC

I have a Xamarin application that has a datagrid.  I'm trying to make the test type a gridpicker column.  Currently the datagrid displays the TestTypeID.   



I added the gridpickercolumn to the testinfo.xaml file


I created the following TestTypeInfoCS class to load Observable Collection



I load the observable collections in TestInfoViewModel class


When I run the application I get the following unhandled exception.  


I was trying to follow the gridpicker example in the documentation. page 878-885  I'm need to develop the application to demo to the company I work for in order to get approval to purchase licenses for the Roush development team.  I appreciate your assistance with this issue.

Subburaj Pandian Veluchamy [Syncfusion]
Replied On February 22, 2019 12:22 PM UTC

Hi Paul, 
  
Thank you for contacting Syncfusion support. 
 
Currently, we are checking the on mentioned issue with DataGrid in Xamarin.Forms with the provided information. We will validate and let you know the details in one business day (February 25, 2019). We appreciate your patience until then.  
 
Regards,
Subburaj Pandian V   
 


Paul Dietz
Replied On February 23, 2019 06:18 PM UTC

I wanted to share with you additional test results in hopes of expediting resolving this issue.

I read in one of the post on the formum that the gridpicker valuemembepath attribute and datagrid mappingname needed to be set to the same attribute name.  I also updated the ItemSource of the gridpicker to the TestTypeInfoCollect.  Lastly I set the DisplayMemberPath to TestTypeShortDescription. Please see the xmal image below:



I updated the TestInfoViewModel, moving the LoadTestTypeInfo into LoadTestInfo.  This change was required to populate both collections.
See image below:


I set a break point after the LoadTestInfo successfully complete.  The quick watch shows the information stored in the collection.  See image below:


The next image shows the TestTypeInfoCollection info:


When I run the application I get the following exception. 


I appreciate your assistance in resolving this matter.

Pradeep Kumar Balakrishnan [Syncfusion]
Replied On February 25, 2019 05:24 PM UTC

Hi Paul, 
 
Thank you for the update. 
 
We have checked the reported issue “Exception is raised in master details page when we load the datagrid with picker column.” And it was working fine from our side, and we have created and attached the sample for your reference in that we have loaded DataGrid when we select an list view item in master details page. 
 
 
In case, if you still experience the issue from your side, please modify the attached sample to reproduce the issue from your side so that it will be helpful for us to validate the issue and provide you solution at earlier. 
 
Regards, 
Pradeep Kumar B 


Paul Dietz
Replied On February 25, 2019 07:44 PM UTC

I wanted to share with you additional test results in hopes of expediting resolving this issue.

I read in one of the post on the formum that the gridpicker valuemembepath attribute and datagrid mappingname needed to be set to the same attribute name.  I also updated the ItemSource of the gridpicker to the TestTypeInfoCollect.  Lastly I set the DisplayMemberPath to TestTypeShortDescription. Please see the xmal image below:



I updated the TestInfoViewModel, moving the LoadTestTypeInfo into LoadTestInfo.  This change was required to populate both collections.
See image below:


I set a break point after the LoadTestInfo successfully complete.  The quick watch shows the information stored in the collection.  See image below:


The next image shows the TestTypeInfoCollection info:


When I run the application I get the following exception. 


I appreciate your assistance in resolving this matter.

I resolved the issue see images below:





I updated the bindingcontext adding the dataGrid:

Subburaj Pandian Veluchamy [Syncfusion]
Replied On February 26, 2019 11:52 AM UTC

Hi Paul, 
 
Thank you for the update. We are happy that the mentioned issue is resolved at your end. In the provided sample also Grid item source updated based on the values. 
 
Please let us know, if you further query. 
 
Regards,
Subburaj Pandian V  


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;