All Answers

0 votes

Hi Jorge,

try to deploy as following:

C:\inetpub\wwwroot\YourApp\Themes (for all themes)
C:\inetpub\wwwroot\YourApp\bin (for your code)

Hope that helps.

Best regards
Frank

0 votes

Adding this to the CustomUserControl should help the focus issue a bit more for your case:

private void ComboBoxWithTextBox_Load(object sender, EventArgs e)
{
this.textBox1.Focusable = true;
this.textBox1.Focus();
}

Nevertheless, it’s still an issue and we’re working on a solution for it, thanks for reporting!

Best,

Levie

  • Levie (ITG) answered Feb 28, 2020 - 7:40 pm
  • last active Feb 28, 2020 - 7:41 pm
0 votes

I’ve attached a custom theme you can try in your project:

If you open the theme in the ThemeBuilder you can modify the color by navigating to:

Appearances > Table Row > Default > styles >css

You can see the hover event with the specified background color.

 

If you create your own theme, you need to:

  1. Remove the backgroundColor style under Table Row > Default > styles
  2. Add the hover css style in Table Row > Default > styles
  3. Remove the backgroundColor style under Table Cell > Odd > styles
  4. Remove the backgroundColor style under Table Cell > Event > styles

 

Let me know if you’re able to get this to work!

HTH,

Levie

0 votes
I need to provide my users with timeline data. How can I solve this.
0 votes

It is not our plugin!

  • Luca answered Feb 28, 2020 - 6:26 pm
0 votes

I think this plugin to expensive

0 votes

The issue is indeed the call to Remove() it detaches the child nodes as well. Will log the bug. The temporary workaround is not to call Remove() and simply add to another node.

  • Luca answered Feb 28, 2020 - 5:50 pm
0 votes

It’s a premium plugin, see https://fullcalendar.io/docs/timeline-view

  • Luca answered Feb 28, 2020 - 5:13 pm
0 votes

Hi Benjamin,

Can you try the sample I have attached?

Is this the issue you’re describing?

If not, it would be helpful to attach a sample so we can replicate the issue as it is on your machine!

Best,

Levie

0 votes

Hi Luca,

I created a new testproject with a treeview and your handlers seem to work on the visible part but not in memory.

I have 3 parent nodes with 3 child nodes each:

Parent ONE – (children: 1, 2, 3)

Parent TWO – (children: 1, 2, 3)

Parent THREE – (children: 1, 2, 3)

 

Now I move Parent THREE let’s say to position Parent TWO(Child 3) as a child node, so afterwards we should have in treeview1.Nodes only two nodes left, but there are still nodes 0, 1, 2 in memory.

The problem is you do not remove the node at its old position before adding it again on the targetNode:

moveNode.Remove();
targetNode.Nodes.Add(moveNode);

But when I do this, I get exactly the behaviour I described. Under Parent TWO, Child 3 I have now Parent THREE with invisible children 1, 2, 3 (all have Level=0).

With this recursive function I iterate all the nodes (need it for saving to database) and the node that has been moved is being shown twice without being removed. If I remove it in the first place, this function shows them in the correct order and amount, but due to Level = 0 they do not appear in the treeview.

List<TreeNode> GetAllNodes(TreeNodeCollection nodes, List<TreeNode> list = null)
{
if (list == null) list = new List<TreeNode>();
if (nodes == null)
{
return list;
}

foreach (TreeNode node in nodes)
{
list.Add(node);
if ((node.Nodes != null) && (node.Nodes.Count > 0))
{
GetAllNodes(node.Nodes, list);
}
}
return list;
}

 

 

Thanks,

 

Jan

  • Jan Mika answered Feb 28, 2020 - 9:16 am
0 votes

Hi Levie,

ok but ItemUpdate it is triggerd many times, there is no events for ItemsAdded ?

0 votes
In reply to: TabIndex, possible bug

Hi Jorge,

I tried replicating the issue, but with no luck.  Can you please attach a small video demonstrating the behavior? A sample project would help too.

TIA

Levie

0 votes

As a temporary workaround, add this code to the page with the UserComboBox control:

 

private void Page1_Load(object sender, EventArgs e)
{
    this.myDropDownControl.Focusable = true;
}

 

Let me know if this works for you!

Best,

Levie

0 votes

Hi Cristian,

If you want to manipulate the rows, you should use the “ItemUpdate” event of the DataRepeater.  You can attach a handler and do something like this:

private void dataRepeater1_ItemUpdate(object sender, DataRepeaterItemEventArgs e)
 {
 e.DataRepeaterItem.BackColor = (e.DataRepeaterItem.ItemIndex % 2) == 0 ? Color.Yellow : Color.Red;
 }

The ItemsAdded event fires when new items are added to the data source.

 

HTH,

Levie

  • Levie (ITG) answered Feb 27, 2020 - 8:35 pm
  • last active Feb 27, 2020 - 8:36 pm
0 votes

Hi Benjamin,

I was able to replicate the issue and it appears to be an issue with how the TextBox gets focus. I’ve logged the issue as #2178.  We’ll let you know when it’s fixed!

https://wisej.com/issues/

Best,

Levie

  • Levie (ITG) answered Feb 27, 2020 - 8:08 pm
  • last active Feb 27, 2020 - 8:10 pm
0 votes

Hi Simone,

it´s fixed in Wisej release 2.1.43.

Best regards
Frank

0 votes

Hi Cristian,

it´s fixed in Wisej release 2.1.43.

Best regards
Frank

0 votes

You are correct, sorry. I didn’t know that it worked also from the server side. It’s a regression caused by a change in the selection of the text in the elements – it used to grab the focus and now it doesn’t, which is correct but it broke the document.executeCommand(“copy”). Will fix. Do you need a workaround?

  • Luca answered Feb 27, 2020 - 4:35 pm
0 votes

Hi Luca,
thanks for you answer.

Right now we are doing this operation in response of a user event, in particular when user double click a cell of a DataGridView.

Here the complete code:

        private void GridPratiche_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            if (e.Button == MouseButtons.Left)
            {
                int columnIndex = e.ColumnIndex;

                if (gridPratiche.SelectedRows.Count > 0 &&
                    gridPratiche.Columns.ElementAtOrDefault(columnIndex) != null)
                {
                    DataGridViewCell cell = gridPratiche.SelectedRows[0].Cells[columnIndex];

                    if (cell.Value != null)
                    {
                        string textToCopy = cell.Value.ToString();

                        Clipboard.SetClientText(textToCopy);

                        AlertBox.Show("Copiato il testo '" + textToCopy + "'" + Environment.NewLine + "Colonna " + cell.OwningColumn.HeaderText + ".",
                            MessageBoxIcon.Information, true, ContentAlignment.BottomRight, 2000);
                    }

                }
            }
        }

And why until version 2.0.54.0 is working fine ?

Thanks for your help.

0 votes

It is not enough to send the text to the browser, you need to copy it to the browser’s clipboard in response of a user event (a click). All browsers, except IE probably, block any access to the clipboard unless it’s directly initiated by a user action. That’s why all websites that copy text to the clipboard have a little copy button to click.

With Wisej you can send the text to the browser using Clipboard.SetClientText(textToCopy), then you can copy to the browser’s clipboard using Wisej.Core.copy() in response to a client click event. You can attach a client event using ClientEvents, add a “execute” handler and run Wisej.Core.copy();

See also:

https://wisej.com/support/question/copy-text-to-clipboard

  • Luca answered Feb 27, 2020 - 3:57 pm
Showing 5101 - 5120 of 11k results