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

Grid command and client side binding

1 Answer 72 Views
Grid
This is a migrated thread and some comments may be shown as answers.
dennis meadowcroft
Top achievements
Rank 1
dennis meadowcroft asked on 05 Apr 2010, 11:31 PM
I am evaulating radgrid and it's client side functionality for databinding.

My grid is calling a web method and retireves the required data just fine.

I found that when I setup client binding (declarative) as oppoes to standard binding on the server, the edit form no longer appears when the add new record or edit buttons of the grid are clicked. I created a javascript function to call showinsertitem(), but I get a out of memory error with that. is the showinsertitem functional? (using q1 2010 version).

what I would like to do is call another aspx.net page when the add new record or edit buttons are clicked.. is there an example of this?

is it possible to put a custom button in the grid that would do post backs, so I could perfrom server c# functionality?

Thanks in advance

1 Answer, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 08 Apr 2010, 10:49 AM
Hi dennis,

Client-side binding and automatic edit/insert forms is not a scenario supported by the RadGrid control. You need to use an external form in order to insert/update records as shown in the following online example:
http://demos.telerik.com/aspnet-ajax/grid/examples/client/insertupdatedelete/defaultcs.aspx

For that reason also the showInsertItem() method should be used only with server-side bound grid.

As for adding a button to the grid, that's possible, and you can do so in the ItemCreated event of the grid, getting a reference to the item you need (e.g. command item, footer, etc.) and adding the button to the corresponding table cell.

I hope it helps.

Regards,
Tsvetoslav
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
dennis meadowcroft
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Share this question
or