Jump to content

popup buttons in uniDBGrid


x11

Recommended Posts

11 hours ago, x11 said:

There are pop-up buttons in gmail when you move the mouse cursor to the edge of the table.

Is it possible to do something similar in the TuniDBrid column?

Hello,

Need to check.

What selection model are you using (CellModel, RowModel)? 

Link to comment
Share on other sites

Hi, I did my own procedure for this.

When you click on the row of the table, the system displays a panel with action buttons for the row.

My problem with this is only how to get mouse coordinates to show panel under cursor, but i ignore that and i show panel of top begining of grid or row

Link to comment
Share on other sites

1 hour ago, Sherzod said:

Also possible to manipulate the actioncolumn I guess.

Yes, it depends on the needs of the user.

I also made a panel that looks like the Xtamplates Grid and now I have options to design my grid design.

So, If user need:

1. Make actioncolumns

2. Make flow panel with action buttons

3. Listgrid with action buttons and html data from row of dbgrid

I am a happy user of UNIGUI !

  • Upvote 1
Link to comment
Share on other sites

В то-то и дело, что дополнительной колонки не должно быть, т.к. теряется весь смысл удобства.

The fact of the matter is that there should not be an additional column, the whole sense of convenience is lost.

Screenshot_6.jpg

Link to comment
Share on other sites

21 minutes ago, x11 said:

The fact of the matter is that there should not be an additional column, the whole sense of convenience is lost.

 

21 minutes ago, x11 said:

Screenshot_6.jpg

Let's say you are using actionColumn.
If the buttons are displayed on the left side, is this acceptable for you?

Link to comment
Share on other sites

Just now, Sherzod said:

is this acceptable for you

Yes.

The main idea is that buttons appear only when you hover the mouse cursor.

 

(Основная идея - это появление кнопок только при наведении курсора мышки.)

Link to comment
Share on other sites

13 minutes ago, x11 said:

Yes.

The main idea is that buttons appear only when you hover the mouse cursor.

OK.

1. Add ActionColumn, Width = 0

2. CustomCSS

.customGrid .x-action-col-icon {
    display: none;
}
.customGrid .x-grid-item-over .x-action-col-icon {
    display: initial;
}

.customGrid .x-grid-cell-inner-action-col {
    left: 0;
    position: absolute;
}

3. UniDBGrid -> LayoutConfig -> Cls = customGrid

ActionColumnHover2.png.d8d264d8087045bf45b688866a2d6f74.png

Link to comment
Share on other sites

when I press on Edit button then checkbox pressed and breakpoint not work

(Когда я нажимаю на (первую) кнопку Редактировать, то нажимается не кнопка, а чекбокс под кнопкой, как будто кнопка просто нарисована, но ее нет и точка останова не работает).

Screenshot_12.jpg

Screenshot_13.jpg

Link to comment
Share on other sites

press on any button, but log is empty

procedure TfrdRefUsersRights.dbgRefColumnActionClick(Column: TUniDBGridColumn; ButtonId: Integer);
begin
  
  unisession.Log(ButtonId.ToString);
  TUniGridActionColumn(Column).Buttons[ButtonId].Action.Execute;
end;

Event OnColumnActionClick not work

 

Screenshot_14.jpg

Screenshot_15.jpg

Screenshot_16.jpg

Link to comment
Share on other sites

On 1/7/2021 at 12:53 PM, Sherzod said:

Hello,

Can you share your solution?

Yes.

1. Its serverside solution

2. I create procedure for loading sql for selected uniDBGrid, like this:

     1. load sql file from serverlocated directory

     2. in file I have settings for action panel , like what width of panel, how many columns must show , top/left possition of childrens frames with labels, Images, buttons and so on.

    3. after on server load and read from file all data, start panel component creation,

         1. Create master Frame with caption panel (and some master buttons) ScrollBox - parent of all child frames with component for user

         2. from file with settings read how components must have every child panel, for every one read width, height, color, name and so on.

3. Show Master panel with all chield panels.

Now I have control of ActionButtons position, Image and so on.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...