Unplanned
Last Updated: 29 Mar 2023 14:44 by Daniel
Daniel
Created on: 29 Mar 2023 14:44
Category: DataGrid
Type: Feature Request
1
DataGrid: Programmatically Invoke Tooltip

Hi Team,

I would like to be able to programmatically invoke a ToolTip on a specific cell.

 

It would be great if you were able to allow us to use a DataGridCellInfo item and string or View content for the tooltip (like UI for WPF allows)

var cellInfo = new DataGridCellInfo(rowToSelect, columnToSelect);

// Option 1 - Quick and easy
var stringContent = "I'm a tooltip";
MyRadDataGrid.ShowTooltip(cellInfo, stringContent);


// Option 2 - For everyone who needs more than just a string.
var customContent = new HorizontalStackLayout();
customContent.Children.Add(new Image{ Source = new FileImageSource{File = "warning.png"}});
customContent.Children.Add(new Label{Text = "I'm a tooltip"});

MyRadDataGrid.ShowTooltip(cellInfo, customContent);

 

0 comments