473,770 Members | 7,229 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need help with Datagrid Control in edit mode and Javascript

I have calendar control in Javascript including in the Head of mu page:
<script charset="iso-8859-1" language="JavaS cript"
src="popcalenda r.js"></script>

I call this calendar popup with a image link button and working very good:
<asp:Textbox CssClass="edit_ item" id="txtEditDern ieresResolution s"
runat="server" width="80"/>
<a href='javascrip t:showCalendar( frmForm.imgDern ieresResolution s,
document.getEle mentById("txtEd itDernieresReso lutions"),
"yyyy-mm-dd","",1,750) '>
<img src="images/cal.gif" name="imgDernie resResolutions" width="16"
height="16" border="0" align="middle">
</a>

Under this Textbox control in the same page, I have a Datagrid control.
When entering in edit mode of this datagrid control, my calendar above don't
working. I have a Javascrip error at this line in the popcalendar.js source:
crossobj=(dom)? document.getEle mentById('calen dar').style : ie?
document.all.ca lendar : document.calend ar;

Why javascrip calendar not working when my datagrid control is in edit mode?
I don't understand.
Please help me!

Thanks
Nov 18 '05 #1
1 1675
did you get help with this?

--
Regards,
Alvin Bruney
Got tidbits? Get it here...
http://tinyurl.com/3he3b
"Gilles T." <gi************ @hotmail.com> wrote in message
news:q1******** *************@n ews.easynews.co m...
I have calendar control in Javascript including in the Head of mu page:
<script charset="iso-8859-1" language="JavaS cript"
src="popcalenda r.js"></script>

I call this calendar popup with a image link button and working very good:
<asp:Textbox CssClass="edit_ item" id="txtEditDern ieresResolution s"
runat="server" width="80"/>
<a href='javascrip t:showCalendar( frmForm.imgDern ieresResolution s,
document.getEle mentById("txtEd itDernieresReso lutions"),
"yyyy-mm-dd","",1,750) '>
<img src="images/cal.gif" name="imgDernie resResolutions" width="16"
height="16" border="0" align="middle">
</a>

Under this Textbox control in the same page, I have a Datagrid control.
When entering in edit mode of this datagrid control, my calendar above don't working. I have a Javascrip error at this line in the popcalendar.js source: crossobj=(dom)? document.getEle mentById('calen dar').style : ie?
document.all.ca lendar : document.calend ar;

Why javascrip calendar not working when my datagrid control is in edit mode? I don't understand.
Please help me!

Thanks

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
2340
by: Gilles T. | last post by:
How I can get element ID in the edit mode of datagrid control? If I not in the edit mode, there are no problem. <asp:TemplateColumn ItemStyle-CssClass="grid_column_width_3" ItemStyle-HorizontalAlign="center" ItemStyle-VerticalAlign="top"> <ItemTemplate><%# CType(Container.DataItem("DateStatut"),DateTime).ToString("yyyy-MM-dd") %></ItemTemplate> <EditItemTemplate> <asp:TextBox width="80" CssClass="edit_item" id="txtDateStatut"
5
3875
by: Dieter Depuydt | last post by:
Hi All, Is is possibible to put all records in a Datagrid in Edit Mode. So my users, can chose a record, put the cursor in the first field of the record, edit it, and just click on 'Save' ? Dieter
6
4479
by: Mark | last post by:
I have been working for quite some time on this issue which in theory should be quite simple. The problem is that the Cancel and Save events are not fired when their respective buttons are clicked. I have read several posts which say to put your column generating section in the Page_Init section and it will solve the problem....however, it hasn't solved mine. Can somebody please take a look at this and provide any insight if possible?
0
2406
by: mike | last post by:
Hi there: I've read an excellent "how to"-article by Microsoft (no. 306227) - partly cited cited at the end of this email). I have implemented the code related to the part "How to Add a CheckBox Programmatically" in my code. I have changed it to use a OLDDB.DBReader to populate the datagrid and for the databinding. It works perfectly - also when using the edit-mode in the datagrid.
2
2339
by: Sky | last post by:
Hello: Another question about trying to wring functionality from a DataGrid... Have a DB table of "Contacts" -- 14 or more fields per record Show in datagrid -- but only 5 columns (First,Last, Fax, Phone, Category). Put an Edit column at the end... Now what?! If you go into Edit mode -- you can only edit 5 cells -- not all the rest of the Record's fields...not enough!
0
473
by: Steve | last post by:
I have a datagrid that is created at run time DataGrid dgG = new DataGrid(); BoundColumn bcB; dgG.CellPadding = 5; dgG.CellSpacing = 0; dgG.GridLines = GridLines.Both; dgG.CssClass = "SectionTableLines"; dgG.DataKeyField = "PlanWorkOrderID";
3
1406
by: louise raisbeck | last post by:
Hi, I have been on this for hours and just cannot work it out. I have a datagrid. I set the edititem index to a row to edit, that works. However if i want to put a value into this textbox it wont let me. I just cant find the control in the controlcollection for the cell. Is it because it hasnt rendered yet? (very annoying as i have set the edititem to the index, done my databound etc.) why doesnt it recognise the textbox? so: ...
0
1703
by: Chris | last post by:
I've been searching all over and think I am close, but keep getting the error "Index out of range" when trying to reference a nested datagrid when an OnEditCommand event is raised. When the OnEditCommand event is raised, I try to do the following: 1. Find the selected datalist item in which the nested datagrid raised the event. (by calling getDataGridReference and returning the DataList's selectedIndex)
2
1875
by: Peted | last post by:
Hi i have a winforms app in vs2008 c# i have a billingdatagrid on the form, and is shows 4 columns and many rows of data. The far left colum shows an arrow to inidcated the currently selected row.
0
10230
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10004
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9870
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7416
isladogs
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...
0
6678
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();...
0
5313
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...
0
5450
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3576
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2817
bsmnconsultancy
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.