kendo grid select first row

Kendo grid select first row

I am working on a mvc4 project where I use a Kendo Grid.

All Telerik. Now enhanced with:. The application I am working on has a scrolling grid with buttons that go to successive pages 1 , 2 , 3 , etc. Currently when I bring up the first page and scroll halfway down and then press 2 to go to the second page the vertical scrollbar stays in the same position. The desired change is to have the scroller positioned at the top of the grid when I press 2 to go to the second page. When I ran the program I got a JavaScript runtime error: "e" is undefined.

Kendo grid select first row

Similar Question How to remove element one by one with same class after scrolling down? Accessing elements inside. How to use Coldfusion toScript when refreshing a page in Jquery Mobile? How to remove setTimeout function when ajax return 1? Issue with binding in jQuery for copied elements Get child window location for the JQuery dialog How to show validation message after radio buttons? Reverse-engineer regex pattern to find number of tokens and length of expected matches Is it possible to re-call a successful jQuery selector? NET's ClientID Infinite scroll on already populated div Recuperate variable from an other function "create" event using jquery's "live" show hidden div when element is moused over and keep displayed until mouse leaves either element. Related Query Kendo Grid - can you add row with a popup and edit inline? Kendo Grid get row and column index on Change event How get row state selected or not in kendo grid Drag and Drop - Create a new Grid Row while dragging Remove table row if first cell of that row contains value greater than 50 and lessthan using jquery? Identify the last flexbox of first Row and first flexbox of last row Kendo UI: grid: conditional style based on compare of the values in 3rd and 4th cells, for each row how to get Kendo grid row selection jquery total and subtotal for each dynamic row is only calculating first row Add class to td except first and second coloumn of each row How to change row color in Kendo UI Grid based on hidden column ID? Conditionally expand row in kendo grid Kendo UI grid is not firing create, update and destroy events kendo grid cell appear with animation in each cell and each rows like solitaire cards How can I highlight a link on first click; and follow it on second click, unless clicked elsewhere, then reinitialize non-highlighted state?

Frozen Rows Locks specific rows in place while scrolling the sheet. Please note if you have applied filters to your grid you can use GetFilteredInNonGroupByRows method of the Row and get the first row of returned collection.

Sign in Email. Forgot your password? Ask a Question. Please Sign up or sign in to vote. See more: Kendo. Posted 9-Mar pm An nd Rajan

All Telerik. Now enhanced with:. There are a few different ways described to select the first row in a grid programmatically, but they all seem to rely on the markup of the grid, and not the data in the grid. However, that only works if there is no filtering. Of course, we could check if filtering is enabled this is dynamic in our case , and adjust the code accordingly. Still, it doesn't feel robust, instead it would be better to select referencing the data, something like:. Hello Fredrik, Thank you for the code snippets and details provided. In the Event handler, get the first dataItem from the current view in the dataSource of the grid. Use its " uid " to find the needed row and apply the " k-state-selected " class to it.

Kendo grid select first row

All Telerik. Now enhanced with:. New to Kendo UI for jQuery? Download free day trial. The Kendo UI for jQuery Grid enables the end user to select rows or cells from the table, and process their data or make calculations based on this selection. This demo showcases two Grids in different selection modes.

Trinidad ramirez

Bouzid Aissoui posted over 8 years ago in reply to Milko Venkov. Submit answer. Learn More. Gantt Chart A project management tool to schedule projects. Reply Cancel. Find anything about our product, documentation, and more. Vladimir Iliev Telerik team. This is because the frozen columns feature works with the separate tables for the frozen and non-frozen columns. Skip to content asp. Dave Kreskowiak. Created by CB Collin Barrett. Matthew Kraft posted over 8 years ago in reply to Milko Venkov. Accept Solution Reject Solution.

All Telerik.

Add a row to kendo grid programmatically without grid refresh. Accept Solution Reject Solution. Forgot your password? Refer to the second example for a workaround. John Top achievements Rank 1. SLA Reliable service guaranteed. Blog Discover new ideas and perspectives. Reply Reject Answer Cancel. Find and Replace Locate and update content in PowerPoint. All Telerik. Formulas Built-in calculation engine for evaluating formulas. Hi John, I tested the behavior with our SignalR example and setting the scroll position when paging works as expected on my end. Maps Perfect for displaying maps from map providers. Webinars NEW Watch our collection of informative webinars.

3 thoughts on “Kendo grid select first row

Leave a Reply

Your email address will not be published. Required fields are marked *