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

popup edit does not succceed in updating

1 Answer 30 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Clive Hoggar
Top achievements
Rank 1
Clive Hoggar asked on 19 Dec 2008, 06:43 PM
Hi

I have a grid and am using popup edit mode straight out of the box. (no customizing yet)
However when I make change in the edit form the database content does not change
although there is no error message. Can you suggest where to look?

I had built a regular asp.net grid/formview page of the same thing and it updates
just fine, so it is not a permissions issue.

I am using an Accessdatasource control for the database, and Version 2008.3.1125
 of the RadControl.

Thanks for any pointers. I am stumped!

Clive

1 Answer, 1 is accepted

Sort by
0
Steve Y
Top achievements
Rank 2
answered on 19 Dec 2008, 07:54 PM
Hi Clive,

There's two main places to check.

1. Is your datasource setup to allow for updates. I don't use access but here's an axample of the declaration for a linq data source. Note the EnableUpdate, etc

<asp:LinqDataSource ID="LinqDS_Properties" runat="server"  
    ContextTypeName="RealTracProDataContext" EnableDelete="True"  
    EnableInsert="True" EnableUpdate="True" TableName="rtp_Properties"
</asp:LinqDataSource> 


2. In the RadGrid declaration, you should also tell it you want automatic updates performed. If not, you'll be expected to provide the update in code behind somewhere. Here's an example I'm using...

<telerik:RadGrid ID="RadGridOpportunities" runat="server"  
        AllowAutomaticUpdates="True" AllowAutomaticInserts="True"  
        DataSourceID="LinqDS_Opportunities" GridLines="None" Skin="Office2007"  
        AllowSorting="True" EnableHeaderContextMenu="True"  
        AllowFilteringByColumn="True" EnableLinqExpressions="true" > 

Hope this helps,
Steve
Tags
Grid
Asked by
Clive Hoggar
Top achievements
Rank 1
Answers by
Steve Y
Top achievements
Rank 2
Share this question
or