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

on update cant delete

3 Answers 20 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Carlos
Top achievements
Rank 1
Carlos asked on 17 Sep 2013, 04:21 PM
HI all,

So i have a radgrid with the edit/remove/ add commands, the problem here is that when  I edit ou insert, after that i cant remove, i receive the error,

Conversion failed when converting the varchar value ' ' to data type int.


any ideas???

Best Regards

3 Answers, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 18 Sep 2013, 04:50 AM
Hello,

Please provide your code?

Thanks,
Jayesh Goyani
0
Carlos
Top achievements
Rank 1
answered on 18 Sep 2013, 09:41 AM
I found out what the cause, i have an "ID" Field that i use to delete from the database, and it work fine if i donot update, that ID field its hidden, from people, when i insert or update, when i try to delete i receive a field with &nbsp.

Regards
0
Accepted
Eyup
Telerik team
answered on 20 Sep 2013, 10:22 AM
Hello Carlos,

The following topic explains the reasons and consequences for the mentioned change:
http://www.telerik.com/community/forums/aspnet-ajax/grid/breaking-change-hidden-column-cell-text-is-not-persisted-in-viewstate.aspx

Hope this helps. Please excuse us for any inconvenience this might have caused you.

Regards,
Eyup
Telerik
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 the blog feed now.
Tags
Grid
Asked by
Carlos
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Carlos
Top achievements
Rank 1
Eyup
Telerik team
Share this question
or