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. Image for the cookie policy date

Option Enabled(false) doesn't work very well.

Hello, i have a problem with the propriety "Enabled(false)" of the button ; the button color changes (as disabled) but you still can click it and make the submit. 

Also i would like to know how use this propriety "HtmlAttributes"; if i can change the style or something.

Thanks and Regards

 

3 Replies

KC Kasithangam C Syncfusion Team July 6, 2015 09:30 AM UTC

Hi Julio,

Thanks for using Syncfusion Products,

Query 1: i have a problem with the propriety "Enabled(false)" of the button ; the button color changes (as disabled) but you still can click it and make the submit.

We have analyzed query. We are unable to reproduce the issue “Enabled(false) property is not working” in the version 13.1.0.30. When we set enabled property as false, its move into disable state and it doesn’t make submit. We have prepared the sample based on this and please find the sample under the following location,

Sample: Sample

Could you please check the above sample? If still you face the problem, please revert us by modifying the sample based on your application along with replication procedure. Also, Can you please tell us which version of our product currently you are using?  This would be helpful for us to serve you.

Query 2: I would like to know how use this propriety "HtmlAttributes"; if i can change the style or something.

We can apply style for the button by using “HtmlAttributes” property. Please find the below code for using HtmlAttributes,

<code>

@Html.EJ().Button("button1").Text("Click").HtmlAttributes(new Dictionary<string, object> { { "style", "color:red" }, { "autocomplete", "off" } })

</code>

We have included this in the above attached sample. Please let us know if you have further queries.

Regards,

Kasithangam



JU Julio July 7, 2015 05:49 PM UTC

Kasithangam thanks for the answers; the Queries function perfect, i will check where is the bug in my project.

Regard


KC Kasithangam C Syncfusion Team July 8, 2015 04:42 AM UTC

Hi Julio,

Thanks for your update. Please get back to us if you have further queries. We will be happy to help you out.

Regards,
Kasithangam

Loader.
Live Chat Icon For mobile
Up arrow icon