Row InnerText

2 posts, 0 answers
  1. Rahul Khinvasara
    Rahul Khinvasara avatar
    303 posts
    Member since:
    Aug 2007

    Posted 09 Oct 2009 Link to this post

    Hi,

    I am using Q2 2009 . When i  double click on particular row , i want row text.
    Please give me the solution ASAP.

    Regards

    Rahul
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 11 Oct 2009 Link to this post

    Hi Rahul,

    Attach OnRowDblClick event to RadGrid and then access the cell value using getCellByColumnUniqueName method of the GridTableView client-side object.

    JavaScript:
     
    <script type="text/javascript"
        function OnRowDblClick(sender, eventArgs) { 
            var grid = sender; 
            var MasterTable = grid.get_masterTableView(); 
            var row = MasterTable.get_dataItems()[eventArgs.get_itemIndexHierarchical()]; 
            var cell = MasterTable.getCellByColumnUniqueName(row, "CustomerID"); 
            alert(cell.innerHTML); 
        } 
    </script> 

    -Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top