I noticed that there's a new feature within RadGrid in the latest release: Q3 2008 SP1 (Version Number 2008.3.1125)
Does this mean that a usercontrol edit form can now use standard controls with Bind i.e.
I tried it but could not get the grid to actually perform the update. When I click edit in the grid, it pops up the edit usercontrol with the two textboxes displaying the actual text from the selected row. When I change one of the values and click update, the popup box seems to behave properly (i.e. it closes), there's now error thrown, but the row in the original grid is not updated.
I'm using a simple test grid and a Linq Data Source with inserts, updates and deletes enabled. My Grid has auto updates etc enabled too.
Either my assumption that this is now possible based on the 'what's new' change is mistaken or I've messed up my code.
Any thoughts?
Thanks, Steve
RadGrid
What’s New:
- Added support for automatic updates with UserControl edit form type if the control implements IBindableControl
Does this mean that a usercontrol edit form can now use standard controls with Bind i.e.
<%` Control Language="C#" AutoEventWireup="true" CodeFile="ucTestGrid.ascx.cs" Inherits="UserControls_ucTestGrid" %> |
<asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("FirstName") %>' TabIndex="1" /> |
<asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("LastName") %>' TabIndex="2" /> |
<asp:button id="btnUpdate" text="Update" runat="server" CommandName="Update" /> |
<asp:button id="btnInsert" text="Insert" runat="server" CommandName="PerformInsert" /> |
<asp:button id="btnCancel" text="Cancel" runat="server" causesvalidation="False" commandname="Cancel" /> |
I tried it but could not get the grid to actually perform the update. When I click edit in the grid, it pops up the edit usercontrol with the two textboxes displaying the actual text from the selected row. When I change one of the values and click update, the popup box seems to behave properly (i.e. it closes), there's now error thrown, but the row in the original grid is not updated.
I'm using a simple test grid and a Linq Data Source with inserts, updates and deletes enabled. My Grid has auto updates etc enabled too.
Either my assumption that this is now possible based on the 'what's new' change is mistaken or I've messed up my code.
Any thoughts?
Thanks, Steve