Results 1 to 3 of 3

Thread: Ajax tooltip for only one column of a grid

  1. #1
    Sencha User
    Join Date
    Mar 2010
    Location
    india
    Posts
    5
    Vote Rating
    0
      0  

    Default Unanswered: Ajax tooltip for only one column of a grid

    Hi,

    Is it possible to have an Ajax tooltip for only a single column of the ExtJS grid?

    If yes, please provide some sample code.

    Thank you.

  2. #2
    Sencha User friend's Avatar
    Join Date
    Apr 2011
    Posts
    895
    Answers
    106
    Vote Rating
    27
      1  

    Default

    Add a renderer to the target grid column, where the tooltip data is taken from a field in the current record:

    Code:
    renderer: function(value, metaData, record, rowIndex, colIndex, store) {
      metaData.tdAttr = 'data-qtip="' + record.get('someFieldName') + '"';
      return value;
    }

  3. #3
    Sencha User
    Join Date
    Mar 2010
    Location
    india
    Posts
    5
    Vote Rating
    0
      0  

    Default

    Hi friend,
    thank you for the reply.
    But my requirement here is to contact server by an ajax call to get the Tooltip content.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •