Solved

dojo Grid

Posted on 2010-09-15
1
939 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
URL.Encode/Decxode Generating Error 4 233
Jquery validation not working. 29 142
Problem with syntax 17 110
Javascript -- "RIGHT" function ? 3 113
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Knowledge base software has turned out to be a quite reliable method for storing information, promoting collaborative work and for sharing valuable input and solutions.However, some organizations are trying to develop a knowledge base that works wit…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

863 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

24 Experts available now in Live!

Get 1:1 Help Now