Accordion Default Radio Button Answer, Open 1st Header

First let me thank you so much for the support I have received from your team putting this piece together.  This is the mission critical piece to my app.  I now use DataGrid, DataForm, PopUp.   The DataGrid produce a report that I couldn't even dream of it's so awesome.  I have used Telerik in the past with nothing but frustration.  Syncfusion stuff works and has good documentation and community support.

I have attached all the code I think you need to see how this is working.

These are the 3 items I need help with. 1 Really Nice to have item

  1. Default Radio Button Answer Selection for Question
  2. Different Header text color for Question with Default
  3. Open 1st Header on Ok from Popup
  4. Is there a way that when a user selects a radio button the next question expands without the user pressing the question button?
1 - we want to give the user the ability when configuring their account to be able to select a default answer for a question.  We would then add this data to the EventTrackerDataAccess QuestionAnsers_Get method I would guess.  We would add a table DefaultAnswers with the AccountId, QuestionId, AnswerId.  This could be part of the query for  QuestionAnsers_Get method. One thing to know that after the submit we currently clear all answers.  With the new request we will have to select the defaults after the submit. 

2 - we want to give the user a visual that a question has a default answer.  Our thought is for a question with a default answer to change the question text to a different color.  Another idea is to use some icon in from of question to indicate a default answer.

3 - we want the first event in the list to expand when OK is clicked on the Popup.  As you can see in the screen shot the last question stays expanded. Right now, the submit button clears all answer after the save.  We will need it replace all the defaults. 

Image_2923_1743171500070

Attachment: accordion_c5758c6e.zip

9 Replies

SD Sethupathy Devarajan Syncfusion Team April 2, 2025 03:21 PM UTC

Hi Joseph Cigno,


Thank you for contacting us.


We have reviewed the attached code snippets and understand that you are trying to create a .NET MAUI application for questionnaire or survey management.


If you have already developed the application, could you please share it as a zipped file? Or are you still in the development phase?


We are unclear about your exact requirements. Could you provide additional details so we can offer a solution as soon as possible?


Regards,
Sethupathy D.



JC Joseph Cigno April 3, 2025 11:52 AM UTC

Requirements

1) When a user creates their account, they will select the Subject (disease) they want to track.   The next screen (not built yet) will give them a list of maybe 20 questions for that subject.  They will be able to pick what questions they want to answer during the Event, plus select a default answer for some of the questions they pick to answer.  The subject drives the questions/answers. The Account (user) select questions they want to answer for an Event.  So one user could have 3 questions, another may have 12.  We want to be able to set the default answer to questions they have configured when the Event screen first opens and after a save.  

2) If a question is set to a default answer, we would like the text to be a different color to indicate there is a default.

3) In the screen shown above you can see behind the popup that the last question is expanded after the save on first open.  We would like the first question to expand with OK is clicked on the popup.

4) When the user is on question 1 and they select an answer, have question 2 expand, and so on.


Attachment: AvalonEventTracker_5d9ed85e.zip



AP Abinesh Palanisamy Syncfusion Team April 3, 2025 12:12 PM UTC

Hi Joseph,
 

We have downloaded the provided sample and attempted to unzip the folder. However, when we try to unzip it, we encounter the following issue.


If we select 'Skip,' the folder remains empty.

 



Could you please check on your end and provide a runnable sample for further analysis so we can investigate your query and provide a solution.


Regards,

Abinesh P



JC Joseph Cigno replied to Abinesh Palanisamy April 17, 2025 12:49 PM UTC

Is there and update on this post?



AP Abinesh Palanisamy Syncfusion Team April 18, 2025 07:08 AM UTC

Hi Joseph,
 

As mentioned earlier, we encountered difficulties while attempting to unzip and open the sample file you provided. Unfortunately, due to this issue, we are unable to access the contents of the file and proceed with the investigation of your requirement.

 

To assist you effectively, we kindly request you to share a runnable sample that can be opened and tested without issues. This will help us better understand your query and provide an appropriate solution at the earliest.

 

Regards,

Abinesh P



JC Joseph Cigno April 18, 2025 01:53 PM UTC

I replied to your emails, not sure they are monitored.  I put the project on an FTP server and provided user name and password.  Another option is I will post the project with a password, but you have to use 7Zip to unzip with password.  Windows compressed folder will not work.



RM RiyasHameed MohamedAbdulKhader Syncfusion Team April 21, 2025 02:09 PM UTC

Hi Joseph Cigno,

We regret to inform you that we have not received any emails containing the username and password. We attempted to unzip the file, but unfortunately, we did not receive the required password and were therefore unable to extract it.
Could you please share the username and password needed to extract the file? This will help us proceed with validation and provide you with a solution as soon as possible.


Regards,

Riyas Hameed M



JC Joseph Cigno April 22, 2025 07:10 PM UTC

I replied to your email with the password



RM RiyasHameed MohamedAbdulKhader Syncfusion Team April 24, 2025 12:19 PM UTC

Hi Joseph Cigno,

We were able to access the file using the password you provided via email. Based on your requirement, we have prepared a simple sample. In the sample, we’ve set the default answer and text color for the default radio button selection using a DataTrigger. We’ve also implemented the expansion behavior you requested.
The sample has been attached for your reference. Please have a look, and if you have any further queries, feel free to reach out.

Regards,
Riyas Hameed M


Attachment: AccordionMAUI_caa2aac3.zip

Loader.
Up arrow icon