Scraping a SyncFusion Grid

  • Thread starter Thread starter Curt
  • Start date Start date
C

Curt

I have an application that gets an active instace of IE and parses the html
for a couple peices of infromation that then get passed to another exe as
parameters. Everything works great until the vendor changed from rendering
everything in html to using a Syncfusion grid control. Is there any way to
get at the data in the object? Idealy I would like to get an instance of the
object and access some of the methods like selected row and specific column
data.

Thanks, Curt
 
I have an application that gets an active instace of IE and parses the html
for a couple peices of infromation that then get passed to another exe as
parameters. Everything works great until the vendor changed from rendering
everything in html to using a Syncfusion grid control. Is there any way to
get at the data in the object? Idealy I would like to get an instance of the
object and access some of the methods like selected row and specific column
data.

Thanks, Curt

Hi,

I do not think you can access any method, they are kept in the
server :)
Maybe you could still parse the html, but you would have to do it by
using the DOM.
you could use tag.innerHTML to get the inner HTML (as it's rendered
in the page) not as the static text of the page you see if you right
click in the browser and see the source
 
I've tried using the following code to grab the innerHTML but all I get is
what appears to be an encrypted string.

//Loop through the frames collection and identify the one we
want.
for (int i = 0; i < frames.length; i++)
{
object refIndex = i;
frame = (mshtml.IHTMLWindow2)frames.item(ref refIndex);
FrameInnerHTML = frame.document.body.innerHTML;
if (FrameInnerHTML != null)
{
MessageBox.Show(FrameInnerHTML);
framename = frame.name;
}
}

When the page gets renderd to the user if I try to right click on the grid I
get nothing. I appears that I can't access any of the HTML that gets
rendered.

Thanks,
Curt
 
Back
Top