471,108 Members | 1,695 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,108 software developers and data experts.

Physical position of table row inside Gridview

Hello All,
I am implementing autocomplete functionality for a textbox inside a gridview. For this I am using a Div control to place the data based on the prefix key entered inside textbox.

As far as getting the data into the Div control is concerned, there is absolutely no problem, but the positioning of Div control is troubling me a lot.

I want the Div Control to be outside the gridview and to be placed dynamically just below of the textbox being edited.

So I want to get the position(Left, Top, Height, Width) of a particular row of GridView(Relative to the Document), so that I can place my Div control just below the textbox(Top + Height) using Javascript. Somebody please help me get the physical position of <TR> or <TD> inside a gridview control.

Thanx in Advance
Nov 28 '07 #1
1 2849
16,027 Expert Mod 8TB
Welcome to TSDN!

You need to set the top and left attributes to textbox.style.top+height_of_textbox and textbox.style.left respectively.
Nov 28 '07 #2

Post your reply

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

Similar topics

4 posts views Thread by Ken Kast | last post: by
14 posts views Thread by Zenobia | last post: by
6 posts views Thread by Edge | last post: by
2 posts views Thread by clickon | last post: by
5 posts views Thread by Roderik | last post: by
7 posts views Thread by =?Utf-8?B?cGF0cmlja2RyZA==?= | last post: by

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.