Unable to update caption

144
4
Jump to solution
a week ago
pocalipse
New Contributor III

Hi

I'm trying to update the caption on a group control but nothing is happening in the UI from within my code in my C# module: 

pocalipse_0-1714041831750.png

The caption value is updated and has the correct value when ever I run this code but the UI doesn't reflect this value - why?

I've tried using a label in my group on the ribbon as well but that doesn't update either.

What to do ?

0 Kudos
1 Solution

Accepted Solutions
pocalipse
New Contributor III

Hi @StephenRhea_NV5 

Thanks for your reply. I don't like your answer but it is actually a great idea creating multiple groups.

View solution in original post

0 Kudos
4 Replies
EricPfirman
New Contributor III
Did you run Build or Rebuild?
0 Kudos
pocalipse
New Contributor III

What do you mean ?

I'm trying to update the caption at runtime from my C# code in  a module.

0 Kudos
StephenRhea_NV5
Occasional Contributor

As far as I know, you can't update the caption of a ribbon item at runtime. However, you can create multiple group controls in your DAML file that have different captions and show/hide them at runtime via conditions.

0 Kudos
pocalipse
New Contributor III

Hi @StephenRhea_NV5 

Thanks for your reply. I don't like your answer but it is actually a great idea creating multiple groups.

0 Kudos