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

Enlarge image inside the grid with rad tool tip manager

2 Answers 154 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
unnikkannan m
Top achievements
Rank 1
unnikkannan m asked on 13 Oct 2009, 12:17 PM
Hai Telerik Team,


                  I'm using radtooltipmanager to enlarge the picture that's binded in the grid as an item template. I'm using the Client event OnRowClick event to get the rowpositiion and from this using the OnRowMouseover of the grid is used to get the datakeyvalue of the row and from that i'm setting the image to zoom on the radtooltipmanager.

          My problem is that I need to get the datakeyvalue on the OnRowMouseover event itself. so that the image can be enlarged on row mouse over.


Please provide me a solution, its urgent
 

Unni

2 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 13 Oct 2009, 01:06 PM
Hello Unni,

Here is an example of how to get the datakeyvalue on the rowmouseover event:
aspx:
<telerik:RadGrid ID="RadGrid1" AutoGenerateColumns="false" DataSourceID="SqlDataSource1" runat="server">           
   <MasterTableView ClientDataKeyNames="CustomerID" > 
              ... 
   </MasterTableView> 
   <ClientSettings> 
       <ClientEvents OnRowMouseOver="RowMouseOver" /> 
   </ClientSettings> 
</telerik:RadGrid> 

js:
function RowMouseOver(sender,args) 
         { 
             var datakeyvalue = args.getDataKeyValue("CustomerID")
             alert(datakeyvalue); 
         } 

Thanks
Princy.
0
unnikkannan m
Top achievements
Rank 1
answered on 14 Oct 2009, 05:00 AM
Hai Princy,
     Thanks for your quick response.

         The solution worked for me. The problem was that when the alert is used to display the datakeyvalue on rowmouseover it displays the value and on clicking 'OK', then on mouseover again it showed the same value. I thought that it will generate only the first row value "that's why it caused confusion to me". When removed the alert I'm getting the datakeyvalue on the mouse over of the row .

Once again thanks Princy

Regards
Unni
Tags
ToolTip
Asked by
unnikkannan m
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
unnikkannan m
Top achievements
Rank 1
Share this question
or