our company wants to create a Wisej application containing some Wisej web pages which should run on desktop browser, tablets and in some parts on mobile phones like the iPhone. Therefore we are interested in an up to date example of the Wisej-Responsive-Features. I already checked some of the other threads in your support forum regarding this topic and found information e.g. about ClientProfile and the ResponsiveProfileChange-event. I would like to know if you could provide us with an example project that shows how to use these instruments correctly, because I guess we are not the only ones who are interested in responsive design for Wisej.
Yes you can detect the change of orientation too. It’s just another break.
This is the built-in ClientProfiles.json:
You can override it by placing your ClientProfiles.json in the root of the project.
The breaks are evaluated from the top down, the first match will fire the Application.ResponsiveProfileChanged event. You can also detect a specific device using the userAgent regular expression.
Also usually the continuous resizing in a responsive layout is done only by “us” to see what happens. In normal usage you can’t turn a desktop monitor into an iphone and you can’t resize an ipad. The responsive break should fire once at loading or when rotating.
In fact when I play with the responsive layouts in ready made wordpress themes or bootstrap I invariably end up in an unusable state and have to refresh the browser to reload the page.
I Reviewed and ran the sample. It’s Okay – but because all the “adapting” or resizing happens on the server – it makes it kind of clunky.
When you use tools like Angular, or even modern web pages, etc.., they are very fast when resizing because it all happens on the client.
Any way to get this responsive code to be automatically generated and fired on the server side without having to code it? At least some defaults that can be tweaked ?
A basic skeleton to demonstrate some of the responsive features in Wisej has just been made available.
We’ll add a blog entry about it during the next days.
I’d appreciate to hear how you are using it and if you have ideas for improvements.
Sure, we will publish a sample tomorrow.