Hi,
I have a grid in which I wanted to have a tooltip with some text and a picture shown to the bottom of the row when the row is clicked. I tried to get the row element from client side javascript as follows:
this row element id was something like"
the tooltip was shown at the right position but the picture inside tooltip was missing. I tried to set
I have a grid in which I wanted to have a tooltip with some text and a picture shown to the bottom of the row when the row is clicked. I tried to get the row element from client side javascript as follows:
function rowClicked(sender, args) {
var plu = args.getDataKeyValue("PLUCODE")
var pline = args.getDataKeyValue("PLINE")
var masterTable = $find("<%= RadGrid1.ClientID %>").get_masterTableView();
var id = args.get_gridDataItem().get_element().id;
masterTable.fireCommand("ShowDetail", plu + "|" + pline+"|"+id);
}
RadGrid1_ctl00__1
" and was passed to the server side and then the tooltip TargetControlID got set as following:protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
{
if (e.CommandName == "ShowDetail")
{
string[] s = e.CommandArgument.ToString().Split('|');
CurrentItemCode = s[0];
this.ilvRadToolTip.TargetControlID = s[2]; // "RadGrid1_ctl00__1";
this.ilvRadToolTip.Show();
LoadUserControl(PlaceHolder, CurrentControl, s[0], s[1]);
}
}
TargetControlID = RadGrid1.CientID and the tooltip was shown correctly and of course the position was according to the whole grid.
Is there any manipulation inside that caused this to happen ? Would there be any solution as to meet my requirement?
I would appreciate it very much if you could provide some advice. Thank you.