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 8327863
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T01:15:28+00:00 2026-06-09T01:15:28+00:00

I am loading a jqgrid with approximately 38 columns of data. The first 6

  • 0

I am loading a jqgrid with approximately 38 columns of data. The first 6 column was frozen and other column was unfrozen (It is a date & month depends on the combo box. please see the sample image here ). When the data is finished loading the jqgrid, I would like to automatically scroll the jqgrid to a specific column in the current day of the month next to the last column of the columns that was frozen. The scroll will depend on the current day (ex: if today is July 26,2012 it would automatically scroll to that specififc day and so on).

And the other is when that day has received data that cell will blink into red and green (those cell that has a data or value will blink into two colors), something like that.

Is anyone has an idea how to do this?
Thanks! . Please see here the sample image of the layout.

  • 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-06-09T01:15:30+00:00Added an answer on June 9, 2026 at 1:15 am

    I use this function to scroll to current Date column

    function scrollToCurrentDate(currentDate,jqGrid){
        var width =0 ;
        var frozenWidth = 0;
        for(var i =0,col;col=jqGrid[0].p.colModel[i];i++){
            width += $("#"+jqGrid[0].id+"_"+col.name)[0].offsetWidth;
            if(col.name.indexOf('Qty')==0){
                var day = col.name.replace('Qty','');
                var date = $("#CurrentYear").val()+'-'+$("#CurrentMonth").val()+'-'+(parseInt(day)<10?"0"+day:day);
    
                if(currentDate == date){  
                    var columnWidth = $("#"+jqGrid[0].id+"_"+col.name)[0].offsetWidth;
                    $(".ui-jqgrid-hdiv").scrollLeft((width-columnWidth)-frozenWidth);
                    $(".ui-jqgrid-bdiv").scrollLeft((width-columnWidth)-frozenWidth);
                    break;
                }
            }
            else{
              frozenWidth += $("#"+jqGrid[0].id+"_"+col.name)[0].offsetWidth;    
            }
        }
    }
    

    And then I call this function in gridComplete:

    scrollToCurrentDate(currentDate,$("#table"));
    

    And in the Blink effect here’s the code.

    var blinkStatus=false;
    var blink = function(){
            //$(".blinker").toggle();
            $(".txtBlinker").css("background-color", blinkStatus?"#CFC":"#FF4F4F");
            blinkStatus=!blinkStatus;
        };
        $(document).ready(function() {
    
            setInterval(blink, 1000);
        });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am loading a jqgrid with approximately 100 rows of data. When the data
I have a jqgrid with data loading from an xml stream (handled by django
I have a Jqgrid which has datatype as local. I am loading data at
I´m loading data from MySQL DB into Java application. How to define column type?
I have a JQGrid which is loading data via AJAX and getting an JSON
I have made one JQgrid which calls Ajax for getting data on loading the
I am using jqGrid . I am loading the data into the grid from
The problem is loading data in jqgrid takes a lot of time, currently I
In my application, I use JQGrid for loading some contacts data, and when I
The loading... message is not being displayed when I provide ajaxGridOptions to the .jqgrid.defaults.

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.