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

Delete dont commit server side...

1 Answer 84 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Magnus
Top achievements
Rank 2
Magnus asked on 14 May 2011, 02:29 PM
Hi I have a
radgrid that is based on the http://demos.telerik.com/aspnet-ajax/grid/examples/client/clientdelete/defaultcs.aspx

but with an objectdatasource and when I click delete it removes the row clientside but doesnt commit serverside...so if I refresh or reload the page the rows comes back...this was built on the old asp:gridview and worked fine before the modification but not now?

<

 

 

tr:GridClientDeleteColumn ConfirmTextFields="ProductName" 
ConfirmTextFormatString="are you sure you want to remove {0} from your order?"

 

 

 

HeaderStyle-Width="35px" ButtonType="ImageButton" ImageUrl="~/images/icons/cart_remove.png" />

 


Also with the telerik:postback I get error unknown server control so I cant have that on my page at all.

How can I make sure this commits so the objectdatasource triggers the delete?

Thanks,

1 Answer, 1 is accepted

Sort by
0
Magnus
Top achievements
Rank 2
answered on 14 May 2011, 03:24 PM
Ok I figured it out on my own...you have to ad datasourceID to both the <RadGrid> header tag and to the <MasterTableView> tag is there a special reason for this that I dont understand?

I have come a cross several odd things about different controls that doesnt really make sense but there is also alot of features and such that I do like specially the builtin AJAX handling the CDN support and Caching that is worth alot....but If I could make a recomendation to the development team is to fix the Example so that is works for user who copies it alternatively write a comment on that page.

Take care,
Tags
Grid
Asked by
Magnus
Top achievements
Rank 2
Answers by
Magnus
Top achievements
Rank 2
Share this question
or