All Questions
Tagged with knockout.js asp.net-mvc-4
459
questions
0
votes
0
answers
105
views
baguetteBox - lightbox not working inside knockout js foreach binding
I try to preview image using baguetteBox.run when clicking an image.
The problems are, whenever I click image src inside foreach binding. It redirect to new File src page (File: C/(file url) instead ...
0
votes
1
answer
26
views
MVC4: After bundling the JS is not working properly but without bundling the functionality is working fine
MVC4: After bundling the ViewModel JS is not working properly but without bundling the functionality is working fine
How to compare the JS libraries loaded in the webpage without bundling and after ...
0
votes
1
answer
183
views
Asp.Net MVC 4 Model binding AND knockout binding to select element
I have a page where it currently is using a model property for the "list" of items to select from, as well as a property "selectedItems" for the ones that are already selected. (This is a multi-select ...
0
votes
1
answer
1k
views
Date comparision on cshtml view
I am using the below code to compare 2 dates on cshtml view with knockout binding.
data-bind="visible: (new Date(appointmentDate) - new Date() < 0) && isStart()"
It is working fine but ...
0
votes
0
answers
67
views
How can you conditionally select a Dictionary from an MVVM ViewModel using knockout?
I've got a selection of different Dictionaries in an MVC viewmodel that are to be used a the values for various drop down lists. I want to conditionally select which dictionary to use from my ...
0
votes
0
answers
47
views
AJAX calls are getting null values after some repetitive same requests every second
I have an requirement to get data repetitively from DB and update in page.
So i have used Jquery ajax api call and it will make a request for every second and update the values in page.
But after ...
0
votes
1
answer
1k
views
Get row in which checkbox column is selected - knockout JS
I am totally new to Knockout JS.I am having a table in which one column is input type checkbox.
at the end of html table I have one button as "Add".
Now what I want to do is on click of "Add" button I ...
1
vote
0
answers
126
views
ajax call to controller method fails with UnauthorizedAccess
I've got an MVC app using knockout. In my view model, I have an ajax call to a controller method returning a list of records from a database. That call succeeds without issue. But to edit a ...
0
votes
1
answer
496
views
how to use if condition inside data-bind tag to include attr tag
data-bind="text: slottext() , attr : {title: Label}"
If label is null then i don't want to show attr tag include in this.
0
votes
0
answers
56
views
Knockout JS - foreach: data-bind not get refreshed
SPEC : Building a customer support application.
First time, when a user send a message able to save to DB and show in the view without any issues. And from my end, if i send I am able to push the ...
2
votes
1
answer
4k
views
FileUpload using Knockout in MVC
I need to Upload all type of files using knockout js. I am using MVC 4.0 and i need to Save file separately in a folder. Once i have Uploaded File i need to show it in Grid(FileName, Date Created and ...
0
votes
0
answers
54
views
KnockoutJS with MVC, Model and functions
I am working on a project which includes MVC and KnockoutJS. As this is the first time i'm working with KnockoutJS i'm running into a lot of issues.
I want to put my MVC Viewmodel on the webpage in a ...
0
votes
2
answers
77
views
ASP.NET MVC 4 With knockout
i am using Asp.net MVC .I need to validate all the input fields on form submit using Knockout.
My View is here below. How to apply Validation using knockout. I don't want to apply Observable for ...
0
votes
1
answer
103
views
Navigation problems with pager.js
Im trying to implement pager.js in my knockout SPA.
It is working, sort of, however i am experiencing some strange behaviour, even though I have followed the official guide..
My page structure look ...
0
votes
1
answer
483
views
Passing checked checkbox value to javascript through knockout.js
Iam newbie with knockout js. I need to get the checkbox checked values from asp.net mvc cshtml to be passed to the javascript using knockout js. below is the code
<tbody data-bind='foreach: ...