All Answers

0 votes
In reply to: Tools Property

Dear Tiago,

By the way, I was wondering how come you are the only one with a picture next to your name… Have I missed some registration procedure?

Best,
Alex

  • Alex Prinias answered Aug 26, 2016 - 4:19 pm
0 votes
In reply to: Tools Property

Dear Tiago,

I didn’t need to restart! In fact, after updating to the latest wisej version (1.2.40), my tools showed up.

Many thanks for your help.

Alex

  • Alex Prinias answered Aug 26, 2016 - 4:15 pm
0 votes

Changed the handler to

private void dataGridView1_CellToolClick(object sender, DataGridViewToolClickEventArgs e)
{
    var cell = ((DataGridView)sender).Rows[e.RowIndex].Cells[e.ColumnIndex];
    cell.Value = string.Empty;
 
    ((DataGridView)sender).EditingControl.Text = cell.Value.ToString();
 
}

and now it works.

  • Tiago Freitas Leal answered Aug 26, 2016 - 3:25 pm
0 votes

Hi Tiago,

It changes the value of the cell, but you don’t see it because the editor is in front of it. Try to change the editor:

((DataGridView)sender).EditingControl.Text = “”;

It’s the same in WinForms. Cell.Value is always the stored value. Cell.EditedFormattedValue is the value in the editor – if in edit mode – or the cell, but it’s read-only.

Best,

Luca

  • Luca answered Aug 26, 2016 - 3:15 pm
0 votes
In reply to: Tools Property

Hi Alex.

There’s nothing wrong with your code. I tryed it on my own project (copy&paste) and it runs all right. So… other than suggesting a computer restart :), I can’t help you.

  • Tiago Freitas Leal answered Aug 26, 2016 - 2:56 pm
0 votes
In reply to: Application Error

Dear Luca,

I apologize, it was my problem, in the web.config. Forget it!

Alex

  • Alex Prinias answered Aug 26, 2016 - 1:44 pm
0 votes
In reply to: Application Error

Luca, I’m sorry, I get the same error even with the latest 1.2.40. The first screen does not show up at all. Since it works on my dev but not on “production” I suspect some problem with the License on the remote server.

Alex

  • Alex Prinias answered Aug 26, 2016 - 1:31 pm
0 votes
In reply to: Tools Property

Hi Tiago,

Thanks for your answer. But I can’t make it work. I do the same as the steps you mention, but in my code, not using the designer. As soon as I create the ComponentTool, i.e. uncomment the first of the commented out lines in the following, I get and empty screen….

Thanks again.
Alex

public partial class Window7 : Form
{
public Window7()
{
InitializeComponent();

var text = new TextBox();
text.Left = 100;
text.Top = 100;
this.Controls.Add(text);

//var tool = new ComponentTool();
//tool.Position = LeftRightAlignment.Left;
//tool.ImageSource = “tab-close”;
//tool.ToolTipText = “Push this to get magic!”;
//text.Tools.Add(tool);
}
}

  • Alex Prinias answered Aug 26, 2016 - 12:31 pm
0 votes
In reply to: Tools Property

Alex,

One of the previous builds had a problem with tools that caused the creation of the widgets to stop.

Best,

Luca

  • Luca answered Aug 26, 2016 - 12:23 pm
0 votes
In reply to: Tools Property

Hi Tiago,

The property to hide the tools when losing the focus is not there yet. It needs to be defined better.

All DGV columns with editors that support tools have the Tools property and are all implemented.

Best,

Luca

  • Luca answered Aug 26, 2016 - 12:20 pm
0 votes
In reply to: Application Error

Hi Alex,

Please use the latest. You can also find loaded on the test server. There was a problem with the toolbox items that interrupted the creation of the widgets on the client.

Best

Luca

  • Luca answered Aug 26, 2016 - 12:17 pm
0 votes

Yes. It wasn’t working when the combobox was dropdown only – not editable

  • Luca answered Aug 26, 2016 - 12:14 pm
0 votes
In reply to: Tools Property

As per 2.1.40.0, replace System.EventHandler by Wisej.Web.ToolClickEventHandler

This same version introduces cell Tools. Use the designer and set the Tools on the relevant column. You must also set CellToolClick event handler.

  • Tiago Freitas Leal answered Aug 26, 2016 - 11:34 am
  • last active Aug 26, 2016 - 12:08 pm
0 votes

Fixed on 1.2.40.0

  • Tiago Freitas Leal answered Aug 26, 2016 - 11:39 am
0 votes
In reply to: Tools Property

Hi Alex,

I just used the designer and  to add componentTool1 Tool to txtAddress TextBox it generated the following code:

Wisej.Web.ComponentTool componentTool1 = new Wisej.Web.ComponentTool();

...

componentTool1.ImageSource = "tab-close";
componentTool1.Name = "clear";
componentTool1.ToolTipText = "ClearTextBox";
this.txtAddress.Tools.AddRange(new Wisej.Web.ComponentTool[] {
componentTool1});

...

this.txtAddress.ToolClick += new System.EventHandler(this.txtAddress_ToolClick);

and also the event handler

private void txtAddress_ToolClick(object sender, EventArgs e)
{
txtAddress.Text = string.Empty;
}

  • Tiago Freitas Leal answered Aug 26, 2016 - 10:33 am
  • last active Aug 26, 2016 - 10:37 am
0 votes
In reply to: Tools Property

Hi guys,

I’m trying to get a Tools in a Textbox, but as soon as I add a Tool to the tools collection, the form becomes invisible. What am I missing? Can you share a piece of implementation code? Below the code I’m using.

Best,
Alex

 

………………………………………

var fOtherForm = new Form();
fOtherForm.MdiParent = this;
fOtherForm.Show();

var text = new TextBox();
text.Left = 100;
text.Top = 100;
fOtherForm.Controls.Add(text);

var tools = new ComponentToolCollection(text);
var tool = new ComponentTool();
tool.Position = LeftRightAlignment.Left;
tool.ToolTipText = “Push this to get magic!”;

// Up to here, the TextBox is visible in the form, after the following line I get an empty screen!

tools.Add(tool);

……………………….

  • Alex Prinias answered Aug 26, 2016 - 10:05 am
0 votes

Hi Frank,

As per 1.2.38.0 Suggest or SuggestAppend modes aren’t working. I checked using the sample Wisej.CustomColumnEditor submitted by Luca on https://wisej.com/support/question/initial-comment-on-datagridview-enhancement

  • Tiago Freitas Leal answered Aug 26, 2016 - 9:30 am
0 votes
In reply to: Tools Property

Hi Luca,

There are 2 issues on this thread:

  1. add a property to the tool to hide it when losing the focus – what’s the status on this?
  2. make the property Tools available for the applicable DGV cell classes – as far as I tested, this isn’t ready (at least for DataGridViewTextBoxCell).
  • Tiago Freitas Leal answered Aug 26, 2016 - 9:15 am
0 votes

Thanks Luca, that fixed it.

Nic

  • Nic Adams answered Aug 26, 2016 - 6:53 am
0 votes
In reply to: Beta Updates

1.2.39.0 Update

Sorry, it’s not fully tested. Still short until Monday.

 

Breaking Changes

– The ToolClick event and OnToolClick method have been changed to be consistent with the .NET event system. Now the sender is the control that owns the tools, and the args is an instance of ToolClickEventArgs with a property named Tool that is a reference to the ComponentTool widget that was clicked. Known issue: The tool button must have a name or it’s not detected correctly by the event.

– The property Application.Context has been removed. There is no need to save and restore the context for out-of-bounds real time updates.

Enhancements
– General speed improvements in the server-client communication and execution.
– General speed improvements in the creation and disposal of widgets on the client side.
– DataGridView designer recognizes inherited controls and serializes the DisplayIndex of added columns.
– All collection editors have been enhanced to recognize extended classes and show them when adding child components.
– All widgets have been enhanced to allow arbitrary child widgets to be added programmatically. For example, you can add buttons to a TreeView, or check boxes to an image. The internal layout is, in most cases, unchanged, the child controls will be placed according to their location, or docking or anchoring values. To adapt the internal layout, if needed, you have to modify the widget at the javascript level.
– The Real Time Push Update system doesn’t require saving the context anymore. Any out-of-bound thread can call Application.Update() to push updates to the client when using a WebSocket connection.
– The DataGridViewComboBoxColumn data binding has been completed.
– Wisej now fully supports Azure Web Site deployments (directly from Visual Studio). Before it worked only as an Azure Web Role or Virtual Machine due to restrictions of the Azure architecture when using the Web Site deployment – namely the lack of GDI support to measure fonts: any ASP.NET library that needs to measure a font doesn’t work as an Azure Web Site. That includes Reporting Services Viewer, PDF generators, etc.
New Features
– Tool buttons have been added to the top of the TreeView, the top of the DataGridView, the top of the MonthCalendar, the ComboBox and the DateTimePicker controls.
– The DataGridView also supports hosting arbitrary controls inside itself. It now acts as a container at design time: you can drop any control on a DataGridView and the widget will adapt its internal layout to make room for the controls depending on the controls’ docking value. For example, if you add a TreeView to a DataGridView and the TreeView is docked to the right, the internal grid layout will line up to the left of the TreeView. This feature can be used to add custom toolbars, status bars, side bars, edit panels, etc. If the dropped in controls are resizable, the internal layout can also be resized by the user. See screen show below for an example of the potential of this new feature:
The image shows a grid (with different docking order) with: a) tool buttons; b) a toolbar; c) a statusbar; d) a tab control containing a treeview with tool buttons aligned left.
– The DataGridViewCellStyle has two new properties: RowSpan and ColSpan. They can be set on individual cells or updated dynamically when processing the cell formatting events.
– DataGridView has a new event CellToolClick, fired when the user click a tool button in one of the column types that support editors with tools.
– The HtmlPanel can handle clicks on any element and fire the new ElementClick event on the server. The new HtmlPanel.AllowNavigation property can be set to false to prevent links from navigating the browser to a different page.
– The AspNetPanel extends the Sytem.Web.Page class with two new methods: this.FindPage() and this.FindForm(). They can be used by the AspNet code running in a postback or callback or update panel to find the form or page hosting the ASP.NET page, allowing for total integration. Note that stanalone AspNet controls are still not supported, they have to be placed in an ASP.NET page. In the future we will support standalone ASP.NETcontrols and ASP.NETpages as embedded resources to allow for the creation of self contained assemblies.
– The DataGridView now support custom editors. You can assign or change the DataGridView.Column.Editor property at any time (even when processing the CellBeginEdit event) and use any control as the editor for the cell. The editor can also be a full form, in which case the data grid will show the form as a client-side modal (not server side modal) and will terminate editing when the form is closed. This features allows a cell to edit complex arbitrary data in custom designed forms.
Item Type Priority Severity Title Resolution
WJ-7515 Bug Low Trivial TextBox.CharacterCasing = Uppercase changes to uppercase only when typing, the value keeps the original casing. Complete
WJ-7516 Bug Low Trivial Typing when a DropDownList combobox is dropped down doesn’t select the items. Complete
WJ-7517 Bug Low Trivial When a scrollable panel shows the vertical scrollbar now it also always show the horizontal scrollbar. Complete
WJ-7487 Bug Low Trivial Child controls inside SplitContainer don’t resize when application starts with WindowState = Maximized Complete
WJ-7513 Bug Low Trivial DGV inner controls docked to bottom or right and resizable don’t update the inner layout correctly. Complete
WJ-7518 Bug Low Trivial Form.CancelButton doesn’t respond to Escape. Complete
WJ-7519 Bug Low Trivial Clicking on the middle of an empty MaskedTextBox may place the caret in between the placeholder string. Complete
WJ-7514 Bug Low Trivial The form control sets the focusable widget property to true and causes an intermittent javascript error. Won’t Fix
WJ-7286 Bug Low Trivial Panel.ResizableEdges = Bottom does not work. Complete
WJ-7287 Task Medium Minor Implement DataGridViewComboBoxColumn data binding. Complete
WJ-7349 Enhancement Low Trivial Show the type of the selected DGV colum in the columns editor. Complete
WJ-7367 Bug Low Trivial DGV: DateTime Column that is bound to the grid wraps Complete
WJ-7418 Bug Low Trivial Long non-wrapping messages in a MessageBox touch the right border. Complete
WJ-7462 Enhancement Low Trivial Add property or method to hide a TabPage without having to remove it from the TabControl. Complete
WJ-7466 Bug Low Trivial Columns added to an inherited DGV don’t serialize their relative DisplayIndex. Complete
WJ-7486 Bug Low Trivial Grid.OnDoubleClick isn’t fired Complete
WJ-7487 Bug Low Trivial Child controls inside SplitContainer don’t resize when application starts with WindowState = Maximized Complete
WJ-7496 Regression Low Trivial Wisej bubbles extensions stopped working. Complete
WJ-7497 Regression Low Trivial all menu items show the checkbox icon. Complete
WJ-7498 Bug Medium Major Clicking on a menu item in a SplitButton generates an ApplictionException “Wisej.Core.Dynamic.Object” does not contain a definition for ‘Item’. Complete
WJ-7499 Bug Low Minor Upload control doesn’t send the same file twice. Complete
WJ-7500 Enhancement Low Trivial Wire clicks inside an HtmlPanel back to the server. Complete
WJ-7501 Task Low Trivial Add Tools to DataGridView Complete
WJ-7502 Task Low Trivial Add Tools to TreeView Complete
WJ-7503 Task Low Trivial Add Tools to MonthCalendar Complete
WJ-7504 New Feature Low Trivial Allow the DataGridView to host arbitrary docked or floating controls. Complete
WJ-7505 New Feature Low Trivial Allow any control to host child controls. Complete
WJ-7506 New Feature Low Trivial Add RowSpan, ColSpan to DataGridCellStyle. Complete
WJ-7508 Bug Low Trivial HelloWorld sample in the installer is broken. Complete
WJ-7509 Bug High Major Azure deployment causes all controls to be created with 0 size and negative locations. Complete
  • Luca answered Aug 25, 2016 - 11:18 pm
Showing 10721 - 10740 of 11k results