Tapping and scrolling are different events. If you want to make a control “invisible” to pointer events set the Anonymous property to true.
For the click on a panel in the data repeater you can also simply handle the SelectedItemChanged event since anywhere you click will set the panel as the current one.
All the ReportViewer methods and properties are already exposed and accessible on the wrapper object since it’s a template class.
You simply cannot call them outside of the asp.net page cycle, just like asp.net or vwg.
Application.UserHostAddress is the same as HttpRequest.UserHostAddress which corresponds to “REMOTE_ADDR” (https://docs.microsoft.com/en-us/previous-versions/iis/6.0-sdk/ms524602(v=vs.90)). All server variables are available as Application.ServerVariables[name].
Usually proxies add “X-Forwarded-For”, but “X-Real-IP” could work if available. Try with Application.ServerVariables. If it’s not there, you can always use HttpContext.Current.Request.Headers in Program.Main since it’s the first HTTP request.
Hi Edmon
By the way, for complement our answer
IE cannot align svg images. Works fine for Png.
In current version 2.2.5 and earlies, the designer when using IE will not show the alignment for svg.
Works fine at runtime except for IE.
When 2.5 will be released, it’ll use Edge in the designer as redner engine and it will show the alignment for svgs but it will never work in IE if it used as render engine into visual studio.
Regards
/**
* onOnline
*
* Called when the device goes back onOnline and the connection with the server can be established
* successfully.
*
* The default implementation hides the themeable "toast" shows by the default implementation
* of Wisej.onOffline.
*
* Usage:
*
* Wisej.onOnline = function() { console.log("Offline"); };
*
*/
Wisej.onOnline = Wisej.onOnline || function () {
Wisej.Platform.showOfflineToast(false);
};
/**
* onOffline
*
* Called when the device goes offline or the connection with the server cannot be established.
*
* The default implementation shows a themeable "toast".
*
* Usage:
*
* Wisej.onOnline = function() { console.log("Offline"); };
*
* @param offlineUrl {String} URL to navigate to when the offline state is detected.
*/
Wisej.onOffline = Wisej.onOffline || function (offlineUrl) {
if (offlineUrl)
location.href = offlineUrl;
else
Wisej.Platform.showOfflineToast(true);
};
Here you can find all the Wisej widgets.
2. I though I can cite detail DXGrid in JS script as it was in export to PDF scenario true it’s instance. Or I am wrong for that?
Do I correctly understand that we have to create detail DXGrid entirely in JS in the template property of the master DXGrid. If so, how we will able to interact with detail grid events in order to manage all editing scenario topics: default values of new row, read edited row values, cancel editing of the row, edit values of the row fields in runtime mode and so on.
Thank you!
I now have implemented it the following way:
If “Application.SessionCount” does correctly display the server session count (in v2.2.49+) the way it now seems to work does fit my requirements.
Hi Luca.
Thanks for the reply.
Yep, I understood your sample, I just can’t figure out how to add a second dxDataGrid, set its datasource to an Array Class I have in the server, and tell the Master this is to be returned from its call to the MasterDetail template function.
I will see what we can do.
Hi Thameem
I attach your sample modified to upload any type of file (text or binary) one level up of bin directory
Also considere validating the target directory each time the app write the file, becaouse another process could delete the upload directory between file uploads
Regards and happy coding
It was in the sample I have attached to the other replies. Click the arrow next to the row and you get the HTML for the detail table. Look at the WidgetFunctions and you will find a getMasterDetailTemplate() javascript function where you can add all the javascript you see in the devex samples. It get complicated but it’s the way all third party widjets work. If you need more targeted development we have support packages that are available at sales@wisej.com.
You are writing into /bin causing IIS or IIS Express to reload the application. This is standard behavior, not related to Wisej. Use Application.MapPath() or write somewhere else outside of /bin.
Hi Edmon
Try unchecking AutoSize property for the label
Next you can align the image in the best way for your needs
Regards and happy coding
In this upload test project, after the “uploaded event” is fired, the window goes to an ‘offline’ state (it shows the message(popup), at the top of the browser, that it is offline), then immediately the window is refreshed. If you run the project, you can see it. Could you please help me, how to avoid the refresh? FYI: the version I installed is 2.2.48
Herewith I attached the project and the 3 images.
Use the window level accelerator event. You can assign the enter key as an accelerator. Add the select next control function in the accelerator event. This will then allow all child controls of the form / page to respond to the enter key. You will need to precede the next control function if you want to respond to say button click events, as the accelerator is evaluated first. Simply test if the button has focus, if it has then call button click event, then exit the sub before executing the next control function. This is much faster than key up event.
I think you are referring to the Submit action in an HTML page. Wisej is a Single Page Application (SPA) system. There is no submit or post. It’s all ajax. The file is transferred when you pick it (or you can drag & drop it) and it’s up to you to store it somewhere (memory, temp, anywhere) and then do with it whatever the app needs to do. There are several events that give you full control.
There is no auto refresh in Wisej.
No, Wisej 2 is built on .NET Framework. You can use it up the latest 4.8 release.
.NET 5 or 6 will be supported in the Wisej 3 release.
You can’t open any file from the server. You can only use a URL address with the browser. The URL is a request that goes to the web server. In order to process the request and return whatever you like you need to use a request handler. This is not a Wisej issue, it’s just the way all browsers and all web servers work.
You can create a custom ASP.NEt ashx handler, or install a IIS handler in web.config, or use a IWisejHandler implementation. It gets trickier with the opening a new tab, vs downloading, etc. We have 4h professional support packages available at sales@wisej.com.
Hi, herewith I have attached two image files. In the first image, there is one Upload Field and 3 other input fields (text boxes). What I want is. here the user selects a file (client-side) in the upload filed, and he can enter any data on the 3 fields. While saving the form data, by hitting the save button, the textboxes’ data are moved to the database and finally, the client-side file would move to the server.
But, as per the second image, the client-side file is moved to the server in the “uploaded event”, by using the “SaveAs” function, that is before saving the form data. So, instead of doing it in the “uploaded event”, I want to do the same operation in the save button’s click event (while saving along with other form data)
Is it possible?
And, after the “uploaded event” is fired, the form is auto-refreshed and the data in the text boxes are reset. How to avoid the auto-refresh, after the “upload event” is fired?
Wisej doesn’t save anything on the server automatically. It’s always done by your code and it’s the same ASP.NET classes. If you want to send a sample showing what you need or the traditional ASP sample that does what you need we can help you further.
