All Answers

0 votes

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.

  • Frank Xu answered Nov 27, 2019 - 3:02 am
0 votes

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

 

 

 

  • Luca answered Nov 27, 2019 - 1:02 am
0 votes

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

0 votes
In reply to: Wisej 3.0

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

0 votes

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.

  • Luca answered Nov 26, 2019 - 5:19 pm
0 votes

What effect would setting start mode to always running have?

0 votes

Disable the inactivity timeout for the app pool in IIS.

  • Luca answered Nov 24, 2019 - 10:02 pm
0 votes
In reply to: TabbedMdi style

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.

  • Luca answered Nov 24, 2019 - 10:00 pm
0 votes

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

 

  • Luca answered Nov 24, 2019 - 9:32 pm
0 votes

Perfect, thanks Levie.

But is there an way to set the global app to respect “PT_pt” LANG?

0 votes

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:

  • create a form, with wisej empty window
  • insert a button in the form
  • the “text” property is the one that is pre-selected, and if you start writing, you’ll see that the 1st letter is supressed, try to write “levie”
0 votes

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

0 votes

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

0 votes

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

0 votes

So simple and in front of my eyes!

Thank you,

0 votes

Jorge,

please use the AcceptsReturn property.

Best regards
Frank

0 votes

Sorry, I mean to say SHIFT+ENTER

0 votes
In reply to: combobox datasource

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

0 votes

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

0 votes

Hi Frank

This issue has returned in version 2.1.5

Thanks for your help Ewan

  • Ewan Walker answered Nov 19, 2019 - 2:31 pm
  • last active Nov 19, 2019 - 2:53 pm
Showing 5381 - 5400 of 11k results