How to make combobox Readonly ?

Hi i have tried with the property "Enable = false" but it didn't worked for me. Currently i using synfusion "18.4.0.41".

Thank you

5 Replies 1 reply marked as answer

SS Suganya Sethuraman Syncfusion Team May 19, 2021 10:06 AM UTC

Hi Bharath,

Greetings from Syncfusion.

We have analyzed your requirement. We have achieved this by using the following code snippet,

Code snippet
 
            View view = (comboBox.GetChildAt(0) as FrameLayout).GetChildAt(1); 
            view.Enabled = false; 
 
            View dropdown = (((comboBox.GetChildAt(0) as FrameLayout).GetChildAt(0) as LinearLayout).GetChildAt(0) as LinearLayout).GetChildAt(1); 
            dropdown.Enabled = false; 

Please have a sample for your reference,

Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/ComboBoxReadOnly-1879072319

Please check if the sample satisfies your requirement and let us know if you have any concerns.

Regards,
Suganya Sethuraman.
 


Marked as answer

BH Bharath May 20, 2021 07:58 AM UTC

Thank you the solution worked and i have one more concern. Trying to achieve like in the image

 

I have added the sample solution for the TextInputLayout .Please have a look and please help me on this issue?


Attachment: ComboBoxSample498998197_d88d8250.rar


SS Suganya Sethuraman Syncfusion Team May 21, 2021 10:41 AM UTC

Hi Bharath,

Thanks for the update.

We have analyzed your requirement. Because SfComboBox is a layout control, it does not support TextInputLayout in the Xamarin.Android platform. We only support SfComboBox within SfTextIbputLayout for XamarinForms

Please let us know if you have any other concerns.

Regards,
Suganya Sethuraman.
 



BH Bharath May 24, 2021 07:52 AM UTC

Is there any other way to achieve my requested query ? or any alternative solution ? Please help me to resolve the issue.
Thanks 


SS Suganya Sethuraman Syncfusion Team May 25, 2021 12:01 PM UTC

Hi Bharath,

Currently, we don’t have direct support for your requirement. So, we have considered “Provide support for SfComboBox in TextInputLayout” as a feature and logged this as a feature request, and you can track the status of this feature implement through below link

Feedback link: https://www.syncfusion.com/feedback/25657

Please cast your vote to make it count. We will prioritize the features every release based on the demands and we do not have an immediate plan to implement this feature since we committed with already planned work. So, this feature will be available in any of our upcoming releases.

If you have any more specifications/suggestions to the feature request, you can add it as a comment in the portal.

Regards,
Suganya Sethuraman.
 


Loader.
Up arrow icon