Jump to content

StringGrid Fixed Row Error


bolossis

Recommended Posts

Hi, there maybe a problem with both grids ( UniDBGrid and UniStringGrid ).

 

When on any grid a fixed row exists then its always in front of everything.

 

Example project and pics are attached

 

 

 

Also another question please.

On a UniStringGrid how can i just on a single click edit the cell and select its content?

I mean there is no option like ClicksToEdit

 

Thanks in advance

post-4324-0-74501500-1520319891_thumb.jpg

post-4324-0-23611700-1520319900_thumb.jpg

Test UniGui.rar

Link to comment
Share on other sites

Hi,

 

Try this approach for now:

procedure TMainForm.UniFormCreate(Sender: TObject);
begin
  UniStringGridDep.ClientEvents.ExtEvents.Values['onafterrender'] := 'function afterrender(sender, eOpts){if (sender.headerCt) {sender.headerCt.el.setStyle("z-index", "auto")}; sender.view.el.setStyle("z-index", "auto");}';
end;

* http://forums.unigui.com/index.php?/topic/5658-unidbdatetimepicker-always-in-front-side/

Link to comment
Share on other sites

Hi,

 

Also another question please.

On a UniStringGrid how can i just on a single click edit the cell and select its content?

I mean there is no option like ClicksToEdit

 

Try this:

procedure TMainForm.UniFormCreate(Sender: TObject);
begin
  UniStringGridDep.JSInterface.JSConfigPlugin('Ext.grid.plugin.CellEditing', ['clicksToEdit', 1]);
end;
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...