473,671 Members | 2,214 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to hide calendar or textbox in GridView using JavaScript

2 New Member
Could anybody explain how I can find control (for example calendar or textbox) in GridView row? Then I need to hide it.
I have edit row number.

var grid = document.getEle mentById('<%= GridView1.Clien tID %>');d

Expand|Select|Wrap|Line Numbers
  1. rows = grid.rows;
  2. var row = rows[GView_EditIndex];
  3. //next code return errors
  4. var ELEMENT = row.getElementById('MY_TextBox'); ????
  5. var ELEMENS = row.getElementsByTagName('MY_TextBox'); ????
  6. ELEMENT.style.display = 'none'; ????
  7.  
Jul 10 '12 #1
2 3102
ariful alam
185 New Member
ELEMENT.style.v isibility = "hidden";
Jul 10 '12 #2
iamvova
2 New Member
Thanks for reply. Maybe you also know - how to get CONTROL (textbox with ID "MyTBX") from GridView row?
Jul 10 '12 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
13584
by: Thomas Abraham | last post by:
Hi, The following code to show and hide a row works fine in netscape 7 and IE 6. But everytime the cell is hidden and displayed in netscape, it adds a new line inside the cell. Please advise. ----snip---- <html> <head> <title>Table hide</title> <script language="javascript">
0
2727
by: ck388 | last post by:
For some reason when I enable the callback feature of the gridview I still get a page refresh, that is it seems like there is a postback that occurs, not a callback which is just supposed to update not the whole page, but a portion of the page. Strangely enough the URL below http://beta.asp.net/QUICKSTARTV20/aspnet/doc/ctrlref/data/gridview.aspx (VB GridView Paging and Sorting Callbacks example)
1
2149
by: c.verma | last post by:
I am not able to hide a href element using javascript. Here is my code written on aspx page. On the click of "OK" button, I want to hide href element. But I am getting message: Object required. Any ideas? <asp:textbox id="txtWait" style="DISPLAY: none" runat="server" Width="326px" BorderStyle="None" BorderColor="whitesmoke" ForeColor="Red" ReadOnly="true" Font-Bold="True">Please wait while we process your information...</asp:textbox><br>
3
20661
by: McGeeky | last post by:
Hi. Is it possible to iterate through the items in a GridView using JavaScript on the client? -- McGeeky http://mcgeeky.blogspot.com
4
1660
by: Goofy | last post by:
Hi everyone, My question is related to making a form submit using javascript. Here is my scenario. I have a form, which includes a user control. The user control has a search button and a submit button. I have visably hidden th search button by setting its appearance and added an HTML button which calls the click event of my real server control button. This works fine.
0
1241
by: Nathan Sokalski | last post by:
I have a small form on my ASP.NET page that contains a Calendar control. I want to create a Reset button for the form using JavaScript. This is easy for controls that map directly to html tags, such as TextBox, but is there an easy way to reset the Calendar control without using AJAX? (I would prefer to keep the reset process simple, since the form is just 3 TextBoxes and a Calendar) Thanks. -- Nathan Sokalski njsokalski@hotmail.com...
9
35652
mageswar005
by: mageswar005 | last post by:
Hi Guys, My array textbox validation is not working fine,my code is given below please help me immediately. function validation() { var chks = document.getElementsByName('rr');//here rr is the name of the textbox for (var i = 0; i < chks.length; i++) {
0
2627
by: baburmm | last post by:
Hai, I want to get the footer textbox value in gridview using javascript any one help me Regards, Babu.K
0
1580
by: baburmm | last post by:
hello friends i want to get the footer row textbox value of the gridview using javascript for validating it. how can i get it is there any coding pls help me Thanks in advance, Regards. Babu.K
1
6432
by: baburmm | last post by:
hello friends i want to get the footer row textbox value of the gridview using javascript for validating it. how can i get it is there any coding pls help me Thanks in advance, Regards. Babu.K
0
8392
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8912
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...
0
8819
jinu1996
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...
0
8669
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...
0
5692
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
4222
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
4403
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2049
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1807
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.