Jump to content


Photo

ToolBar Column - hide some buttons for rows

NxToolBarColumn6 buttons hide

  • Please log in to reply
5 replies to this topic

#1 MatejSi

MatejSi
  • Members
  • 6 posts

Posted 28 February 2020 - 11:30 AM

Hello,

is it possible to hide some toolbar buttons in NxToolBarColumn6 for individual row based on some cell value?

 

For example if cell on first column of the row has value = 0, then hide first button in toolbar column for that row?

 

Thank you,

Matěj



#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 7,856 posts
  • Gender:Male

Posted 28 February 2020 - 09:20 PM

Hello Matěj,

 

You can use OnSetCell event of the Column. Inside this event is best place to additionally adjust any cell before it's being drawn. For example you can read ARow parameter and then set some of the properties.

 

In your case maybe it will be nice to have Visible property for each button. If you want, I can add it for upcoming release. Then, inside this event you can set Visible to some of the button(s) to false.


boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Members Section: bms.bergsoft.net
Articles and Tutorials: dn.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#3 MatejSi

MatejSi
  • Members
  • 6 posts

Posted 02 March 2020 - 09:10 AM

Hello Boki,

yes, the visible property would be exactly what I wanted. Could you please add it?

 

So I guess there is no way how to do it with current release?

 

Thank you, Matěj



#4 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 7,856 posts
  • Gender:Male

Posted 02 March 2020 - 08:52 PM

Hi,

 

If you want, I can give you updated version?


boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Members Section: bms.bergsoft.net
Articles and Tutorials: dn.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#5 MatejSi

MatejSi
  • Members
  • 6 posts

Posted 03 March 2020 - 08:52 AM

Hello, 

yes please, it would be great.

 

Thank you



#6 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 7,856 posts
  • Gender:Male

Posted 03 March 2020 - 10:59 PM

Hi,

 

Please look your private message.

 

Inside OnSetCell event of Column, you will need to set .Visible property of some of the buttons.


boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Members Section: bms.bergsoft.net
Articles and Tutorials: dn.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users