Hello,
In my grid, I manage amounts with 2 decimals. I don't want to display the decimals only in edit mode. However, I would like to display the amounts with decimals in a tooltip.
How can I do this?
My column like this,
with formatOptions :
Thanks,
Philippe DUFEIL
Hello Riva,Thank you very much for your time. You've solved my problem.
Best regards.
Hello Philippe,
Thank you for following up!
I have been looking into your question and I was able to reproduce the described behavior on my side. Having this in mind, what I could suggest is attaching the tooltip to the target cell in a similar manner as demonstrated in our Tooltip topic here.
Here could be found a modified sample demonstrating this approach and the result could be observed in the below attachment:
Please test it on your side and let me know how it behaves.
Looking forward to your reply.
Sincerely, Riva Ivanova Associate Software Developer
Hello Riva,
I'm sorry but I've another problem relating to our tooltip topic.
I take your example and add 2 columns (Qty and TotalPrice)
public data: any[] = [ { ProductID: 1, ProductName: 'Apple', Qty : 1.0, UnitPrice: 18.0, TotalPrice: 18.0, }, { ProductID: 2, ProductName: 'Orange', Qty : 1.0, UnitPrice: 25.0, TotalPrice: 18.0, }, { ProductID: 3, ProductName: 'Pear', Qty : 1.0, UnitPrice: 7.0, TotalPrice: 18.0, }, { ProductID: 4, ProductName: 'Mango', Qty : 1.0, UnitPrice: 17.0, TotalPrice: 18.0, }, ];
I assign a tooltip to TotalPrice
In my grid, i add a celledit event in order to update TotalPrice when i change Qty cell (Qty*UnitPrice = TotalPrice).
When I change the quantity, the total value is updated in the cell but the tooltip is not refreshed. The tootip still displays the old value.
Could you please have a look on this ?
Thanks a lot.
Philippe
I am glad I was able to assist you regarding this matter.
Thank you for using Infragistics components.
Regards, Riva Ivanova Associate Software Developer
Hello Riva,Thank you for your prompt reply.You have completely understood my problem and your solution is exactly what I expected.
Thank you very much.