Che4ter Che4ter - 5 months ago 29
Vb.net Question

Loading of material design lite

I wanted to use the material design lite library on my asp.net webform page, but I have load problems with some components.
For example with the radio button element. When the page loads, it shows the styled radio button first and after 1 second it loads the material style. This looks very ugly. I tried to include the resources on different positions but nothing helps. With my other ui frameworks I don't have these problems and when I run a plain html example it works perfectly.

Answer

I found a way. You have to upgrade the elements earlier

  $(document).ready(function() {

    componentHandler.upgradeAllRegistered();
});
Comments