Since I did it, my radgrids are firing inserts, updates and deletes May it be also helpful to you. Regards, robert. Robert, Thanks for the reply. I received the same tip from Telerik, but they told me to enable the viewstate on the grid as well.
I tried that and am still having the problem. Are you using the ItemCommand event to handle your processing, or are you using the UpdateCommand, DeleteCommand, etc? Thanks, Jim. I use ItemCommand on mine at it works ok, just check for the commandname being sent in if. Jim I made a SF 4. Obviously, yours works, but mine doesn't.
All I can see by the link that you posted is the page source, not the control source. Thanks for the help, Jim. Jim: as in this wonderful forum we cannot attach a zip-file I put it onto my page: sf Enjoy your grid Robert: Thanks for your help on this. I found the problem, but not sure how to fix. It has something to do with my development machine.
I have been working with Telerik Ivan on this for the last few days. He supplied a fresh project that had a grid in a user control. I tried to run it on my machine and it failed. I tried to run it on another machine, and it also failed copied the project from my machine to the other. Then I tried running it on a colleague's machine and it worked perfectly. The difference was the code never touched my machine.
It looks that you implemented automatic data editing with SqlDataSource properly, I do not see any weakness or wrong code. To troubleshoot the updates, use the pointers from this article , at least that is what I do when implementing editing with data source controls for the Telerik grid. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow.
Learn more. Asked 11 years, 5 months ago. Active 8 years, 2 months ago. Viewed 28k times. Greetings Everyone I am new in asp. Here's my code TeacherRole. EnableValidation - A boolean value indicating whether the grid values should be validated upon submit. Defaults to true. CommandsToValidate - An array of string used to list the names of the commands which will trigger validation in RadGrid.
By default, they are "PerformInsert, Update". EnableModelValidation - A boolean value indicating whether model validation should be enabled. ValidationGroup - A property used to set a ValidationGroup for the grid control, so that it is validated only along a certain group of controls having the same group name. By default, the grid does not have a validation group set, so if you set one for your validators, make sure to set it for the grid as well. RadGrid provides an easy way to add required field validators to your generated input controls in Edit mode.
This feature is applicable to:. This property is read-only, however, you can set the properties of the ColumnValidationSettings object it returns.
ModelErrorMessage control validation is available only in the Assemblies targetting the. NET 4. Member since: Jul Posted 27 Jul Link to this post Hello! I used the sample above, and i have a question: How can i delete the add option from the grid?? Posted 23 Feb Link to this post Dear Friend, Your code sample was very useful for me,its working properly without layer,when i am trying to apply it in layered architechture ,its not working.
Can you please explain me how to apply this concept with help of business entities and Business logic methods. Member since: Aug ToString ;" it gets the current row values next how to update the values? Member since: Feb Thanks and regards,.
Posted 12 Aug in reply to Shinu Link to this post While running the above code on click of edit button i am getting an error like Specified Argument was out of the range of valid values parameter name :Index Please suggest. Eyup Admin. Back to Top. RadGrid for ASP. Fill dtTable ;. Close ;. GridCommandEventArgs e. ToString ;. Open ;. ExecuteNonQuery ;. Message ;.
Item as GridEditableItem;. AppSettings "ConnectionString". End Try. End Sub. Item, GridDataItem. Catch ex As Exception. Item, GridEditableItem.
0コメント