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

How to Load toolbar in Grid

2 Answers 147 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sameer
Top achievements
Rank 1
Sameer asked on 12 Jun 2012, 01:38 PM
Hi..

I am using a grid which is loaded from database and also toolbar for creating a new record.
But instead of using the tool bar i want a new record to be opened by default at the time of loading the grid.(i.e addrow() method without clicking any button)
how is it possible? pls suggest....

Sameer.

2 Answers, 1 is accepted

Sort by
0
Nohinn
Top achievements
Rank 1
answered on 12 Jun 2012, 03:08 PM

Bind this to your grid's dataBound event:

$('#gridId').data('kendoGrid').addRow();

0
Sameer
Top achievements
Rank 1
answered on 13 Jun 2012, 04:27 AM
Hi Nohinn,

Thanks for your reply.

I have tried it out but i am not able to get the new record in page load.  And more over all the existing records which are being fetched from the database are also binded as nulls.

Is there any other way to do this??
I have attached image for reference...

Thanks,
Sameer.
Tags
Grid
Asked by
Sameer
Top achievements
Rank 1
Answers by
Nohinn
Top achievements
Rank 1
Sameer
Top achievements
Rank 1
Share this question
or