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

Getting ID automatically in Grid Insert - Pls Help ! - Urgent Issue

1 Answer 14 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Abdul Kadar
Top achievements
Rank 1
Abdul Kadar asked on 17 Dec 2008, 02:26 PM
Hi

I need to insert a new row on the grid by clicking on the Add New Row button.This can be done as specified in the tutorial.But my issues is when I click the Add New row button, I need to get the product ID automatically.(max(productid)+1 from the Products Table.How it can be done.Pls guide me regarding this .Its  very urgent.

Product ID

Product Name

Description

Price

1

Tea

Tea

12

2

Coffee

Coffee 1

23

3

Juices

Orange Juice

5

4

Add New Row

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 17 Dec 2008, 02:58 PM
Hello Abdul,

You can get an autogenerated ID as it's shown in the attached example. Please test it locally and let us know if you have another questions.

Let me know if I missed something.

Kind regards,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Abdul Kadar
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or