This is a migrated thread and some comments may be shown as answers.

Tooltip on the spreadsheet cells

3 Answers 135 Views
Spreadsheet
This is a migrated thread and some comments may be shown as answers.
Edward
Top achievements
Rank 1
Edward asked on 12 Jun 2014, 07:22 PM
Is it possible to set tooltips on a cell of the spreadsheet?

Thanks.

3 Answers, 1 is accepted

Sort by
0
Boryana
Telerik team
answered on 17 Jun 2014, 02:54 PM
Hello Edward,

Thank you for writing.

Would you please provide a bit more information about your scenario? For example, would you like to show a tooltip when the cell is selected similarly to the tooltips in the Data Validation feature? Or you would like to display it upon hovering over a cell?

I am looking forward to your reply.

Regards,
Boryana
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Edward
Top achievements
Rank 1
answered on 18 Jun 2014, 03:14 PM
I am trying to show error messages after validation step.
I was thinking more of the latter, but would the first option also work?
I am not familiar with that option...
Also if I can show the error message on the statusbar in addition that would also be helpful.  Is it also possible to set the message on the status bar?  

(I am logging in under different account- work account to respond to this message.)

Thanks.
0
Deyan
Telerik team
answered on 23 Jun 2014, 04:05 PM
Hello Edward,

I am attaching a demo project showing how to implement custom ui layer in RadSpreadsheet. This way subscribing for changes in the selection, a tooltip is shown on the active cell index if it is in some desired range. A TooltipManager class is responsible for validating on which cell a tooltip will be shown (in the example the cells with green background has tooltip).

As for the StatusBar, currently Spreadsheet's status bar is not easily customizable. That is why the best I can suggest is to implement your own statusbar, where you can log messages when needed.

Additionally I would like to point out that the UpdateUIOverride method in TooltipUILayer has two implemented overloads. That is because the overload using WorksheetUIUpdateContext is obsoleted and will soon be removed from RadSpreadsheet's API. That is why it is a good idea to use both overloads and next Q when the obsoleted method is removed you will have to simply delete its implementation from the attached sample project in order to build it successfully.

I hope this is helpful. If you have any other question do not hesitate to contact us again.

Regards,
Deyan
the Telerik team
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
Spreadsheet
Asked by
Edward
Top achievements
Rank 1
Answers by
Boryana
Telerik team
Edward
Top achievements
Rank 1
Deyan
Telerik team
Share this question
or