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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T01:07:18+00:00 2026-06-05T01:07:18+00:00

I am using SlickGrid with jQuery, and would like to have a compound editor

  • 0

I am using SlickGrid with jQuery, and would like to have a compound editor within a cell as in example 3a, but with two date fields rather than two text fields.

Helpfully, Example 3 shows how to use SlickGrid date pickers to edit date fields, but does not have a compound editor. I would like to combine the two.

So instead of adding input fields in raw HTML when the user clicks on the row, as in example 3a:

this.init = function () {
  $from = $("<INPUT type=text style='width:40px' />")
      .appendTo(args.container)
      .bind("keydown", scope.handleKeyDown);
  $(args.container).append("&nbsp; to &nbsp;");
  $to = $("<INPUT type=text style='width:40px' />")
      .appendTo(args.container)
      .bind("keydown", scope.handleKeyDown);
  scope.focus();
};

I guess I need to use the Slick.Editors.Date editor for $from and $to instead, as in example 3. But how can I set them to use this editor, rather than simply appending an input field?

Thank you for your help.

  • 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-05T01:07:19+00:00Added an answer on June 5, 2026 at 1:07 am

    I think you’ll need to write a custom editor for this and use this new editor for your cells instead.

    Refer this link for documentation and templates for SlickGrid editors:
    https://github.com/mleibman/SlickGrid/wiki/Writing-custom-cell-editors

    All out-of-the-box editors can be found in the slick.editors.js. Once you look at the code, it’s pretty simple to follow. I would suggest starting with the NumericRangeEditor used in example 3a as a base and edit it to include dateFields (or even datePickers) instead of the text-boxes.

    You can add this to slick.editors.js or include it in your own JS file.

    Hope this helps!

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

Sidebar

Related Questions

I'm using Slickgrid and I would like to change behavior of editor. Instead of
Using a restful resource in Rails, I would like to be able to insert
Using Flex 3, I would like to take an image snapshot such as this:
I would like to create multiple grids and switch between them using a dropdown.
I'm trying to follow the simple example of using a DataView with the SlickGrid
Using Rails 3.2.0 with haml and sass: I Would like to link an external
I'm using Slickgrid but I'd prefer not to use slick.model.js . How can I
Using Jenkins or Hudson I would like to create a pipeline of builds with
I have just started using SlickGrid and was hoping someone can help me solve
Using JQuery, how do I select all elements with class x within an element

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.