Hi Luca,
Thanks a lot for your help! Looking forward for next release.
Would like to confirm for next release, after list changed
var l = employeesList;
var t = l[x];
l[x] = l[x + 1];
l[x + 1] = t;
Will DataRepeater’s items change position automatically as well?
If not, how can I do this? What I can think of is refreshing DataRepeater. However, it doesn’t work in current version. It’s also too expensive if list is huge?
private void btnUp_Click(object sender, EventArgs e)
{
var nCurr = (int)DataRepeater1.CurrentItemIndex;
int nAbve = nCurr – 1;
var l = employeesList;
var t = l[nCurr];
l[nCurr] = l[nAbve];
l[nAbve] = t;
var newLst = new BindingList<Employee>();
foreach (var empl in employeesList) {
newLst.Add(empl);
}
DataRepeater1.DataSource = newLst;
DataRepeater1.Update();
DataRepeater1.Refresh();
}
Thank you.
Thank you for the sample. All the issues you reported have been fixed and will be in the next beta update. In general:
To swap items:
private void btnUp_Click(object sender, EventArgs e)
{
var x = DataRepeater1.CurrentItemIndex;
var l = employeesList;
var t = l[x];
l[x] = l[x – 1];
l[x – 1] = t;
}
private void btnDown_Click(object sender, EventArgs e)
{
var x = DataRepeater1.CurrentItemIndex;
var l = employeesList;
var t = l[x];
l[x] = l[x + 1];
l[x + 1] = t;
}
To delete:
private void btnDelete_Click(object sender, EventArgs e)
{
var x = DataRepeater1.CurrentItemIndex;
var l = employeesList;
l.RemoveAt(x);
}
Do not use DataRepeater1_ItemTemplate_Appear since it’s the “appear” event of the template when it’s rendered on the browser and if you change the template then you are changing all the new items getting cloned from the template. To post process a repeater item use one of these events:
ItemCloned
ItemUpdate
Hi Jorge,
ComponentOne integration will be most likely available as a Premium Extension in the future.
But of course you can already wrap it yourself following various samples in this support forum
or in our integration blogs.
If you need a custom solution you can also contact us at sales@wisej.com for a quote.
Best regards
Frank
Hi Huynh,
If you buy Wisej you get 1 year of free upgrades.
For 3.0 we are a bit dependent on Microsofts release date for .NET 5.
That´s why we can´t yet predict a release date.
Best regards
Frank
There is no support for printing in pdf.js (mozilla project in github). You can however use a Wisej.Web.iFrame to show the pdf file and then use iframe1.Eval(“this.getWindow().print()”) to open the print window in the browser.
If you find any other javascript solution let us know.
What effect would setting start mode to always running have?
Disable the inactivity timeout for the app pool in IIS.
Use Wisej.ThemeBuilder.exe, set the style you like for the TabView, then copy the appearance “tabview” into a mixin and change the name to “tabmdiview”. You can also simplify it by removing all the other settings you don’t need. I’d start with the Graphite-3 theme.
See attached screenshots and file.
It’s not a bug. It works well in all browsers that support fullscreen mode. Chrome lets you do it in an ajax call. Edge doesn’t allow it so you need to use client side events. See attached screenshot. You can either us the method we provide (Wisej.Core.requestFullscreen – which is already browser independent) or use the javascript API directly, which is not browser independent. https://www.w3schools.com/howto/howto_js_fullscreen.asp
Perfect, thanks Levie.
But is there an way to set the global app to respect “PT_pt” LANG?
Hi Levie,
Was using 2.0.40, and just updated to 2.0.54 and same behavior.
Check this new video i made for you, when I select the button, the properties pre-select the “text” property so that we can start wrinting, like it happens in the WinForms, and when I try to write “Levie”, see that happens in the video.
http://neotrix.decimal.pt//bugs/wisej_bug_levie.zip
Try this:
Hi Huỳnh,
I’m able to replicate the issue in Internet Explorer, FireFox, and Microsoft Edge in 2.1.15. Just to verify, what version of Wisej are you using and what browsers?
I’ve logged the issue as bug #2049.
Best,
Levie
Hi Jorge,
Please change the DateTimePicker’s Format to “Custom” and set the CustomFormat property to “MM-dd-yyyy”
Let me know if that works for you!
Best,
Levie
Hi Jorge,
I can’t reproduce the issue. Maybe try writing it directly to the designer file for the page. If you attach a test project I can take another look! What version of Wisej are you using?
Best,
Levie
So simple and in front of my eyes!
Thank you,
Jorge,
please use the AcceptsReturn property.
Best regards
Frank
Sorry, I mean to say SHIFT+ENTER
Hi Dmitry,
This is the same behavior as in WinForms. I would recommend setting the SelectedIndex to -1 or the SelectedItem to null after setting your DataSource and handling the case specifically in your SelectedIndexChanged event handler. You can also do ResetText() to clear the text.
Hope that helps, let me know if you have any other questions!
Best,
Levie
Hi Huynh,
depending on your needs, using a panel hosting several controls and assigning this to the header cell could be an option.
Or using the Tools collection.
Best regards
Frank
Hi Frank
This issue has returned in version 2.1.5
Thanks for your help Ewan
