See items below, I tried to keep the ordered 🙂
Example for the last point:
private void async button1_Click(object sender, EventArgs e)
{
var result = await EvalAsync("return 3+2;");
AlertBox.Show(result.ToString());
}
HTH
Hi Cristian,
It doesn’t call Main() again because it’s reloading the previous session and state of the application.
There are a few ways you can deal with this:
Let me know if you have any other issues or questions about this!
Best regards,
Levie
Hi Nello,
Yes you can!
There are a few ways to do it:
var splitContainerComponents = Application.Theme.Appearances.splitpane.components; var splitContainerHorizontalStyle = splitContainerComponents.splitter.states["horizontal"].styles; splitContainerHorizontalStyle.backgroundColor = "blue";
3. Using a Mixin:
Other useful links:
Let me know if you have any questions or issues!
Best,
Levie
Hi Wilfred,
You can use the Theme Builder to do that (see attached screenshot).
Add transform (x) to the error provider style. You can set an appropriate pixel or percentage offset.
If you don’t want to use the theme builder, you can also use a mixin!
https://docs.wisej.com/theme-builder/theme-elements/appearances
Let me know if you have questions about how to do it.
HTH,
Levie
Hi Jan,
glad to see you starting to explore Wisej in detail. Find my answers here:
Bests regards
Frank
Hi Anz,
Check out the Application class here:
https://docs.wisej.com/api/wisej.web/general/application
I think you’ll find a lot of what you’re looking for in Application.Browser.
Here’s information on getting the client IP address:
https://wisej.com/support/question/client-ip-address
For information on JavaScript execution, check this out:
Let me know if you have any questions!
Best regards,
Levie
Hi Ulisses,
You just need to add a “StyleSheet” control from the toolbox and set the source to your CSS file.
I’ve reattached your sample with the fix!
https://docs.wisej.com/api/wisej.web/general/control#cssclass
Best regards,
Levie
Yes you can set it per cell, column, row, all grid, inherit it etc. Look at https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellstyle#wrapmode
Hi Pontus,
You can change it at design-time using the toolbar at the bottom of the designer window. It shows “blue-1” in the ComboBox by default.
You will also need to change it in the web.config file under the appSettings key.
If you’re trying to change the theme at runtime you can use Application.LoadTheme(themeName);
You can also customize the look of individual controls using Mixins, read more here: https://docs.wisej.com/theme-builder/
If you have any other questions, please let me know!
Best regards,
Levie
The activation is done through an http rest request on 80.
You can pre-activate it on a different server (not localhost, you can use 127.0.0.1 to use a localhost and trigger the activation) and deploy wisej-server.lic with the project at the same level as Default.html.
https://docs.wisej.com/docs/getting-started/license-activation
See Local Servers without internet access.
Ciao Messere,
It looks like with your application you have a few options…
You can set the “Selected” property of each ListViewItem to False in a handler (SelectedIndexChanged or similar). You would probably want to have different images for a disabled state. The downside of this option is you’ll still have the focus indicator around the item and have to manage the logic for the disabled state.
Another option would be to use a FlowLayoutPanel or FlexLayoutPanel with three buttons in it. The Wisej.Web.Button control has the “Enabled” property that would provide the exact behavior you’re looking for. You can play around with the FillWeight and FlowBreak properties to achieve the sizing and layout you want.
My recommendation would be to use the FlowLayoutPanel with the buttons in conjunction with a custom Mixin (see https://docs.wisej.com/theme-builder/getting-started/edit-a-mixin). With the mixin you can define a custom look for each state (disabled, hovered, etc.) of the button.
I’ll look into adding an Enabled or Selectable property for the ListViewItem. It might be something we want to add.
HTH,
Levie
Ciao Alessandro,
You can do something very similar with the Wisej.Web.DataRepeater control.
Here’s a live demo:
http://demo.wisej.com/DataRepeater/
There’s also a sample project in this forum post:
https://wisej.com/support/question/how-can-i-populate-a-datareader
Would this work for you?
Best,
Levie
Please attach the modified theme. If you only want to change colors it’s better to use a theme mixin that changes only the colors.
https://docs.wisej.com/theme-builder/getting-started/edit-a-mixin
Those are different headers. The row headers is basically a column in a panel since it doesn’t scroll horizontally. The grid is composed of panes. The pane at 0 is the row headers, the pane at 1 is the scrollable columns. When you have frozen columns the scrollable pane becomes 2 and you have 3 panes, 0=row headers, 1=frozen columns, 2=the rest. Each pane has a container at the top for the column headers which contains the headers (which are widgets, like a button) on a HBox layout. If any of the widgets increases in size it makes the parent container grow to fit the widget, so it will also stretch the other widgets in the same container. Otherwise they would get truncated.
When you set the column header height, the js code will set the height to all the header containers in all the panes, but it doesn’t listen to the size changes coming from “inside”. Which probably it should…
The gdi scaling is done by the browser. Since wisej icons in our themes are all svg they will scale without losing resolution.
The sort icon is at “table-header-cell/sort-icon”. If you click on it in the ThemeBuilder it will select it and at the bottom in the status bar it will show the path to the component. It will also scroll the source code in the editor to the correct location. See attached screens, I changed the icon to 10px.
Hi Libor,
I checked Wisej.UserComboBoxLookup_sample.zip and
When you add javascript methods add this.
I send you Wisej.UserComboBoxLookup_sample.zip with the patches
For JQuery I’ll send you a second answer shortly.
Wisej version is 2.2.39
More details: https://docs.wisej.com/docs/controls/extenders/javascript
Best.
Kevin (ITG)
There is also SetCellPosition() https://docs.wisej.com/api/wisej.web/containers/tablelayoutpanel#setcellposition-control-position
You can. But the filter property is also available in .NET https://docs.wisej.com/api/wisej.web/editors/wisej.web.textbox#filter
It filters the characters as they are typed. I.e.: a regex like [\d,] allows decimals and a comma.
It’s the same as this.getChildControl(“textfield”).setFilter(). For formatting the text you can format it when leaving the field. To mask it use the MaskedTextEditor. To validate on the server use the Validating event and the AutoValidate property on the container.
To validate on the client it’s a bit more complicated because you have to take some action on failed validation which can be anything: display something, keep the focus, collect the error text. Then there is the issue of localization. Then when and how to display, etc. Every application is different.
Hi Hakik,
You can add JS libraries or your JS logic like an embedded resources. Check this link: JavaScript (wisej.com) for more detailS
Best,
Kevin(ITG)
Hi Ruben,
static variables are shared across all users/sessions.
To store session specific information please use the Session class:
https://docs.wisej.com/docs/controls/general/application#session-object
Best regards
Frank
Hi again Marcelo,
It’s actually a feature not a bug, on the Panel properties you can set the AutoShow property to Never, that should fix your issue.
Here’s a link to the documentation: Panel.AutoShow Property (wisej.com)
Hope this helps.
Best regards,
Alaa
