Hi Abel
Here another tips to fix your problem
In some scenerios, a mix of installed visual studio ide installed could mess the registry
A way to add the controls of wisej to to visual studio ide is showed in the below video
Video of how add manually wisej controls to Vs Ide
I hope that could fix your problem
Regards, and happy codding
Hi Ewan,
not sure if it helps in your case but in a similiar situation adding the following code to a customers project did fix that issue:
Attach to the ColumnChanging event of your DGV and add the following code in the event handler:
if (e.ProposedValue == null)
{
e.ProposedValue = DBNull.Value;
}
If that does not help, please send us more information/code that helps us to understand & reproduce that issue.
Best regards
Frank
I have a data bound DGV with and index column which cannot be null.
When I try
private void dgvTest_DefaultValuesNeeded(object sender, DataGridViewRowEventArgs e)
{
if (!isLoading && !isSaving)
{
//dgvTest[5, e.RowIndex].Value = 0;
e.Row[5].Value = 0;
}
}
Which fires after you add the first value to the row, effect of setting the default value is to create a second new row with the first row producing a null value error.
How do I get round this?
Levie (ITG)
OK.
I’m looking forward to the next build.
Hi Takao,
We haven’t added the functionality to switch between multiple cameras yet. I’ll add it as an enhancement and let you know when it’s included in the next build!
Best regards,
Levie
Hi Abel
I made a video with a scenerio that I think maybe your problem
I installed Wisej 1.5.48 side by side with 2.1.8.
In a project started with a template 2.1 accidentaly I put references for assemblies for wisej 1.5 and the project has error when drag controls corresponding to 2.1 version
The solution is remove the reference to Wisej.Core and Wisej.Web , only lefting Wise.Framework reference in your project
Regards and happy codding
Hi Abel
What version of visual studio are you using?
Are you uninstalled previous version of wisej 1?
Try the next tip
1 right click on visual studio toolbox
2 select “Reset toolbox”
3 Notice that in toolbox the Wisej controls are in “Wisej 2.1” section
4 Drag and drop a control to design surface
Regards and happy codding
Hi Levie,
I found the problem. When ViewerType is Auto as default, android wants to download pdf however if I choose the viewertype Mozzilla then it shows PDF inside. In your sample also, viewertype has been selected mozzilla. I tested my sample both on my local IIS and on publish server. It works with viewertype selected mozilla.
Thank you.
Creating activex objects or any other object is not a Wisej framework thing. It’s all standard .NET Framework.
You have to have the correct ax registered, have the correct permissions, etc. There can be many causes for the error you getting from the .NET Framework.
Click on the certificate icon in the address bar.
Hi Adil,
I just tried with the PDF viewer on demo.wisej.com/CodeProject and it seems to work okay. You’re using the standard PDFViewer, right?
Any chance for a small sample or steps for reproducing?
Best regards,
Levie
Hi Jan,
The long-loading issue might be due to BingWallpaper failing to load the images. You can remove that extension and see if it loads quicker.
I would also try disabling the speech extension if it’s annoying, it is probably due to the network connectivity.
Best,
Levie
Hi Ewan,
Did you try all these solutions?
Best,
Levie
That’s because await exits the method so the response is terminated and Task.Delay() spawns another thread.
Add Application.Update(this); to push the update back to the client.
When you see it working on the second click is just because it’s also sending back the pending changes as soon as there is another request. The same would happen if you click anywhere else. Wisej makes it looks like a desktop app but on the web you still have the request/response cycle.
Hi Alex,
Two solutions basically:
[Bindable(true)]
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public string CustomerName {
get {return this.textBox1.Text;}
set {this.textBox1.Text = value;}
}
This allows you to bind directly to the inner objects while keeping the private and gives you control on what to do with each property. It also shows in the designer under (DataBindings).
HTH
Hi Levie. I had added the following as a reply comment to your comment, but since you haven’t answered I suspect you haven’t noticed it, that’s why I’m repeating it here as an answer. Best, Alex.
Now you got me confused. In your original answer you mentioned the DataRepeater_ItemUpdate event in both scenarios, now you say that in the databound scenario the event is not needed. and in fact I cannot make it work without the event. In my mind there should be somewhere a line of code like myOrderView.DataBindings.Add(XXXX, RepeaterDatasource, YYYY), i.e. bind the usercontrol MyOrderView as a whole to the Datarepeater DataSource, but I do not know what property XXX of the usercontrol to bind to what property YYY of the datasource. This is what I would expect, i.e. to deal with the UserControl in the ItemTemplate, as we deal with let’s say a TextBox in the Itemtemplate, in which case XXX = “Text” and YYY = “OrderNumber”. It would be very helpful if you added the scenario without the ItemUpdate event in your nice example code.
I’d like to add the showing an error text under a control can be achieved with a property extender. An external component like the ToolTip or the HelpTip or the ErrorProvider that can add anything to any other widget on the client side. Like now the ErrorProvider adds an icon to the target control.
For the embedded Label it’s different because it has to create its own container and layout (see how the editor and label share the same space), and other complex interactions that are quite sophisticated in Wisej.
Hi Alex! I hope all is well and I’m glad to see you back on Wisej.
We may add the Label property to the Label control but it’s not certain. Just adding the Label to the editors has caused a lot of problems because on the client side the editor widget has to be wrapped in another widget which has it’s own set of events and properties and everything has to be split.
It’s a bug. When you set the Me.DataGridView1.DefaultCellStyle.WrapMode = DataGridViewTriState.True it initializes the Me.DataGridView1.DefaultCellStyle and when inheriting the cell style it end up overriding (incorrectly) the column’s CellStyle only for the NullValue. Logged as #2349.
Two workarounds:
Public Class MyDataGridViewCheckBoxCell Inherits DataGridViewCheckBoxCell Public Overrides Function GetInheritedStyle(includeVisualProperties As Boolean) As DataGridViewCellStyle Dim style = MyBase.GetInheritedStyle(includeVisualProperties) style.NullValue = True Return style End Function End Class Public Class MyDataGridViewCheckBoxColumn Inherits DataGridViewCheckBoxColumn Public Sub New() MyBase.New(New MyDataGridViewCheckBoxCell) End Sub End Class
2. Create a custom cell and assign it:
Public Class MyDataGridViewCheckBoxCell Inherits DataGridViewCheckBoxCell Public Overrides Function GetInheritedStyle(includeVisualProperties As Boolean) As DataGridViewCellStyle Dim style = MyBase.GetInheritedStyle(includeVisualProperties) style.NullValue = True Return style End Function End Class Me.DataGridView1.Columns(2).CellTemplate = New MyDataGridViewCheckBoxCell
Thank you. The sample work.
