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

InLine Edit with RadGrid

1 Answer 129 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 03 Feb 2010, 12:19 AM
I am looking for some tips on using the Inline edit feature of the Radgrid.

In normal mode, my grid row will have this look:
Header >:  Name    Date Of Hire 
ROW >:      steve     01/01/2001    <edit link>

When I click on the <edit link>, I will enter the inline mode.  I want the value in the Name column to remain a Literal and I want the Date Of Hire column to turn into a RadDatePicker control.

How would I define the controls within the <Columns></Columns> elements of the RadGrid.

Thanks.

Steve

1 Answer, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 03 Feb 2010, 04:01 AM
Hello Steve,

I hope you do not want to allow the NameField to be editable in your grid. If thats the case, then you can set the ReadOnly property of the column to true. Here's an example:

aspx:
<telerik:RadGrid ID="RadGrid1"  runat="server" OnNeedDataSource="RadGrid1_NeedDataSource1"
   <MasterTableView> 
        <Columns> 
            <telerik:GridBoundColumn ReadOnly="true" DataField="Name" UniqueName="Name"></telerik:GridBoundColumn> 
            <telerik:GridDateTimeColumn UniqueName="DateOfHire" DataField="DateOfHire">                       
            </telerik:GridDateTimeColumn> 
              .... 

Thanks
Princy.
Tags
Grid
Asked by
Steve
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or