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

  • Home
  • SEARCH
  • 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 8033251
In Process

The Archive Base Latest Questions

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

Is there any work around for client side data binding in mvc. I’m looking

  • 0

Is there any work around for client side data binding in mvc. I’m looking for something like implementing a observable pattern on client side somehow?

  • 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:38:20+00:00Added an answer on June 5, 2026 at 1:38 am

    Take a look at knockout it might provide something like what you are after

    From their site

    Declarative Bindings Easily associate DOM elements with model data using a concise, readable syntax

    Automatic UI Refresh When your data model’s state changes, your UI updates automatically

    Dependency Tracking Implicitly set up chains of relationships between model data, to transform and combine it

    Templating Quickly generate sophisticated, nested UIs as a function of your model data

    Also

    Knockout is a JavaScript library that helps you to create rich,
    responsive display and editor user interfaces with a clean underlying
    data model. Any time you have sections of UI that update dynamically
    (e.g., changing depending on the user’s actions or when an external
    data source changes), KO can help you implement it more simply and
    maintainably.

    Headline features:

    Elegant dependency tracking – automatically updates the right parts of
    your UI whenever your data model changes. Declarative bindings – a
    simple and obvious way to connect parts of your UI to your data model.
    You can construct a complex dynamic UIs easily using arbitrarily
    nested binding contexts. Trivially extensible – implement custom
    behaviors as new declarative bindings for easy reuse in just a few
    lines of code.

    In order to prevent some of the additional work in creating viewmodels if you already have JSON objects being returned to the client you could use the Knockout Mapping plugin:

    Knockout is designed to allow you to use arbitrary JavaScript objects
    as view models. As long as some of your view model’s properties are
    observables, you can use KO to bind to them to your UI, and the UI
    will be updated automatically whenever the observable properties
    change.

    Most applications need to fetch data from a backend server. Since the
    server doesn’t have any concept of observables, it will just supply a
    plain JavaScript object (usually serialized as JSON). The mapping
    plugin gives you a straightforward way to map that plain JavaScript
    object into a view model with the appropriate observables. This is an
    alternative to manually writing your own JavaScript code that
    constructs a view model based on some data you’ve fetched from the
    server.

    There are also other frameworks that do similar things like:

    • Backbone.js
    • More alternatives here

    If you want to implement it without using a “big” framework maybe take a look at this:

    • https://stackoverflow.com/questions/1005300/example-of-javascript-observer-pattern
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any better way to make this query work? I'm looking for a
Is there any way to crop a photo using client side JavaScript only? When
Is there any reason why this shouldn't work? [PseudoCode] main() { for (int i
Is there any way to get the work item query results preview pane to
Is there any way to make this work in Java? public static void change(List<?
Are there any guidelines to writing Google App Engine Python code that would work
Is there any way I could run the following 'logical code' to actually work?
I'm looking for a suitable client side architecture that will meet some or all
Is there a client event that I can use for when a DropDownList's data
When I started using xVal for client-side validation, I was only implementing action methods

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.