Hi Jorge
You must follow this steps
1.- Create a new theme, using existing one, for example Blue-1
2.- Change to theme Graphite-3 and select the menu item
3.- Copy the section css from the Editor tab
“css”: “{\”before\”:{\”content\”:\”\”,\”display\”:\”block\”,\”position\”:\”absolute\”,\”top\”:\”0px\”,\”left\”:\”0px\”,\”width\”:\”32px\”,\”height\”:\”100%\”,\”background-color\”:\”control\”}}”
4.- Turn to your custom theme and find “menu” : in the editor tab
5. Add the css section copy in step 3 at the end of the block. like that
“menu”: {
“states”: {
“default”: {
“styles”: {
“width”: [1, 1, 1, 1],
“color”: “windowFrame”,
“backgroundColor”: “menu”,
“shadowColor”: “buttonShadow”,
“shadowLength”: [1, 1],
“shadowBlurRadius”: 15,
“css”: “{\”before\”:{\”content\”:\”\”,\”display\”:\”block\”,\”position\”:\”absolute\”,\”top\”:\”0px\”,\”left\”:\”0px\”,\”width\”:\”32px\”,\”height\”:\”100%\”,\”background-color\”:\”control\”}}”
I hope I’ve helped
Regards
Hi,
Oh i see.
Tell me, how could i copy the whole menubar from one theme to another?
I was checking for options for this and didn’t found, maybe it’s there,
If you set the last column FillWeight to 1 and auto size it will always fill to the rest of the available space. You’d have to handle when the column changes position to update the FillWeight.
If you mean the gray box next to the menu item, it’s already in our Graphite-3 theme. See attached. The color can be changed easily with the ThemeBuilder.
The extension project is provided with the source code in github, see the call GetImageList() https://github.com/iceteagroup/wisej-extensions/blob/2.1/Wisej.Web.Ext.CustomWallpaper/CustomWallpaper.cs
You can randomize the list in there or apply any other rule that works for your app. You can also fork the project and provide a pull request and we can merge your changes back in.
Hum.
I know this is offtopic, but if it’s possible to give some help.
So I have the code below, but how to make it open on a new browser window/tab?
Dim s As System.Net.HttpWebRequest
Dim enc As System.Text.UTF8Encoding
Dim postdata As String
Dim postdatabytes As Byte()
s = System.Net.HttpWebRequest.Create(“https://host.pt/phpmyadmin/”)
enc = New System.Text.UTF8Encoding()
postdata = “pma_username=root&pma_password=xxxxxxxxx&db=mysql&server=1”
postdatabytes = enc.GetBytes(postdata)
s.Method = “POST”
s.ContentType = “application/x-www-form-urlencoded”
s.ContentLength = postdatabytes.Length
Using stream = s.GetRequestStream()
stream.Write(postdatabytes, 0, postdatabytes.Length)
End Using
Dim result = s.GetResponse()
Jorge,
please take a look at the WebRequest class.
Find some sample e.g. here:
https://stackoverflow.com/questions/6108531/how-to-send-a-post-in-net-vb
Best regards
Frank
Hi Jose!
Thanks for reporting the issue. We’ve fixed the bug and updated the GitHub extensions repository: https://github.com/iceteagroup/wisej-extensions
Please download it from here and try it.
Let me know if the issue still occurs after updating your project.
We’ll release the fix in the next build as well!
Best regards,
Levie
There are several ways to do that. Depends on how you populate the grid, is it data bound, is it virtual, etc. If it’s data bound, the value goes to the data source automatically, and if the datasource is connected to the database it also goes there automatically. Works exactly like the WinForms DataGridView (https://docs.microsoft.com/en-us/dotnet/framework/winforms/controls/how-to-bind-data-to-the-windows-forms-datagridview-control plus a ton of other sources).
If you are handling the data yourself, you can use CellValueChanged (fires also if you change the value by code), or CellEndEdit events.
If you send a sample project with comments on what you need to do, we can insert the sample code there.
Check out also the CodeProject sample (simple data binding) or the EF data binding sample using Entity Framework https://wisej.com/examples/ (click on the GitHub link)
Hi Levie,
Please find attached sample.
Regards,
Benjamin
Hi Benjamin,
What version of Wisej are you using? I tried with a few of the more recent versions but couldn’t reproduce it. Any chance for a sample and video? Could you please try it with the sample I’m attaching?
Best regards,
Levie
Its works
Thank you for your quick support
Best Regards
Nikos
Hi Nikos,
you can copy the templates from C:\users\<user>\documents\Visual Studio 20xx\ to your other users directories.
If you are referring to the toolbox, you can add a new tab and then right click and “Choose Items”.
Please select Wisej.Framework.dll
Best regards
Frank
Hi,
Install new development build and it does not work. Text changed is fired only when dropdown is closing.
Benjamin
See attached.
Wisej can push the updates to the browser (when in a websocket connection) but the grid has an internal threshold for the number of updated cells/rows that when passed it triggers a data reload to minimize the network traffic. The data reload is processed in parallel to user events.
Also, we have a new experimental option in Wisej to create a server side thread timer using Application.StartTimer(). It starts a server side timer that calls your callback in context. However it’s up to your code to manage the timer: dispose when the session terminates, etc. The sample attached uses a client timer, didn’t turn off websocket but it should work the same way since data read requests are always over http.
The data read request is processed in parallel. That’s correct. You can protect (synchronize) the specific function using a lock block. You can lock a session object.
I’ll send you sample code.
BTW, you have a TP account with us and can log issues directly on your github private repository at iceteagroup.
Did you use a Wisej.Web.Timer or a thread timer?
If you used a Wisej.Web.Timer, it fires an event on the client which is dispatched to the server as a client event. Exactly like a click. All events coming in from the browser in Wisej are synchronized. There is no UI thread in Wisej. Each request coming from the browser is assigned a thread from the thread pool and there synchronized in the order they come in.
If you used a system timer (thread timer) it’s a different issue.
Let me know.
Hi Michael,
enhancement #2191 is included in Wisej development build 2.1.48.
Best regards
Frank
Hi Benjamin,
fixed in the latest Wisej development build.
Best regards
Frank
