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
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
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:
Let me know if you’re able to get this to work!
HTH,
Levie
I need to provide my users with timeline data. How can I solve this.
It is not our plugin!
I think this plugin to expensive
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.
It’s a premium plugin, see https://fullcalendar.io/docs/timeline-view
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
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
Hi Levie,
ok but ItemUpdate it is triggerd many times, there is no events for ItemsAdded ?
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
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
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
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!
Best,
Levie
Hi Simone,
it´s fixed in Wisej release 2.1.43.
Best regards
Frank
Hi Cristian,
it´s fixed in Wisej release 2.1.43.
Best regards
Frank
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?
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.
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:
