Enlarge image inside the grid with rad tool tip manager

3 posts, 1 answers
  1. unnikkannan m
    unnikkannan m avatar
    31 posts
    Member since:
    Aug 2009

    Posted 13 Oct 2009 Link to this post

    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. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 13 Oct 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. unnikkannan m
    unnikkannan m avatar
    31 posts
    Member since:
    Aug 2009

    Posted 14 Oct 2009 Link to this post

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