0

I have to draw some shapes depending on the status of the row. For them to work in IE I had to use Raphael javascript library. I'm using ASP.NET and C# for the codebehind. The way to draw is by coordinates, how can I get the coordinates of the rows so I can draw something outside the gridview, at it's side?

Thank you

user1412716
  • 99
  • 2
  • 3
  • 9

1 Answers1

0

I recommend using jQuery for this. The jQuery api has a .position(), and .offset() method which would give you a top and left value. See jQuery Tutorials, .position(), and .offset() for specifics.

Edit

If jQuery isn't your bag, then I found a post that includes an example function done in JavaScript: Dynamically retrieve Html element (X,Y) position with JavaScript.

Community
  • 1
  • 1
Jeremy
  • 8,902
  • 2
  • 36
  • 44