Problems updating gridcontrol when inside a multipage:Javascript error

Hi,

I have a gridgrouping control inside a multipage inside a callback panel. This is because the user is creating a query with which to publish data to the grid and so when the page first loads i want the empty grid to be hidden behind a welcome screen. When i do my call back i am changing the page to the one which contains the grid and so i need it inside the callback panel. When i do my callback everything works fine except i have a runtime error: 'hdnField' is null or not an object.

Debugging points to this section of code.
var hdnField = document.getElementById('GridGroupingControl1'+'_HIDDENFIELD');

I'm pretty sure this error is because me grid is not displayed on the page and so it cannot do getElement by id, it returns null.

How can i avoid this error?

Thanks for your help
Rachael



3 Replies

GB Gokul B Syncfusion Team March 27, 2007 12:15 AM UTC

Hi Rachael,

My sincere apologize for this time delay.

We started working on this issue and let you know the details tomorrow.

Thanks for being patience.

Thanks for using Syncfusion products.

Regards,
Gokulkumar.B


NJ Nicklas Jonsson March 27, 2007 05:26 AM UTC

I have the exact same problem running the grid inside a placeholder.

/Nicklas


VA Valli Syncfusion Team April 3, 2007 02:01 PM UTC

Hi Rachael,

Sorry for the delay in getting back to you.

Herewith i have attached a sample, in which GridGrouping control is placed inside a multipage which is embedded within a callback panel.

http://www.syncfusion.com/Support/user/uploads/Grid_13a6b0db.zip

Please try running the sample and let us know if your facing the same issue as in the attached sample.

If so, this issue has been resolved in our latest version which is ready for testing.

Please let us know if you have any other queries.

Thanks for your patience.

Regards,
Valli

Loader.
Up arrow icon