Page 1 of 2

TS doesn't submit

PostPosted: 09 Sep 2014 11:03
by JMiller
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

Re: TS doesn't submit

PostPosted: 09 Sep 2014 11:28
by Jorge Sousa
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.

Re: TS doesn't submit

PostPosted: 09 Sep 2014 12:45
by JMiller
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.

Re: TS doesn't submit

PostPosted: 09 Sep 2014 14:10
by Jorge Sousa
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.

Re: TS doesn't submit

PostPosted: 09 Sep 2014 14:28
by JMiller
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).

Re: TS doesn't submit

PostPosted: 09 Sep 2014 14:30
by Jorge Sousa
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

Re: TS doesn't submit

PostPosted: 09 Sep 2014 14:46
by JMiller
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.

Re: TS doesn't submit

PostPosted: 09 Sep 2014 14:58
by Jorge Sousa
i only can see the chance of scheduling a remote session, because it's unreproducible.

Re: TS doesn't submit

PostPosted: 09 Sep 2014 15:16
by JMiller
Let's do that tomorrrow over Skype.

Re: TS doesn't submit

PostPosted: 09 Sep 2014 15:22
by Jorge Sousa
ok