Hi Alex,
I just tried adding the default PWA sample to the device’s home screen and the text looks fine on my iOS and Android devices. Any chance for a small sample? What device are you using?
Best,
Levie
Hi Ivan,
There is an event that fires when the standalone application is successfully installed in Chrome and Edge, you can add this to Default.html to use a WebMethod called AppInstalled():
window.onappinstalled = function () {
App.MainPage.AppInstalled();
};
This event only fires for the first initial install.
There is apparently another way to check if the PWA is installed using navigator.getInstalledRelatedApplications(), but it does not look like it’s completed or working yet.
You can check if the Wisej application is currently running as a PWA standalone application with the following code:
private async void button3_Click(object sender, EventArgs e)
{
var isStandalone = await EvalAsync("window.matchMedia('(display-mode: standalone)').matches");
AlertBox.Show($"Standalone Application: {isStandalone}");
}
HTH,
Levie
Hi Cristian
We was reproduce the issue. :-), Thanks
I’ll report to our develop team.
The fix will be available in the next build
Regards
Hi,
I attached the sample, there are the problems I’m facing now
1) Adding controls to SubItems
//OK
e.ListViewItem.SubItems[0].Control = tbName;
e.ListViewItem.SubItems[1].Control = tbDesc;
//EXCEPTION
e.ListViewItem.SubItems.Add(new ListViewItem.ListViewSubItem { Control = tbName });
e.ListViewItem.SubItems.Add(new ListViewItem.ListViewSubItem { Control = tbDesc });
//OK
e.ListViewItem.SubItems.AddRange(new ListViewItem.ListViewSubItem[] { new ListViewItem.ListViewSubItem { Control = tbName }, new ListViewItem.ListViewSubItem { Control = tbDesc } });
2) When I change value in a textbox and move to other textbox, ListView refreshes all items. I think it should not.
Thanks for your help,
Page
Hi,
there are more variables to consider.
if AllowUserToAddRows = false, this bug is present only with DropDownStyle = DropDownList
if AllowUserToAddRows = true, this bug is present both with DropDown and DropDownList style,
Column 01 remember to move to next cell only with mouse do not press Enter key
(you can delete the column 0 from sample)
I attach a sample
best
Hi Cristian
In addition to what to my coworker comment, I suggest you to update to our last official build 2.2.52. In this the issue that you report dont occurs.
I attach a sample video
https://drive.google.com/file/d/1FWKiG2HwdKR_aJoIhwvcICYHX6E0cPBy/view?usp=sharing
Under the hood, the column with combobox is data binded to a datatable.
Regards.
Hi Cristian,
Can you provide a code example that shows the problem better?
Best,
Kevin (ITG)
Hello guys,
How can I download the templates? The links below are no longer working.
http://wisej.s3.amazonaws.com/downloads/Templates/CSharpTemplates.zip
http://wisej.s3.amazonaws.com/downloads/Templates/VBNetTemplates.zip
Thanks.
Got it.
Perhabs someone is stumbling over the same problem.
The Solution was in the settings of the Chrome Browser.
WebsiteSettings: Unsecure Content : Unblock
After changing that the Backgroundtask plays Audio as intended.
Fantastic!
Version 2.2.52.0 added an Enhancement which made this work perfectly.
THANK YOU.
Hi guys.
I’ve found a dirty way of making this work.
I added a Timer to the code in case the Window is Maximized and set its Interval to 200 milliseconds to be triggered after the Window was put into Normal WindowState, and in the Timer Tick I changed its Size and Location.
I tried to use an Application.StartTask with a Sleep in it, but didn’t work.
If anyone thinks of a more elegant way of doing this, please let me know. 🙂
Find new Sample attached.
Cheers.
Ivan
Hi Ivan
Thanks very much for sharing your solution 🙂
Regards and happy coding
Found it! 🙂
In the application Web.config, there was an entry for the handlers:
add name="json" verb="*" path="*.json" type="System.Web.HttpForbiddenHandler"/
In the working sample, instead of seting to all .json files, it states only Default.json. So, changing the Web.config like bellow fixed it:
add name="json" verb="*" path="Default.json" type="System.Web.HttpForbiddenHandler"/
I went ahead and called from my application menu: this.Eval(“Wisej.showPWAPrompt()”);
Got an error in the browser Console:
Failed to load resource: the server responded with a status of 403 (Forbidden) manifest.json:1
Hi Luca
I don’t know how VWG coded their reporting module, but they managed to create some sort of persistence so I could from an external control call PerformBack on the report viewer control
If I attempt that using the ASPnetWrapper I get
Viewer control object is in a read only state so I am out of cycle
Calling this is the only way to move back to previous Toggle selections on an SSRS report.
Thanks for your help
Ewan
YESSSSSSSSSSSSSSSSSS!
Thank you Luca.
From one stupid question to another stupid question I will eventually get there. 🙂
If anyone needs this later, this was added to the dxDataGrid.js “filterOptions”:
if (options.stateStoring) {
options.stateStoring.customLoad = this.initFunction(options.stateStoring.customLoad);
options.stateStoring.customSave = this.initFunction(options.stateStoring.customSave);
}
Thank you again.
Hi Luca.
I followed your directions and this is what I have now:
In the dxDataGrid, I have in the Options:
"stateStoring": {
"enabled": true,
"type": "custom",
"customLoad": "loadGridStateJS",
"customSave": "saveGridStateJS"
},
I have in the dxDataGrid WidgetFunction the “functions” defined:
(see Grid01.png attached)
But once I run the application and go to the Grid, I get an error:
Uncaught TypeError: n.customLoad is not a function
at t._loadState (dx.all.js?v=637588579367368789:52)
at t.load (dx.all.js?v=637588579367368789:52)
at dx.all.js?v=637588579367368789:52
One thing to notice is that as soon as I set the “stateStoring” customLoad and customSave, after I leave the Option Code Editor, the Grid in the VS Designer stops showing the Columns. So, apparently setting a string (as the Function names) to customLoad and customSave might not be working.
Would you have any idea of what I could try in this?
Thank you!
Ivan
Hi Luca
Actually I achieved it with VWG
if (bitDrill)
{
this.rptViewer.PerformBack();
}
I will Email You the VWG report wrapper files
Thanks
NewRowNeeded is not related to the rows being added, it is for the new automatic row added by the user:
> Fired when the Wisej.Web.DataGridView.VirtualMode property of the Wisej.Web.DataGridView is true and the user navigates to the new row at the bottom of the Wisej.Web.DataGridView.
If you need to set the default values in a new automatic row use DefaultValuesNeeded.
You can also handle RowsAdded.
Cells in a virtual mode grid get their value from CellVCalueNeeded and write their value in CellValuePushed.
Hi Luca, thanks for your answer, I didn’t know the Annymous property, sounds very useful.
In fact, I firstly went for the DataRepeater.CurrentItemIndexChanged, but I found out that this fires also when I scroll, that’s why I abandoned it and looked for something like Click.
I understand that tappinga nd scrolling are different events. Is there a difference also between tapping and clicking?
I don’t see a SelectedItemChnaged. Do you mean ItemSelected? I’ll give it a go.
Alex
