ListviewPanelItem and listview.Add() function

1
0

Hello,

As a defacto WVG replacement, it seems you forgot/didn’t want to implement the ListviewPanelItem a VWG concept which represent a listview item that can have a panel attached to it.

The Listview.add() function also doesn’t accept a control as parameter.

Those features were very handy in VWG.

Could also be that you implemented it using another way which is unknown to me.

Do you think we have a chance to see this or a replacement into your product ?

Thanks.

  • You must to post comments
0
0
  • You must to post comments
0
0

Hi Frank

can you please provide the project sample?

Thanks

Orel

  • You must to post comments
0
0

Hi Hichem,

we already added Control property to ListViews.

See demo here: http://demo.wisej.com/ListViewPanels

Best regards
Frank

  • Eric Mathay
    Hi Frank, The fact that we can add any control to the listviewItem & ListviewSubItem is a real cool thing. I tested the Colspan feature and found a minor thing : when clicking on a cell which is spanning to the next cell, the selection highlight border is only pointing to the “not span” cell (for 2 adjacent cells with left cell span=2, either left cell,either right cell, but not left & right). I think the highlight should encompass all cells in the span. Not mandatory, but better looking. In details view, the VWG ListviewItemPanel was a ListviewItem with a panel, which could be shown attached underneath the listviewItem and which appeared under the whole length of the ListviewItem. It had the effect of splitting the Listview and inserting a Panel which could content any controls. See post : https://wisej.com/support/question/listview-extensions-like-in-vwg-listviewpanelitem-subitems-addcontrol Is it me or I can’t reproduce this with the latest version ? By the way, thanks to your team for implementing already this. Good Job :)
  • You must to post comments
0
0

This is exactly what I need in WiseJ, a listview  Panel item or list view with custom control like in VWG.

This is a make or break feature for me when buying WiseJ and am a bit disappointed that it is missing as I like the rest of the controls.

Can you please indicate if and when this would be implemented? Can you please share some insights on this point and if included in your roadmap as I need it urgently and was also looking at integrating Kendo controls on top of WiseJ. has anyone managed to to implement liest view paels with Kendo on top of WiseJ?

Many thanks

Hichem

 

  • You must to post comments
0
0

I didn’t knew that the DataGridView accepted controls, other then the one proposed by the IDE, that’s cool  🙂

I successfully experimented with the progressbar, then wanted to give it a try using a user control, so I made UC with a label, Textbox and CheckBox.

The UC appeared properly in the DataGrid, could focus into the textbox but couldn’t type anything ??? The Checkbox inside the UC can be toggled.

Is it me which is missing something ??

DataGridView1.Columns.Add(“Column1”, “UserCtrl”);
DataGridView1.Columns.Add(“Column2”, “CheckCtrl”);
DataGridView1.Columns(0).Width = 250;
DataGridView1.Columns(1).Width = 150;
Wisej.Web.DataGridViewRow DR = new Wisej.Web.DataGridViewRow();
Wisej.Web.DataGridViewCell DC0 = new Wisej.Web.DataGridViewCell();
UserControl1 UC = new UserControl1();
UC.Dock = Wisej.Web.DockStyle.Fill;

DC0.Control = UC;

DR.Cells.Add(DC0);

Wisej.Web.DataGridViewCell DC1 = new Wisej.Web.DataGridViewCell();
Wisej.Web.CheckBox Chk = new Wisej.Web.CheckBox();
Chk.Checked = true;

DC1.Control = Chk;
DR.Cells.Add(DC1);

DataGridView1.Rows.Add(DR);

  • Luca (ITG)
    Hi Eric, this is an open issue (WJ-8354). Wisej uses the standard javascript event model and all events bubble up. In this case the grid handles the keyboard as if it was not in edit mode and stops the even’t default processing. The fix is in a dev build that we can send to you.
  • Eric Mathay
    Thanks for your dev build proposal, but the experiment I did with the UserControl was just a sample test, no business need for this type of UC. Now I understand the reason why the textbox doesn’t accept input, and it’s good to know this behavior.
  • You must to post comments
0
0

Hi Eric,

thanks for sharing more details on the desired functionality.

To add the progress bars you have several options. In my test case I added them with the Control property that is available to all cells including header cells:

progressbar

This could also be done with inline html.
Please note that the BarColor property used in my code snippet will be available with the next Wisej build.

Hope that helps.

Best regards
Frank

Attachment
  • You must to post comments
0
0

Hi Frank, I agree with you.

Let me explain you what use we currently do with it as a ListviewPanelItem.

With a ListViewPanelItem, you can build an “inline” master-details Grid, saving screen space by not scarifying display surface for the details view. I feel it more efficient if the user doesn’t need permanent drill down.

You can fill the whole display surface as a compact grid. Once the user needs details about a row, it can click it to expand/collapse and see/hide the details Panel.

This Panel can contain anything useful to the details view without being bound to the grid columns format, but shown right under the related “compact” row.

In fact it splits the grid and displays the details view into the grid at the selected row.

This allow to present “inline” a rich set of details which are free to follow any formatting (not the grid columns format), see in our case a TabControl.

This is a presentation mode we like, but we are open to any other which results to a similar behavior.

Can you please show me how you incorporated the colored progress into your DGV sample. I can’t see a progress control as column type.

Best Regards.

  • You must to post comments
1
0

Hi Eric,

as a small side note while we are checking how to improve the ListView is that from my personal experience you can often also use a DataGridView to get the task done. It offers a lot of flexibility by either using html and/or Controls to expand it.
Please fin a small screenshot of a DGV kind of similar to your Listview here:

dgv

In any case, we´ll keep you updated on our progress.

Best regards
Frank

Attachment
  • You must to post comments
0
0

Hi Frank,

For compatibility, I presume you will mimic the VWG ListViewPanelItem, which also accepts different Listview Columns types?

Here is a sample of what I mean, creating the attached picture.

        With ListView1
.SuspendLayout()
.Columns.Add(“”, 20, Gizmox.WebGUI.Forms.HorizontalAlignment.Left)             ‘0  Icon
.Columns(0).Type = Gizmox.WebGUI.Forms.ListViewColumnType.Icon
.Columns.Add(“TXT”, 60, Gizmox.WebGUI.Forms.HorizontalAlignment.Left)          ‘1  TextBox
.Columns(1).Type = Gizmox.WebGUI.Forms.ListViewColumnType.Text
.Columns.Add(“Progress”, 100, Gizmox.WebGUI.Forms.HorizontalAlignment.Left)    ‘2  Progressbar
.Columns(2).Type = Gizmox.WebGUI.Forms.ListViewColumnType.Control
.Columns.Add(“Check”, 100, Gizmox.WebGUI.Forms.HorizontalAlignment.Left)       ‘3  Checkbar
.Columns(3).Type = Gizmox.WebGUI.Forms.ListViewColumnType.Control
.ResumeLayout()
End With

Dim oPanel As Gizmox.WebGUI.Forms.Panel = New Gizmox.WebGUI.Forms.Panel
oPanel.Dock = Gizmox.WebGUI.Forms.DockStyle.Fill
oPanel.Height = 200
oPanel.Visible = False ‘Start with the Panel collapsed

Dim LVPI As Gizmox.WebGUI.Forms.ListViewPanelItem = New ListViewPanelItem(oPanel)

With LVPI
.UseItemStyleForSubItems = False ‘To allow Styling of SubItems

.SubItems.Add(New Gizmox.WebGUI.Common.Resources.IconResourceHandle(“Parking_16x16.png”).ToString)
.SubItems(1).ForeColor = Drawing.Color.Yellow
.SubItems(1).BackColor = Drawing.Color.LightPink
.SubItems.Add(“Text”)
Dim Progress As ProgressBar = New ProgressBar
Progress.Value = 10
.SubItems.Add(Progress)

Dim DTPerf As CheckBox = New CheckBox
DTPerf.Checked = True
.SubItems.Add(DTPerf)
End With

ListView1.Items.Add(LVPI)

 

By the way I’m very glad to read that Wisej accepted my proposal 🙂 , this will be of a great help.

  • You must to post comments
1
0

Hi Eric,

I have logged enhancement request WJ-8485 to allow adding panels to ListViews.

We´ll keep you informed about this request.

Best regards
Frank

  • You must to post comments
Showing 10 results
Your Answer

Please first to submit.