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

RadGridViwe Cell Editing

3 Answers 78 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Danyeung
Top achievements
Rank 1
Danyeung asked on 28 Jan 2011, 12:01 AM
I saw the demo from this link http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/clienteditbatchupdates/defaultcs.aspx that user can double click on the RadGridView cells to edit them. I tried to learn from the sample code to create the grid for cell editing, but it is not working.  See the code below.  What did I miss?  Thanks.

<telerik:RadGrid ID="DistributorRadGrid" runat="server" GridLines="Both" >
                <MasterTableView EditMode="InPlace" >
                <CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
  
                <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                <HeaderStyle Width="20px"></HeaderStyle>
                </RowIndicatorColumn>
  
                <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                <HeaderStyle Width="20px"></HeaderStyle>
                </ExpandCollapseColumn>
  
                <EditFormSettings>
                <EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
                </EditFormSettings>
                </MasterTableView>
  
                <FilterMenu EnableImageSprites="False"></FilterMenu>
  
                <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default"></HeaderContextMenu>
            </telerik:RadGrid>

var varDistributors =
                 from d in MORContext.GetTable<Distributor>()
                 where (d.Active == true && d.Distributor_Type_id == 1 )
                 orderby d.Distributor_Name
                 select new {  Distributor_Name = d.Distributor_Name, 
                               DistributorID = d.Destributor_ID };

3 Answers, 1 is accepted

Sort by
0
Henrik
Top achievements
Rank 1
answered on 28 Jan 2011, 07:33 AM
I think you need to provide more info/code for us to help you!

Is the problem databinding or what is really your issue?

//h
0
Danyeung
Top achievements
Rank 1
answered on 28 Jan 2011, 05:03 PM
The data binding works, but the cell editing doesn't work.  It is like a read-only grid.  Thanks.
0
Tsvetina
Telerik team
answered on 02 Feb 2011, 12:11 PM
Hello Danyeung,

In order for the grid to work properly, you need to add the other code logic from the demo, too. You can try by first taking the code from the demo into a standalone project by following the instructions available here:
Instructions

If you still have problems afterwards, I would advise you to open a formal support ticket and send us a runnable version of the code that you are working on, so we can see what is wrong and help you fix it.

Best wishes,
Tsvetina
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Grid
Asked by
Danyeung
Top achievements
Rank 1
Answers by
Henrik
Top achievements
Rank 1
Danyeung
Top achievements
Rank 1
Tsvetina
Telerik team
Share this question
or