Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

dojo Grid

Posted on 2010-09-15
1
Medium Priority
?
961 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

What monsters are hiding in your child's room? In this article I will share with you a tech horror story that could happen to anyone, along with some tips on how you can prevent it from happening to you.
Here in this article, you will get a step by step guidance on how to restore an Exchange database to a recovery database. Get a brief on Recovery Database and how it can be used to restore Exchange database in this section!
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

604 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