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
Solved

dojo Grid

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
submit 7 411
Ajax contents 13 287
node js inconsistent results 10 164
Problem with small jquery script 6 53
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
The business world is becoming increasingly integrated with tech. It’s not just for a select few anymore — but what about if you have a small business? It may be easier than you think to integrate technology into your small business, and it’s likely…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

829 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