I have a web grid with large number of rows and I am not interested in paging the grid. I need to view only a particular number of rows initially. Then while scrolling I need to view rows one after the other. I have read it somewhere that it is possible with knockout.js. Do anyone have a sample code to share? Am working with MVC 4 Razor.
How to Lazy load mvc4 webgrid rows using knockout.js ?
1.3k Views Asked by Vishnu Vikraman Sreekala At
1
There are 1 best solutions below
Related Questions in ASP.NET-MVC-4
- Jquery: Change contents of <select> tag dynamically
- redirect to actionResult method from an api
- Open another view through controller from jQuery?
- ASP MVC 5 Html.EditorFor not working / Unable to access/use Default Editor Templates
- Having error in updating my record in database my method as follows
- Is it possible to access an additional custom model property from viewdata.modelmetadata.properties?
- Which plugin is used to show the data in front end of socrata
- Set focus on button that triggered page reload
- jQuery: How to traverse / Iterate over a list of object
- Switching CSS Just for that view?
- Protractor, login to asp,net MVC login page, wait for default page then , redirect to angular page and do tests....how?
- Ajax.beginForm() cannot get post value
- Get desired html element's attribute value and set to hidden field before binding in Asp.Net MVC
- Get Value From Dynamically Populated Hidden Field
- Asp.net MVC Routelink null controller parameter
Related Questions in RAZOR
- Getting and passing MVC Model data to AngularJS controller
- Implement Onfailure in webApi controller
- Dynamic roles list in CustomAuthorize ASP MVC
- Jquery: Change contents of <select> tag dynamically
- Submit Button on Razor View doesn't call Action Result - MVC
- ASP MVC 5 Html.EditorFor not working / Unable to access/use Default Editor Templates
- Convert string to date time in a `cshtml` file using razor?
- jQuery: How to traverse / Iterate over a list of object
- Switching CSS Just for that view?
- Hyperlink in table header is not rendering
- why Special characters apostrophe and others shows like this ’, in HTMl file
- Display a tooltip with Html helper
- Cannot access conditional Razor variable as href
- MVC How to bundle html templates of type "text/html"?
- Set a label value for a checkbox helper in asp.net mvc
Related Questions in KNOCKOUT.JS
- Sort oberservableArray by multiple parameters
- change max-height by clicking collapse button
- J-Query Context Menu updating via Knockout call
- which function will be consider as view model in knockout js
- Change CSS of element in after Move event of Knockout sortable
- How to call a nested function from out side knockout js
- KO binding is not working in IE10 and IE11
- Mapping not working with api call
- Issue with Syncfusion ejGrid and knockout.js when displaying summary rows
- Using Knockoutjs Mapping Plugin inside viewmodel constructor
- Visible bind not updating after Observable change with Knockout
- Knockout computed observable boolean that uses an ajax call not returning boolean on sucess
- Passing a constant or parameter to the data-bind click function in KO.js
- How do I access my viewmodel variables in my knockout component template?
- Loop viewmodel display pattern images on select change
Related Questions in WEBGRID
- Extra Webgrid get added on another webgrid sorting In mvc
- HTML data-attributes in WebGrid rows
- Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: Cannot convert type 'decimal' to 'string' in webgrid
- Using .contents() with .not() to only target text and not children (or how I'm trying to make webgrid pager's screen reader friendly)
- How to get an object from the webgrid.
- MVC 5 partial view not refreshing data after an update
- format a webgrid in mvc4 with html helper
- How to change the colour of an MVC webgrid row text depending on some condition
- Only show date by removing time part from date and time in webgrid.column
- How to change MVC Web Grid structure?
- How to select the Selected Row ID from radiobutton field in MVC 4 WebGrid?
- Can I have one DisplayName for data entry and the Column Headers in a gridview?
- Custom design using webgrid
- How to Lazy load mvc4 webgrid rows using knockout.js ?
- WebGrid DropDownList Selected Value?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I implemented similar control. It was tree view with button "Load more". A lot of items in observable array might slow down your app, especially when you are showing them, because it's a lot of DOM operations.
So, all my data pushes into ordinary array on page load. For data to be shown I have KO observable array. I am pushing more data into an observable array when I need to show it.
Here is basic example:
JavaScript:
HTML Template:
If you need to show more items, you can just call page.showMore();