Solved

dojo Grid

Posted on 2010-09-15
1
938 Views
Last Modified: 2012-06-27
Hello , I,m trying to catch the double click event in the dojo grid.

I want that when a user double click over a row i can catch the idex value of the row.

I was looking for onRowDblClick(e), but i dont, know how to use it

Down  the code that i use to create the grid,

var layoutGridHistorial = [{field: 'id', name: 'ID', width: '200px'}];


dojo.addOnLoad(function() {
gridHistorial.setStructure(layoutGridHistorial);




});


function historicoDisplay() {

          
			 
			storeGridHistorial = new dojo.data.ItemFileReadStore({
				url: "../CordS?IDEst="+IDEst+"&opcion="+opcion, urlPreventCache:"true"
				
				//requestMethod:"post"
			});
			
			gridHistorial.setStore(storeGridHistorial);
		    
		}

Open in new window

div id="gridHistorial" jsid="gridHistorial" dojoType="dojox.grid.DataGrid" rowsPerPage="20"    clientSort="false"   
	                 style="height:90%; width:100%;" ></div>

Open in new window

0
Comment
Question by:cano63
1 Comment
 
LVL 1

Accepted Solution

by:
cano63 earned 0 total points
ID: 33697497
Here is the solution.

   function editCheck(e)
{

var value = gridHistorial.store.getValue(gridHistorial.getItem(e.rowIndex), 'id');
alert(value);
}

div id="gridHistorial" jsid="gridHistorial" dojoType="dojox.grid.DataGrid" rowsPerPage="20"    clientSort="false"   onRowDblClick="editCheck"
                     style="height:90%; width:100%;" ></div>
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Is your company's data protection keeping pace with virtualization? Here are 7 dynamic ways to adapt to rapid breakthroughs in technology.
Use of TCL script on Cisco devices:  - create file and merge it with running configuration to apply configuration changes
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now