How to disable MDB markup and handling of checkboxes and/or


Topic: How to disable MDB markup and handling of checkboxes and/or radio buttons on a page.

mslayton pro asked 7 years ago

I have a page that is using jQuery plugin jqGrid with checkboxes which are not getting handled properly with MDB Pro 4.5. How can I disable MDB Pro for just the checkboxes on this one page so the handling is done by jqGrid?

bpgillett pro answered 7 years ago

I have this need as well for a form with radios.  I want to use MDB for everything except for my forms that use radio selectors. I have a javascript listener that checks for anytime the user makes a radio selection, but this will not work with MDB because MDB hides the actual radio controls.

My Code:

$(document).ready(function() {
$('input[type=radio]').click(function(event) {...}

I can not use the ids of the forms bc they are dynamically created, and I need to listen for anytime that a radio is clicked on any form.

Thank you in advance.

Best, Brian

 

 

 

 

 


Marta Szymanska staff pro premium answered 6 years ago

Hi, xzesstence, could you explain exactly what you would like to create? I'll try to help you. Best, Marta

xzesstence pro commented 5 years ago

Thanks Marta, i managed that past project with success but many workarounds from my side were needed. I see much has changed since then... keep on!


Marta Szymanska staff pro premium commented 5 years ago

Hi,

thank you for the nice words. For now, do you need help from us with your code?

Best, Marta


Marta Szymanska staff pro premium answered 7 years ago

Hi, To understand well, you have a plugin with custom checkboxes which work wrong with MDB package and you would like to disable MDB styles for the site where you use this plugin? Tell me more information, please or maybe show me any demo? Best, Marta

mslayton pro commented 7 years ago

Actually the opposite is the case. jqGrid plugin uses standard HTML checkboxes, MDB has customized checkboxes. I want to disable the MDB markup changes and revert to standard HTML checkboxes on one page of a website that uses jqGrid plugin.

Marta Szymanska staff pro premium answered 7 years ago

Hi, do you use our SCSS files or only mdb.css file? Best, Marta

Marta Szymanska staff pro premium answered 7 years ago

Hi Brian, this what I can offer you, in this case, is to comment or remove in mdb.scss file these two lines: @import "pro/forms"; @import "pro/radio"; and after that compile mdb.css once again without our styles for radio buttons.

Rossi pro answered 7 years ago

Hello, I can't handling event to with radio buttons for pro ...

Marta Szymanska staff pro premium answered 7 years ago

Hi Rossi, I'm not sure what you mean, please, describe your problem in details and attach any demo or code showing the problem. I'll try to help you. Best, Marta

xzesstence pro answered 6 years ago

same problem here... im really disappointed buying pro... could have been done much better. take a look at primeng which is free.. at least this is what i expect when i pay money for it
Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No