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

[Solved] In-place edit for DataSet data source

1 Answer 93 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ilija
Top achievements
Rank 1
Ilija asked on 27 May 2008, 10:06 PM
Hi guys,

I am having trouble enabling in-place edit for a grid which has a dataset as a datasource. The dataset is bound to the grid in the Page_Load event, and I'm not sure what's going wrong.

Here's the code-behind:

DataSet _fields = GetListFieldInfo(tableName, MinumumOrdinalField); 
 
            rgFields.DataSource = _fields; 
            rgFields.DataBind(); 

And the ASP.NET code:

<telerik:RadGrid ID="rgFields" runat="server"  
    GridLines="None" Width="563px" AutoGenerateColumns="False"
    <MasterTableView EditMode="InPlace" > 
    <RowIndicatorColumn Visible="true"
    <HeaderStyle Width="20px"></HeaderStyle> 
    </RowIndicatorColumn> 
 
    <ExpandCollapseColumn Visible="False" Resizable="False"
    <HeaderStyle Width="20px"></HeaderStyle> 
    </ExpandCollapseColumn> 
   
    <Columns> 
        <telerik:GridBoundColumn HeaderText="Field" DataField="Field" DataType="System.String"></telerik:GridBoundColumn> 
        <telerik:GridBoundColumn HeaderText="Type" DataField="Type" DataType="System.String"></telerik:GridBoundColumn> 
        <telerik:GridBoundColumn HeaderText="Length" DataField="Length" DataType="System.String"></telerik:GridBoundColumn> 
    </Columns> 
    </MasterTableView> 
</telerik:RadGrid> 


The grid loads normally and gets populated, but I am not able to do an in-place edit when I click on the rows. My goal is to provide custom event handlers for when the user performs an in-place edit of a data row.

Any help would be greatly appreciated.

Edit:
The in-place edit doesn't even appear. The grid just looks like an HTML table with some styles on it(You can't click on rows to get the in-place edit to appear).

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 28 May 2008, 04:55 AM
Hi,

Check out  the following online demo.
Edit on double-click

Shinu.
Tags
Grid
Asked by
Ilija
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or