which data control allows me to use a cell doubleClick event?
I have time cells (something like Outlook calendar) and when user double
click on one cell I would like to redirect to other window where he could
insert events for that time. Then he go back to that page and see event in
that cell.
How can I do that?
Thank you,
Simon 4 2449
The html would be something like
<table border="1" cellspacing="0" cellpadding="0" >
<tr>
<td
onDblClick="jav ascript:window. location='http://www.google.com' ">Double Click
this cell</td>
</tr>
</table>
Now to get that in a data bound control...
Perhaps with
..attributtes.a dd("onDblClick" ,"javascript :wi ndow.location='/yourInsertEvent P
age.aspx'")
On the relevant cell, during itemcreated or itemdatabound
"simon" <si*********@st ud-moderna.si> wrote in message
news:eM******** ******@TK2MSFTN GP12.phx.gbl... which data control allows me to use a cell doubleClick event?
I have time cells (something like Outlook calendar) and when user double click on one cell I would like to redirect to other window where he could insert events for that time. Then he go back to that page and see event in that cell.
How can I do that?
Thank you, Simon
Thank you for your answer. Attributes.Add has only dataGrid( before I had
dataRepeater).
Now I would like that function test is executed when user doubleClicks on
the cell.
I must know which cell is, that I can insert events for that cell (time in
fact, because each cell represent the hour of a day) so I use
e.Item.itemInde x. But this code doesn't work.
Do you know why?
Private Sub DataGrid1_ItemC reated(ByVal sender As Object, ByVal e As
System.Web.UI.W ebControls.Data GridItemEventAr gs) Handles
DataGrid1.ItemC reated
DataGrid1.Attri butes.Add("onDb lClick", test(e.Item.Ite mIndex))
End Sub
Function test(ByVal indeks)
label1.Text = indeks
End Function
Thank you,
Simon
"Joe Gass" <jo*@dontspamme .com> wrote in message
news:uA******** *****@tk2msftng p13.phx.gbl... The html would be something like
<table border="1" cellspacing="0" cellpadding="0" > <tr> <td onDblClick="jav ascript:window. location='http://www.google.com' ">Double
Click this cell</td> </tr> </table>
Now to get that in a data bound control... Perhaps with
..attributtes.a dd("onDblClick" ,"javascript:wi ndow.location='/yourInsertEvent P age.aspx'")
On the relevant cell, during itemcreated or itemdatabound "simon" <si*********@st ud-moderna.si> wrote in message news:eM******** ******@TK2MSFTN GP12.phx.gbl... which data control allows me to use a cell doubleClick event?
I have time cells (something like Outlook calendar) and when user double click on one cell I would like to redirect to other window where he
could insert events for that time. Then he go back to that page and see event
in that cell.
How can I do that?
Thank you, Simon
Hello,
I tried your example, it works ok, but I need to redirect to the page with
ID of clicked cell
If I try like this, I always get the ID of the last cell:
Private Sub DataGrid1_ItemC reated(ByVal sender As Object, ByVal e As
System.Web.UI.W ebControls.Data GridItemEventAr gs) Handles
DataGrid1.ItemC reated
If e.Item.ItemInde x <> -1 Then
Dim key As String = DataGrid1.DataK eys(e.Item.Item Index).ToString ()
DataGrid1.Attri butes.Add("onDb lClick", "test('" & key & "')")
End If
End Sub
and on page:
<SCRIPT language="javas cript">
function test(id)
{
window.location ='http://www.redirectPag e.aspx?id="+id
}
</SCRIPT>
Or with other words, How can I know which cell was double clicked?
Thank you,
Simon
"simon" <si*********@st ud-moderna.si> wrote in message
news:Ox******** ******@TK2MSFTN GP12.phx.gbl... Thank you for your answer. Attributes.Add has only dataGrid( before I had dataRepeater). Now I would like that function test is executed when user doubleClicks on the cell. I must know which cell is, that I can insert events for that cell (time in fact, because each cell represent the hour of a day) so I use e.Item.itemInde x. But this code doesn't work.
Do you know why?
Private Sub DataGrid1_ItemC reated(ByVal sender As Object, ByVal e As System.Web.UI.W ebControls.Data GridItemEventAr gs) Handles DataGrid1.ItemC reated
DataGrid1.Attri butes.Add("onDb lClick", test(e.Item.Ite mIndex))
End Sub
Function test(ByVal indeks)
label1.Text = indeks
End Function Thank you,
Simon
"Joe Gass" <jo*@dontspamme .com> wrote in message news:uA******** *****@tk2msftng p13.phx.gbl... The html would be something like
<table border="1" cellspacing="0" cellpadding="0" > <tr> <td onDblClick="jav ascript:window. location='http://www.google.com' ">Double Click this cell</td> </tr> </table>
Now to get that in a data bound control... Perhaps with
..attributtes.a dd("onDblClick" ,"javascript:wi ndow.location='/yourInsertEvent P age.aspx'")
On the relevant cell, during itemcreated or itemdatabound "simon" <si*********@st ud-moderna.si> wrote in message news:eM******** ******@TK2MSFTN GP12.phx.gbl... which data control allows me to use a cell doubleClick event?
I have time cells (something like Outlook calendar) and when user
double click on one cell I would like to redirect to other window where he could insert events for that time. Then he go back to that page and see
event in that cell.
How can I do that?
Thank you, Simon
Hello,
I tried your example, it works ok, but I need to redirect to the page with
ID of clicked cell
If I try like this, I always get the ID of the last cell:
Private Sub DataGrid1_ItemC reated(ByVal sender As Object, ByVal e As
System.Web.UI.W ebControls.Data GridItemEventAr gs) Handles
DataGrid1.ItemC reated
If e.Item.ItemInde x <> -1 Then
Dim key As String = DataGrid1.DataK eys(e.Item.Item Index).ToString ()
DataGrid1.Attri butes.Add("onDb lClick", "test('" & key & "')")
End If
End Sub
and on page:
<SCRIPT language="javas cript">
function test(id)
{
window.location ='http://www.redirectPag e.aspx?id="+id
}
</SCRIPT>
Or with other words, How can I know which cell was double clicked?
Thank you,
Simon
"simon" <si*********@st ud-moderna.si> wrote in message
news:Ox******** ******@TK2MSFTN GP12.phx.gbl... Thank you for your answer. Attributes.Add has only dataGrid( before I had dataRepeater). Now I would like that function test is executed when user doubleClicks on the cell. I must know which cell is, that I can insert events for that cell (time in fact, because each cell represent the hour of a day) so I use e.Item.itemInde x. But this code doesn't work.
Do you know why?
Private Sub DataGrid1_ItemC reated(ByVal sender As Object, ByVal e As System.Web.UI.W ebControls.Data GridItemEventAr gs) Handles DataGrid1.ItemC reated
DataGrid1.Attri butes.Add("onDb lClick", test(e.Item.Ite mIndex))
End Sub
Function test(ByVal indeks)
label1.Text = indeks
End Function Thank you,
Simon
"Joe Gass" <jo*@dontspamme .com> wrote in message news:uA******** *****@tk2msftng p13.phx.gbl... The html would be something like
<table border="1" cellspacing="0" cellpadding="0" > <tr> <td onDblClick="jav ascript:window. location='http://www.google.com' ">Double Click this cell</td> </tr> </table>
Now to get that in a data bound control... Perhaps with
..attributtes.a dd("onDblClick" ,"javascript:wi ndow.location='/yourInsertEvent P age.aspx'")
On the relevant cell, during itemcreated or itemdatabound "simon" <si*********@st ud-moderna.si> wrote in message news:eM******** ******@TK2MSFTN GP12.phx.gbl... which data control allows me to use a cell doubleClick event?
I have time cells (something like Outlook calendar) and when user
double click on one cell I would like to redirect to other window where he could insert events for that time. Then he go back to that page and see
event in that cell.
How can I do that?
Thank you, Simon
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Maulin Vasavada |
last post by:
Hi,
I have DataTable and I want to actually put a LinkLabel in one the
columns where I can click an do something BUT it seems I can't put
LinkLabel in the table cell of DataTable. So as an alternative I
thought if I can detect double click events on a cell I can get the
text in there and do something but I am not able to do so.
Please let me know if I have to provide more information to help solve
this problem.
|
by: mdb |
last post by:
I need to detect when the user double-clicks on a cell in a DataGrid in
WindowsForms, but the doubleClick event doesn't seem to respond when its in
the data area. (It does respond if I double click the row header.)
Any suggestions?
-mdb
|
by: Lalit Bhatia |
last post by:
Hi
when focus is on a cell in datagrid. double click event does not occur.
when I double click on rowheader, columnheader then this event fires.
I am using DataGridTableStyle in the grid.
--
Regards,
Lalit Bhatia
|
by: Tony Fields |
last post by:
Please Help!!!
I need to capture the following for the current cell of a datagrid on a
webpage when I double-click a cell:
1. Field name (ie. "State", which should be the same as the label,
correct?
2. Cell value (ie. "ALABAMA")
Purpose: I need to be able to filter the grid's rows by double-clicking
|
by: Agnes |
last post by:
My aim is "select the entire row when the user clicks on a cell in the row
AND then catch the double click"
I can do it separately .eg I can get the double click on any cell but fail
to select the entire row.
OR. selct the entire row but fail to catch the double click.
Anyone can do it both sucessfully ??
| |
by: Francois Searle |
last post by:
Hi
I have a datagrid that is popolated by a search result. I would then like to
double click on a row to open the record in a new form.
The double click doesn't seem to "fire"? I am relively new to VB.NET (coming
from VB6). How does one capture the double click event on the datagrid?
Any tips will be appreciated.
|
by: Nick |
last post by:
Hey guys,
I have 2 events on a windows forms datagrid, the mouse move as well as the
double click events.
What's happening is that when I double click on a row in the grid, the mouse
move event gets triggered and the double click is not identified at all.
Is there any way I can invoke the double click when the mouse move also
exists?
|
by: Brett Romero |
last post by:
I'm allowing double clicks on a DataGrid by using a counter and timing.
However, the user must click two different cells for the double click
to work. The reason is once they click into a cell, it can be edited.
At that point, a double click does nothing. Is there a way to disable
editing on a DataGrid so the double click will work off of one cell
rather than two?
I'm also doing
DataGridTextBoxColumnvar.TextBox.Enabled = false;
|
by: sumuka |
last post by:
Hello everyone,
How do i achieve left double click in vb 6 . The user has to left double click on the flex grid's cell and the msgbox is to be displayed .
So how can i do this.
Thanks in anticipation,
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |