CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

TS doesn't submit

by JMiller » 09 Sep 2014 11:03

Hello!

When I change the theme in my ThemeSwitcher nothing happens.
I checked the demo, where that works fine. There is nothing added. No event defined, no property changed.
I tried the same thing in a small project. Just the ThemeSwitcher and a grid, so I'd see the difference. But when I select a new theme, nothing happens.
I have to add a button with a ReRender.
Shouldn't a new theme call a full submit?


Best regards,
JM
JMiller
 
Posts: 135
Joined: 13 Jul 2012 05:01

by Jorge Sousa » 09 Sep 2014 11:28

Hi

No you don't need a full submit.

I cannot undertstand how it's possible, and its not reproducible

So please post some code, t.i.a.
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by JMiller » 09 Sep 2014 12:45

There is no code.
I used an empty project and added an IWCGJQRegion, an IWCGJQThemeSwitcher and an IWCGJQGrid.

For the IWCGJQButton->JQButtonOptions->OnClick->OnEvent I use this code:
Code: Select all
   try
   {
      IWCGJQRegion1->AjaxReRender(false, true);
   }
   catch (...) {}


But that shouldn't be necessary.
JMiller
 
Posts: 135
Joined: 13 Jul 2012 05:01

by Jorge Sousa » 09 Sep 2014 14:10

Hi

What do you mean by

When I change the theme in my ThemeSwitcher nothing happens.


If it is setting JQThemeSwitcherOptions.LoadTheme

you've to realize that themeswticher use cookies, so unless you clear the cookies, it won't load your default or initial theme.

You can however change the cookie name.
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by JMiller » 09 Sep 2014 14:28

No, this is about run time.
When I open the ThemeSwitcher at run time and choose a new theme, the new theme is not shown immediately (but in the demo that works).
JMiller
 
Posts: 135
Joined: 13 Jul 2012 05:01

by Jorge Sousa » 09 Sep 2014 14:30

And you've ur wwwroot intact?

any javascript error? hit f12 see console and refresh

hit ctrl+f5 just in case of version cache problems
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by JMiller » 09 Sep 2014 14:46

I just synchronized wwwroot and emptied the cache again. No change.

There is just one javascript error saying, that the Grid Provider is not set.
Beside that, nothing.
JMiller
 
Posts: 135
Joined: 13 Jul 2012 05:01

by Jorge Sousa » 09 Sep 2014 14:58

i only can see the chance of scheduling a remote session, because it's unreproducible.
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by JMiller » 09 Sep 2014 15:16

Let's do that tomorrrow over Skype.
JMiller
 
Posts: 135
Joined: 13 Jul 2012 05:01

by Jorge Sousa » 09 Sep 2014 15:22

ok
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

Next

Return to JQThemeSwitcher

Who is online

Users browsing this forum: No registered users and 3 guests

Contact Us.