Adding new items to accordion causes an unhandled exception error?

I had an unhandled exception error trying to add new items to an accordions source in a project written in vb.net. The XAML for the accordion will cause the page to crash once I add an item to it. I believe this to be size related as some items will not load correctly (smashed together and certain size changes cause distortion). I have an image below to show what it looks like without the button but most of the other controls enabled. Note: remember to maximize the window to see the right side of the flip view and click the right arrow to go to manual where the accordion is.



The above image does not have the button enabled or a label but normally the its only the button that causes the program to generate an unhandled XAML error.


9 Replies

VR Vijayalakshmi Roopkumar Syncfusion Team November 7, 2017 12:08 PM UTC

Hi Jeffery

Thank you for contacting Syncfusion Support.

We have checked the reported query with SfAccordion by preparing the sample as provided in screenshot, but we were unable to reproduce the reported exception at our end. We are adding the SfAccordionItem using the button click which is placed as a content of SfAccordionItem. We have provided the video and sample for the same:

Sample: http://www.syncfusion.com/downloads/support/forum/133595/ze/SfAccordion_unhandled-788252972 

Kindly check the reported video and sample and let us know whether we are following correct replication steps to reproduce the issue. If not, kindly provide us the following details as follows:

1.Provide the issue reproducible sample by modify our sample along with detailed replications steps.
2. Stack trace of the exception that you have faced
3.Currently using Syncfusion product version details.

Regards,
Vijayalakshmi V.R.  



JC jeffery carlson November 7, 2017 06:40 PM UTC

I believe it to be a resize  problem as stated above because I am using the data template in my xaml code for the syncfusion accordion control. Please use all of the xaml in my provided code example especially for the page named evaluateitem. You can remove the one flipciew item that has no manual evaluation in it but I have another xaml view for mobile so no need to resize everything.



VR Vijayalakshmi Roopkumar Syncfusion Team November 8, 2017 06:10 AM UTC

Hi Jeffery,

Thank you for the update.

We could not find the attachment in your last update. So can you please attach the code example or sample again? It would be very helpful for us to provide you the prompt solution.

Regards,
Vijayalakshmi V.R.


JC jeffery carlson replied to Vijayalakshmi Roopkumar November 8, 2017 10:51 AM UTC

Hi Jeffery,

Thank you for the update.

We could not find the attachment in your last update. So can you please attach the code example or sample again? It would be very helpful for us to provide you the prompt solution.

Regards,
Vijayalakshmi V.R.

Sorry, here is the attachment and I have to link to my onedrive because it is too big to post here. Remember to use the second flipview item that is named ManualEvaluation.

Here is the link: evaluate item

Sorry for the inconvenience of not posting directly to the forum. 



VR Vijayalakshmi Roopkumar Syncfusion Team November 9, 2017 12:14 PM UTC

Hi Jefferey

Thank you for the update.

We have checked the reported query with SfAccordion using the provided sample in Essential Studio Version [15.3.0.26], by clicking the button named “Add Manual Item” which adds the sfaccordionitem in Accordion. But we are not able to reproduce the reported Unhandled exception at our end. We have enabled all exception and also taken the video for the same. Please download it from following location:

Video: http://www.syncfusion.com/downloads/support/forum/133595/ze/Video_unhandled1204699548 

We have also checked by adding the item for SfAccordion in DesignTime, but no crash occurred at our end. So please check the video and let us know whether we are following correct steps to reproduce the issue. If not please brief about replication steps and also please provide us the following details for providing the prompt solution at the earliest:

1. Stack trace of the exception that you have faced.
2. Currently using Syncfusion product version details.
3. OS version details.

Regards,
Vijayalakshmi V.R.
 



JC jeffery carlson replied to Vijayalakshmi Roopkumar November 9, 2017 09:27 PM UTC

Hi Jefferey

Thank you for the update.

We have checked the reported query with SfAccordion using the provided sample in Essential Studio Version [15.3.0.26], by clicking the button named “Add Manual Item” which adds the sfaccordionitem in Accordion. But we are not able to reproduce the reported Unhandled exception at our end. We have enabled all exception and also taken the video for the same. Please download it from following location:

Video: http://www.syncfusion.com/downloads/support/forum/133595/ze/Video_unhandled1204699548 

We have also checked by adding the item for SfAccordion in DesignTime, but no crash occurred at our end. So please check the video and let us know whether we are following correct steps to reproduce the issue. If not please brief about replication steps and also please provide us the following details for providing the prompt solution at the earliest:

1. Stack trace of the exception that you have faced.
2. Currently using Syncfusion product version details.
3. OS version details.

Regards,
Vijayalakshmi V.R.
 


I forgot to mention please enable the button that was commented out called BtnAddCondition and it might give you the error and I forgot to reenable that because it caused the error and I was backtracking. Do this using your current code. If it fails to produce an error I will send you a video in tomorrows attachment.



JC jeffery carlson replied to jeffery carlson November 9, 2017 10:23 PM UTC

Hi Jefferey

Thank you for the update.

We have checked the reported query with SfAccordion using the provided sample in Essential Studio Version [15.3.0.26], by clicking the button named “Add Manual Item” which adds the sfaccordionitem in Accordion. But we are not able to reproduce the reported Unhandled exception at our end. We have enabled all exception and also taken the video for the same. Please download it from following location:

Video: http://www.syncfusion.com/downloads/support/forum/133595/ze/Video_unhandled1204699548 

We have also checked by adding the item for SfAccordion in DesignTime, but no crash occurred at our end. So please check the video and let us know whether we are following correct steps to reproduce the issue. If not please brief about replication steps and also please provide us the following details for providing the prompt solution at the earliest:

1. Stack trace of the exception that you have faced.
2. Currently using Syncfusion product version details.
3. OS version details.

Regards,
Vijayalakshmi V.R.
 


I forgot to mention please enable the button that was commented out called BtnAddCondition and it might give you the error and I forgot to reenable that because it caused the error and I was backtracking. Do this using your current code. If it fails to produce an error I will send you a video in tomorrows attachment.


Its seems the width was not properly set on my second relative panel in the datatemplate for the sfaccordion control (I had it too small). In addition, I removed and added a new button to the project and copied code over and the error went away. Weird. I am still have problems with new items being added to the accordion control. So, I believe it is still erroring out. Give me till later and I will upload a newer copy of the program if need be.



JC jeffery carlson November 9, 2017 11:04 PM UTC

Nevermind, this is solved turned out to be a sizing problem and I fixed it. I need to set vertical alignment to stretch in some places.



VR Vijayalakshmi Roopkumar Syncfusion Team November 10, 2017 04:55 AM UTC

Hi Jeffery

Thank you for the update.

We are glad that the reported issue has been fixed at your end.

Please let us know if you need any further assistance.

Regards,
Vijayalakshmi V.R.

Loader.
Up arrow icon