By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,718 Members | 1,220 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,718 IT Pros & Developers. It's quick & easy.

Physical position of table row inside Gridview

P: 1
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
Share this Question
Share on Google+
1 Reply


acoder
Expert Mod 15k+
P: 16,027
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.