We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

error with focus on gridGrouping control

Thread ID:

Created:

Updated:

Platform:

Replies:

58284 Mar 21,2007 12:53 PM Mar 26,2007 07:59 PM ASP.NET Web Forms (Classic) 5
loading
Tags: GridGroupingControl
Rachael Smith
Asked On March 21, 2007 12:53 PM

Hi,

I have a web page with a grid grouping control. When i run the page and click on the grid i get the message:

A Runtime Error has occured.
Error: 'id' is null or not an object

I have debugged into this and it occurs in the focus of the grid.

onfocusin="EG_OnFocusIn(event)"



function EG_OnFocusIn(evt)
{
evt = evt || event;
evt.srcElement.onfocus = null;
eg_focusineventtype = "focusin";
EG_OnFocusChange(evt);
}


function EG_OnFocusChange(evt)
{
var gridObj = GetEGridObj(GetEventSourceElement(evt));



function GetEGridObj(srcElement)
{
while(srcElement != null)
{
_indexOf = srcElement.id.indexOf("~");

It is the id here which is null.

How can i prevent this error occuring for your control?


Many Thanks,
Rachael

Gokul B [Syncfusion]
Replied On March 21, 2007 04:18 PM

Hi Rachael,

We couldn't able to reproduce the issue as you mentioned. We created one sample in which the GridGroupingControl is placed inside web page. And we populate the Grid data from the AccessDatasource. We afraid it doesnt reproduce any issue even if we click the GridGroup. To ensure this we have attached our sample. However could you please send us the sample which causes this issue. It will help us for further investigation.

FocusingGrid

In the mean while Please download our sample and do let us know if you are able to reproduce the issue.

Thanks for using Syncfusion products.

Regards,
Gokulkumar.B

Administrator [Syncfusion]
Replied On March 22, 2007 05:05 AM

Hello,

I have found how to reproduce my issue. I am filling my grid from a datatable which is the result of a query. Therefore when the page is initially rendered the datatable is empty as the user has not made any selections yet and I have not bound any data to the grid so the grid is empty. If in your example you leave the page init method blank and then you click on the table you will get the same error as me.

Thanks

Gokul B [Syncfusion]
Replied On March 23, 2007 09:06 PM

Hi Rachael,

Thanks for your update. It helps us to reproduce the issue.

We can able to reproduce the issue as in attached image file. we noticed that whenever a GridGroup get rendered with no data throws javascript error. So could you please update us is this the one you are mentioning?

GridGroup.zip

We have attached image file to double check the issue.

Regards,
Gokulkumar.B

Rachael Smith
Replied On March 26, 2007 04:54 AM

Yes that is the error I am also seeing. In ie tools>internet options>advanced i have unchecked disable script debugging and therefore i was able to debug and fing the cause of the problem as the focus method. Please let me know when you find a way to resolve this problem.

Thanks

Gokul B [Syncfusion]
Replied On March 26, 2007 07:59 PM

Hi Rachael,

Thanks for your update.

This seems to a bug. Could you please open an new incident in the direct trac with the Forum Id - Forum Subject as the subject line, so that we could update you with more information regarading this issue.

Let us know if you have any other queries.

Regards,
Gokulkumar.B

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;