MenuItemClicked fires when you click a MenuItem (child menu item). It allows a menu control to handle events on child menu items instead of having to attach the Click event on each menu item. The clicked menu item is referenced in e.MenuItem.
Hi Cristian,
I’ve added a LineTension configuration option to the ChartJS LineDataSet and RadarDataSet classes.
You can download the updated source code here: https://github.com/iceteagroup/wisej-extensions/tree/2.1/Wisej.Web.Ext.ChartJs
It will also be included in the next build.
You can add any chart configuration options you want with the source code (use my last commit as a model).
Please let me know if you have any questions or issues!
Best,
Levie
Add
dropDuplicateClicks: true
to Default.json
Check that your code handles the Click or Tap event, not MouseClick or MouseDown.
If you still have the issue please send a small test case.
Dear Team,
In my case this is not happening in gizmox application.
User is not forcefully trying to click twice, he is trying click again since the earlier was not executed or expected window is not loaded.
Since we are working in Banking vertical, we can not execute the single process for multiple times.
Is their any other solution to avoid such situations or any kind of optional settings at qx.js level which will solve our problem.
Dear Team,
In my case this is not happening in gizmox application.
User is not forcefully trying to click twice, he is trying click again since the earlier was not executed or expected window is not loaded.
Since we are working in Banking vertical, we can not execute the single process for multiple times.
Is their any other solution to avoid such situations or any kind of optional settings at qx.js level which will solve our problem.
Hi Anz,
You have a few options:
Let me know if this works for you!
Best regards,
Levie
Hi Luca and Levie,
Luca you are right. I was creating and adding the usercontrols programmatically and, at the point I was asking for the Form, the controls were not yet placed on the form. My bad, sorry for the false alert!
All the best,
Alex
Hi Anz,
Thanks for reporting the issue! I logged the issue as #2380 and a fix will be available in the next release!
Best,
Levie
Hi Alex,
It works for me. I used FindForm() in the UserControl in the property setter:
[Bindable(true)]
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public string Test
{
get { return this.textBox1.Text; }
set
{
var form = FindForm();
this.textBox1.Text = $"Form: {form?.Name}; Value: {value}";
}
}
It gets the form correctly. If you are not in a form but in a page, FindForm() will return null and FindPage() will return the page.
HTH
Hi Levie, thanks for your answer.
Following my previous question about binding a usercontrol as a whole in an ItemTemplate, I would like to get hold of the containing Form from within the UserControl. When I try this, I get null.
My structure is:
a. Form
b. UserControl with DataRepeater
c. UserControl in the ItemTemplate of b
From within c I get:
this.FindForm() = null
this.Parent = ItemTemplate
this.Parent.FindForm() = null
this.Parent.Parent = null (I would expect this to be either the DataRepeater control or UserControl b)
Hope this is clearer now.
Best,
Alex
Hi Alex,
You should be able to use FindForm or FindPage when working with DataRepeaterItemEventArgs (ItemUpdate, ItemClone, ItemAdded, etc) inside of the DataRepeaterItem property.
Here’s an example where you can use it:
private void dataRepeater1_ItemUpdate(object sender, DataRepeaterItemEventArgs e)
{
var item = e.DataRepeaterItem;
AlertBox.Show(item.Controls["label1"].FindForm().Text);
}
Please let me know if you have any other questions or this isn’t what you need!
Best regards,
Levie
Hi Luca,
I believe its going to be OAuth 2.0, OpenID Connect against IdentityServer. I’m assuming I need to do something to switch to default.aspx and deal with the redirect to the SSO login page before WiseJ gets going?
Thanks
Nic
After I upgraded to version 2.1.85, in the test of win10 edge (version 18), I reappeared the phenomenon in video recording. The source code will be uploaded later
Hi Alex,
issue #2378 is fixed in our latest Wisej release (2.1.85).
Best regards
Frank
Hi Luca,
It is the list down on the left that is readonly. It is populated when you click on the “Get data list” button.
I’m trying to move our WinForms application over to Wisej. It is heavily based on databinding to objects. I dont’t believe in connecting data directly. So for that we use the CSLA framework. It supports every kind of databinding, like WinForms and WPF.
You mentioned that Wisej also has implemented sorting if the source list don’t support sorting. How about adding a property to DataGridView to force Wisej to always use it’s own implementation? And eliminate all the problems I have.
We use DevExpress controls in the WinForms application. I think their grid always use its own sorting. Maintaining a reference sort list to the original list.
Best regards,
Wilfred
Hi Wilfred,
The DataGridView sorts its rows when it’s not databound. When it’s databound it must sort the data source since the data it’s there and the rows must match. Another option is to load from a data source unidirectionally and don’t keep the data binding using the new Fill() or Append().
When the data source supports sorting, the sorting is delegated to the source. For example, a connected data source can sort using the database ORDER BY, or LINQ, or a custom implementation. Data binding in Wisej is based on WinForms databing and is a lot more sophisticated than simple mono directional data binding.
Also sorting in the DataGridView adds another layer of flexible implementation. You can use the built-in quick sort/heap sort combination, or pass your own comparer to achieve multi column sorting, for example.
When data bound, and sorting is automatic, the DataGridView checks if the data source is an IBindingList and if it SupportSorting. If it does then sorting is delegated to the data source implementation, which is outside of Wisej scope: it calls the ApplySort method and updates the grid.
I think the issue that you uncovered is with read only lists. In Winforms if you try to automatically sort a data source that is not an IBindingList that supports sorting you get an exception that sorting a data bound grid is not supported. In Wisej we implemented also sorting of source lists that don’t support sorting. However, when the list is read only it obviously shouldn’t re-arrange the rows. Will log as a bug.
In any case, the result would be either an exception that sorting is not supported or you have to set sorting to Programmatic and handle it in your app.
HTH
The attached sample shows 3 approaches: UITypeEditor, TypeDescriptor and SelectedGridItemBeginEdit.
The world of System.ComponentModel is quite big, a good starting point is here.
Hi dev,
Could you please wrap up a small sample so we can test it?
Best,
Levie
It’s used in several projects using kerberos, saml, azure, atlassian and others. What type of SSO do you need to use?
Hi Luca.
Thank you so much for the prompt reply.
Got it. Good to know that.
Best.
Ivan
