Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7409223
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:03:00+00:00 2026-05-29T06:03:00+00:00

Ok I am really confused. Right now I am working on getting a datagrid

  • 0

Ok I am really confused. Right now I am working on getting a datagrid to focus on a cell by selecting a point on a map. Below is the javascript that controls the election. I added cell.elements.focus() and it DOES focus on the cell I want it to but it also gives me an error at the same time saying “Microsoft JScript runtime error: ‘element’ is null or not an object” Any idea why it would give me an error but still work? Is there a way I can get rid of this error?

function selectRowByID(sIDField, sID) {
var bSelectionFound = false;
var grid = igtbl_getGridById(_gridID);
if (grid != null) {
    var rows = grid.Rows;
    for (var x = 0; x < rows.length; x++) {
        var row = rows.getRow(x);
        var cell = row.getCellFromKey(sIDField);
        if (cell != null) {
            cell.scrollToView(true);
            if (cell.getValue() == sID) {
                row.setSelected(true);
                cell.element.focus();
                bSelectionFound = true;
            }
        }
    }
}
return bSelectionFound;
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T06:03:00+00:00Added an answer on May 29, 2026 at 6:03 am

    The error says ‘element’ is not set. Try skipping the .element in this sentence

    cell.element.focus();
    

    so it becomes

    cell.focus();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am really confused right now and I can't get any right answers anywhere.
I'm really confused right now. This is my piece of code: NSFileManager *manager =
I'm getting kind of confused right now, having one of those days I guess.
I am a bit confused right now. I have a J2ME app that sends
I'm trying to use regular expression right now and I'm really confuse. I want
I am really confused now on how and which method to use to return
I'm at a point where I'm really confused about how to go about handling
I am confused by C# right now. I have a bunch of classes, say
I am very confused right now. I have VS2008 at my job right now
I'm working with Javascript/jQuery and CSS to have a "background" image of a map

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.