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

client side insert on datatable

3 Answers 38 Views
Grid
This is a migrated thread and some comments may be shown as answers.
SAFAA
Top achievements
Rank 1
SAFAA asked on 31 Jul 2012, 05:57 PM
How to insert data into temporary datatable and display it in a grid client-side while clicking a button

My scenario is :

1) A combo with Productname as text,productid as value
2) A textbox for displaying Qty.
3) A button (ADD)

After selecting the products from the combo, and entering the Qty , When the user clicks the ADD button, the data has to be updated on the temp datatable on clientside. And need to display that data in grid. How can I achieve this. Pls provide me a sample code as I'm new to telerik and script

3 Answers, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 03 Aug 2012, 04:36 AM
Hi Safaa Mariam,

You need to insert the item into the underlying data-source and rebind the grid as demonstrated in the following online example:
http://demos.telerik.com/aspnet-ajax/grid/examples/client/insertupdatedelete/defaultcs.aspx

You have that one in the QSF folder of your telerik controls installation. The code is available online as well.

Hope it helps.


All the best,
Tsvetoslav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
SAFAA
Top achievements
Rank 1
answered on 03 Aug 2012, 06:48 PM
I can't understand the code. 


Can u pls provide me the sample code for the scenario I explained on my previous posts

It will be very helpful for the beginners like me

thanks for your reply
0
Tsvetoslav
Telerik team
answered on 06 Aug 2012, 10:47 AM
Hi Safaa,

I am providing you the code for the example I have referred to - it contains your functionality and a little bit more than that.

Greetings,
Tsvetoslav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
SAFAA
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
SAFAA
Top achievements
Rank 1
Share this question
or