Hi Frank,
This issue seems fixed after we upgrade to Wisej 2.0. So far so good. Thanks for your quick response any way!
Best Regards,
Tim
Marcelo,
at what scope is your function defined ?
I think you should just try calling it without “this.”
See the call to the GC class.
Hope that helps.
Best regards
Frank
Frank,
Is there a way to use external JS files for functions inside the Widgets ?
Can you show me how , please … I couldn´t get access to the function …
Regards,
Marcelo
.fctbNone{ color:#000000; }
.fctbStyle2{ color:#008000;font-style:oblique; }
.fctbStyle0Style2{ color:#2e75b6; }
.fctbStyle1Style2{ color:#a31515; }
.fctbStyle0Style1Style2{ color:#2e75b6; }
.fctbStyle0{ color:#2e75b6; }
.fctbStyle3{ color:#000000; }
.fctbStyle1{ color:#a31515; }
this.init = function(options) {
if (!wisej.web.DesignMode)
{
var spread = new GC.Spread.Sheets.Workbook(this.container, {
sheetCount: 1
});
this.importaTemplate(); <<--function in external JS File referenced in packages ..
});
}
}
Hi Tim,
I have tried this with a simple UserControl on a Page (see attached).
Here it works ok, so I can´t reproduce yet.
Where is your UserControl located when DesignMode is not recognized correctly ?
Would maybe querying the parents DesignMode help ?
Any chance to wrap up a test case ?
Thanks in advance.
Best regards
Frank
Problem Solved.
It works only with Temp files. That means, I have to copy a file from remote share to the IIS app dir and from there it is accessible for the viewer.
To avoid the copying in future I would request a feature, to do this with a file or memory stream – what is not working at the moment.
Regards
Johann
Thanks Gabriele,
I could reproduce with Firefox.
Logged as issue #1846.
Best regards
Frank
Hi Gabriele,
Find a sample attached.
here are a few more pointers that should get you started.
https://wisej.com/docs/2.0/html/JavaScriptObjectModel.htm
http://wisej.s3.amazonaws.com/support/attachments/Wisej.JavaScriptCallbacks.zip
For the clipboard:
https://wisej.com/support/question/copy-text-to-clipboard
Hope that helps.
Best regards
Frank
Hi Johann,
I think this fails because your stream is disposed before it can be used by the docViewer.
Try using a memory stream or a temporary file instead.
Best regards
Frank
The problem is only with Firefox 66.0.2 (64 bit)
Attached a sample project. Wisej 2.0.13
The problem arise for columns with index >0
Hi Gabriele,
I cannot reproduce this. Can you please tell us the settings for your TextBoxColumn
or wrap up a sample so we can check this ?
Thanks in advance.
Best regards
Frank
I solved the problem with copy new web.config from rebuild project replace old file in IIS.
Hi Gabriele,
I have just tried to replicate your issue by adding a button to a window, setting the anchor to Top, Bottom, Left, and Right, but the size of the control did not change after setting these, closing the designer, and reopening it.
What version of WiseJ are you running?
Would you mind uploading a sample of your issue?
Best,
Levie
private void dgv_Results_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
if (e.RowIndex >= 0)
{
// Set Row Color to indicate it was viewed
dgv_Results.Rows[e.RowIndex].DefaultCellStyle.ForeColor = System.Drawing.Color.Purple;}
}
Hi Marcelo,
I quickly tested with spreadJS 12 and it worked just fine:

These are the packages I have used:
package5.Name = "jquery182"; package5.Source = "http://code.jquery.com/jquery-1.8.2.min.js"; package6.Name = "JSpread"; package6.Source = "https://cdn.grapecity.com/spreadjs/hosted/scripts/gc.spread.sheets.all.12.0.1.min" + ".js";
And this is the InitScript:
this.init = function(options) { if (!wisej.web.DesignMode) { var spread = new GC.Spread.Sheets.Workbook(this.container, { sheetCount: 1 }); } }
Hope that helps.
Best regards
Frank
Hi Edmond,
can you please share some code how you set the font colors ?
I can´t reproduce anymore with our latest build and want to make sure that it´s fixed.
Thanks in advance,
Frank
Does the user IIS_IUSRS have write access to the folder?
Hi Johann,
as this is not a Wisej specific problem you can try searching for advice for ASP.NET apps.
Here is a sample thread:
https://stackoverflow.com/questions/5341327/writing-to-a-file-on-a-remote-server
Hope that helps.
Best regards
Frank
Thanks Edmond.
Logged as #1845.
Best regards
Frank
Thanks Andrew.
Logged as #1844
Best regards
Frank
