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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:27:27+00:00 2026-06-16T00:27:27+00:00

update I have moved the code to jsFiddle http://jsfiddle.net/TnSV6/13/ when edit is called the

  • 0

update I have moved the code to jsFiddle http://jsfiddle.net/TnSV6/13/

when edit is called the model is set to a view model and the dialog is opened. however when save or undo is called the modal is set to null but the dialog does not close.

i can make this work if I explicitly use jquery in the jqDialog handler to make the cancel link and ajax complete event close the dialog box, but that feels a bit hackish because jqDialog.update should manage open/close.

it would seem a call is not begin forwarded to jqDialog.update(). but I’m not sure where that is being prevented.

  • 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-16T00:27:27+00:00Added an answer on June 16, 2026 at 12:27 am

    Yes, what I said above is actually the issue. Inside of your with the observable has already been unwrapped, so you are just dealing with the contents of SettingShipmentDate.workOrder. The custom binding does not know about the actual observable that holds it.

    An easy fix would be just to write it like:

    <!-- ko with: SettingShipmentDate.workOrder -->
    <div data-bind="jqDialog: $parent.SettingShipmentDate.workOrder, dialogOptions: {close: $root.SettingShipmentDate.undo}" data-title="Set Shipment Date">
    

    Now your binding is passed the observable workOrder rather than just its contents and the unwrapping that you do in the binding’s update function will be able to create the dependency.

    Sample: http://jsfiddle.net/rniemeyer/Y4JbP/

    Otherwise, you could refactor it a bit to move the with statement onto the div or inside of it. Although, the with is currently protecting against the value being null.

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

Sidebar

Related Questions

My question is simple. First off, take a look at this code: http://jsfiddle.net/Jk8Nr/ All
UPDATE I have updated my code in response to @MichaelRushton comments. I am now
UPDATE - I have fixed some mistakes in the code below and the images
I have a case that uses view inheritance, and my code looks essentially like:
Edit : Moved the actual question to the top. Update : Found an example
I'm using MVC3 and in my view I have the following code block; Response.Redirect(@Url.Action(index,home,
On this site: http://www.rent-turkey-property.com/ I have it set so that when you select a
Update I have just tried Pinning my site to the Taskbar again (after removing
UPDATE: I have somewhat resolved the issue. Just in case if anyone runs in
I have update panel that content check box, textbox, 3 DropDownList with CascadingDropDown extender.

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.