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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T17:42:20+00:00 2026-06-08T17:42:20+00:00

We are trying to create an sj:datepicker Calendar Control in an Editable sj:grid. The

  • 0

We are trying to create an sj:datepicker Calendar Control in an Editable sj:grid. The available edit types are only few (text, textarea, select).

We have seen examples in the jqGrid on how to bring a Datepicker within the grid rows, but couldn’t find any similar option/implementation with the sjg:grid (Struts2-jQuery framework).

Has anyone implemented it ?

Here is all the links & documentation we could find for jQGrid:

http://www.trirand.com/jqgridwiki/doku.php?id=wiki:search_config
jqgrid Save Cell Edit When DatePicker Is Closed
Jquery UI DatePicker In a JQGrid

implement jqgrid cell edit datepicker

jqgrid Save Cell Edit When DatePicker Is Closed
http://www.trirand.com/jqgridwiki/doku.php?id=wiki%3acommon_rules

jqgrid – use datepicker with dynamic colModel

How do I add datepicker in the add row dialog in jqGrid?

jqgrid Save Cell Edit When DatePicker Is Closed

  • 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-08T17:42:21+00:00Added an answer on June 8, 2026 at 5:42 pm

    As of now, i am not seeing a way to get the jquery.ui.datepicker.js file included automatically via the sj:head tag.

    Step 1: Manually download & include the jquery.ui.datepicker.js file in your JSP
    Step 2: Add this jScript function to your JSP page

    <script>
        datePick=function(element) { 
        $(element).datepicker(
                {
                    dateFormat: 'dd-M-yy',
                    buttonImage: "calendar.gif",
                    buttonImageOnly: true
                }
                );
        };
    </script>
    

    Step 3: Add the Grid Column for date. The editoptions is used to bring the calendar

    <sjg:gridColumn name="dateOfBirth" index="dateOfBirth" title="Date of Birth"
        formatter="String" editable="true" editoptions="{size: 12, maxlength: 10, dataInit:datePick,attr:{title:'Select the date'} }"  ></sjg:gridColumn>
    

    Unanswered Question:
    Is there a way to automatically include the jquery.ui.datepicker.js file using the struts2-jquery tags ? The <sj:head jqueryui="true" ></sj:head> is only including the following files.

     <script type="text/javascript" src="/grid/struts/js/base/jquery-1.7.2.min.js"></script>
     <script type="text/javascript" src="/grid/struts/js/base/jquery.ui.core.min.js?s2j=3.3.3"></script>
      <script type="text/javascript" src="/grid/struts/js/plugins/jquery.subscribe.min.js"></script>
      <script type="text/javascript" src="/grid/struts/js/struts2/jquery.struts2-3.3.3.min.js"></script>
    

    eventhough the jqueryui has been set to true, i couldn’t see the datepicker js file included automatically.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to create two different sets of settings for datepicker( http://keith-wood.name/datepick.html )
Trying to create a black line in my view to separate text blocks but
Trying to create Database as follows: USE Master GO IF NOT EXISTS(SELECT [Name] FROM
I'm trying create a box in my Django app that displays text (and possibly
I'm trying to create a DatePicker that slides in over a TableView in order
I'm trying to create a form with a few fields in XUL. I failed
I am trying create a simple WQL query where I only return mounted drives
I was tring to create a simple datepicker control using JQuery, but i was
I'm trying to create an input text through the following code so it can
I am trying and failing to add datepicker to inputs that are created dynamically.

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.