Tooltip on the spreadsheet cells

4 posts, 0 answers
  1. Edward
    Edward avatar
    13 posts
    Member since:
    Oct 2013

    Posted 12 Jun 2014 Link to this post

    Is it possible to set tooltips on a cell of the spreadsheet?

    Thanks.
  2. Boryana
    Admin
    Boryana avatar
    330 posts

    Posted 17 Jun 2014 Link to this post

    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.
     
  3. DevCraft banner
  4. Edward
    Edward avatar
    5 posts
    Member since:
    Apr 2014

    Posted 18 Jun 2014 in reply to Boryana Link to this post

    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.
  5. Deyan
    Admin
    Deyan avatar
    136 posts

    Posted 23 Jun 2014 Link to this post

    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.
     
Back to Top