Hi, I'm using bootstrap css in my panelDynamic. When I add new panel the style is ok but if I reload the page all panels except the first don't have the same style as before. How can I solve this?
Css broken when add new panel in panelDynamic
Answers
Ok I've found the problem. This is the HTML generated by surveyjs,
I marked the same elements of two identical panels and I don't understand if I reload the page some classes are lost. I have the marked element in my personal css and this is why I see different style on reload.
But I don't know how can I solve this. Add manually the css classes isn't the solution because the file that contains survey is shared for all survey in my application and doing this I think I solve only this specific case
Hi Marco,
If you wish to customize CSS classes for a specific question, handle the survey.onUpdateQuestionCssClasses event, determine the processed question by options.question
and specify CSS classes using the options.cssClasses
property.
Please let me know if this event would work for you.
Hello Marco,
I created this example, but didn't get any issues after reloading a page. Would you please update it or share yours for research?