Jump to content


Photo

DBGrid editing - OnEditButtonClick

dbgrid OnEditButtonClick

  • Please log in to reply
8 replies to this topic

#1 arilotta

arilotta

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 105 posts
  • LocationTrieste, Italy

Posted 07 December 2017 - 02:41 PM

Hi, in VCL DbGrid there is the possibility for a column to pick up a customized editor (a dialog), by setting the column ButtonStyle to cbsEllipsis and managing the OnEditButtonClick event.
UniGUI already implements various DbGrid editors (UniEdit, UniCombo, UniDBLoockUpComboBox, NumEdit, etc.).
 
In some cases, especially when there are many values to choose from, I think that the ellipsis button that could open a specialized dialog is the best solution. (and maybe it is not too difficult to implement...)
 
Thanks
Andrea
 

  • 0

#2 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 5152 posts

Posted 07 December 2017 - 05:46 PM

Hi,

 

At the moment maybe like these solutions ?!:

 

http://forums.unigui...rid/#entry37218

http://forums.unigui...rid/#entry37228


  • 0

#3 arilotta

arilotta

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 105 posts
  • LocationTrieste, Italy

Posted 11 December 2017 - 09:54 AM

Hi Delphi Dev, the solution puts a button when the dataset is in browse mode.

On the contrary, for my needs, it should be visible just in edit/insert mode, and in browse mode

the column should show just the column field value.

 

Thank you


  • 0

#4 neo4a

neo4a

    Newbie

  • uniGUI Subscriber
  • Pip
  • 5 posts

Posted 10 February 2018 - 02:58 PM

Hi Delphi Dev, the solution puts a button when the dataset is in browse mode.

On the contrary, for my needs, it should be visible just in edit/insert mode, and in browse mode

the column should show just the column field value.

 

Thank you

+1

 

Would be enough if TUniEdit is supporting embedded button(s).


  • 0

#5 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 5152 posts

Posted 10 February 2018 - 03:05 PM

Hi,

 

+1

 

Would be enough if TUniEdit is supporting embedded button(s).

 

Yes, right

 

I think this is already possible on ExtJS 6


  • 0

#6 neo4a

neo4a

    Newbie

  • uniGUI Subscriber
  • Pip
  • 5 posts

Posted 10 February 2018 - 03:19 PM

Hi,

 

 

Yes, right

 

I think this is already possible on ExtJS 6

At least to me it will not help much to existing projects because of incompatibility issues to former unigui/extjs releases. But good to know...


  • 0

#7 Stefano Monterisi

Stefano Monterisi

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 150 posts

Posted 14 February 2018 - 09:32 AM

+1


  • 0

#8 david_navigator

david_navigator

    Member

  • Members
  • PipPip
  • 47 posts

Posted 28 May 2018 - 09:10 PM

I think this is already possible on ExtJS 6

What does this mean ? 
Is it something I can add to my code or does it need a mod to unigui ?


  • 0

#9 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 5152 posts

Posted 29 May 2018 - 04:12 AM

I think this is already possible on ExtJS 6

What does this mean ? 
Is it something I can add to my code or does it need a mod to unigui ?

 

This means that you can use one of the configurations, i.e. triggers


  • 0





Also tagged with one or more of these keywords: dbgrid, OnEditButtonClick

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users