This is a migrated thread and some comments may be shown as answers.

Empty Grid - Add New Record doesn't auto grow

1 Answer 58 Views
Grid
This is a migrated thread and some comments may be shown as answers.
K
Top achievements
Rank 1
K asked on 21 Jun 2012, 05:32 PM
All,

I am able to read, save, update, and delete my kendoGrid just fine.  The issue I have is that on a new form, the line grid is of course empty, so when you click the 'Add New Record', the new row displays and you can enter in data just fine, but the row is only big enough for that one line and so, if there is a validation on a field, you cannot see it, since you're already at the bottom of the grid.

Then if you click 'Add New Record' again, the grid only displays enough room for the one line. You have to then scroll down to see the 1st line. I may be missing something here, but I would think the grid would auto-grow after each newly created record, but it doesn't.

Let's continue with the example above where I created 2 lines. When I save the form data, it gets saved to the db and so when that same form is opened, the grid shows both lines just fine.  Now adding a new record again, will just push the 1st line down and only display a max of 2 lines in the grid. I guess this part is ok.

Is there a way so that when you have an empty grid and click the 'Add New Record' for the first time, there is enough room to display more than just 1 row of data so you can see the validations and so that when users continue to add a new record, they can see all the rows in the grid without having to scroll the grid one row at a time?

Thanks in advance!
K

1 Answer, 1 is accepted

Sort by
0
Ravikiran
Top achievements
Rank 1
answered on 05 Sep 2012, 11:54 AM
me to want the same code if anybody plz send it to my mail ravikiran.geddam@gmail.com
Thanks in advance
Tags
Grid
Asked by
K
Top achievements
Rank 1
Answers by
Ravikiran
Top achievements
Rank 1
Share this question
or