Solved

dojo Grid

Posted on 2010-09-15
1
944 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
The Enter button on the keyboard 5 329
Checkboxes 5 298
Scroll through Images 2 185
Resources for learning AutoLISP 1 66
While it may be true that the internet is a place of possibilities, it is also a hostile environment lurking with many dangers. By clicking on the wrong link, trusting the wrong person or using a weak password, you are virtually inviting hackers to …
Although a lot of people devote their energy toward marketing for specific industries, there are some basic principles that can be applied to any sector imaginable. We’ll look at four steps to take and examine how those steps were put into action fo…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

726 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