EasyUI Forum

General Category => General Discussion => Topic started by: evaro on March 29, 2014, 09:27:10 AM



Title: change datagrid theme dinamically [RESOLVED]
Post by: evaro on March 29, 2014, 09:27:10 AM
Hello, i have some themes for datagrid... my users need change for better vision ( olds mans )

i offer 3-4 themes  in combobox but can't apply theme upon datagrid ... (theme builder change theme on fly ) is this possible?

the site have themes/default, themes/theme1, themes/theme2.

combobox value have = /themes/theme1/easyui.css , ....




Title: Re: change datagrid theme dinamically [problem]
Post by: stworthy on March 29, 2014, 05:43:24 PM
The simplest way to change theme is to set the 'href' attribute for a <link> element.
Code:
var link = $('link');  // select your specified link
link.attr('href', ...);


Title: Re: change datagrid theme dinamically [Resolved]
Post by: evaro on March 30, 2014, 10:36:55 AM
Exactly, your suggestion is correct ... again! ... thanks a lot.