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

CellEditing of RadGrid with GridBoundColumn

5 Answers 319 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Princy
Top achievements
Rank 2
Princy asked on 01 Apr 2009, 01:55 PM

Requirements

RadControls version

2008.03.1314.35

.NET version

2.0

Visual Studio version

2005

programming language

C#

browser support

all browsers supported by RadControls


PROJECT DESCRIPTION
This demo project illustrates how to implement cell editing in RadGrid with GridBoundColumns on clicking particular cell. To accomplish this task, I have captured the UniqueName and RowIndex in client side OnRowClick event and passed to server using AjaxRequest, with an additional string value for confirming update operation. Then, based on these parameters passed, updates corresponding cell in RadGrid. I have used SQL statements in order to update the particular cell.

Thanks,
Princy.

5 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 03 Apr 2009, 08:27 AM
Hello Princy,

I have transferred the code library entry into a forum post, so that other users can benefit from it as well.
You Telerik points have been updated accordingly.

Best wishes,
Yavor
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Eric
Top achievements
Rank 1
answered on 29 Sep 2009, 02:19 PM
Hi Princy


I cannot use it straight as is but there is invaluable information for me about how to handle the grid and its events.

My underlying data is complex/heavy so I can't query it too often. For this reason, I'll probably use Web Services rather than Ajax but your project will be extremely useful.

Thank you so much


Eric
0
Dave
Top achievements
Rank 1
answered on 08 Jun 2010, 04:35 AM
I am able to get this sample working correctly, but when I transfer this to my own application I am running into issues.  I am not able to set the cell into edit mode.  I see the settings getting hit in RadAjaxManager1_AjaxRequest1, but then I have a .rebind call - when the screen is displayed the cell is NOT in edit mode.  Further, if I sort before clicking a cell, the sort is still intact after the onclick.

Here are my grid settings - any thoughts?

 

 

<telerik:RadGrid ID="CurrentTherapyDosingGrid" runat="server" AllowSorting="True"

 

 

 

AutoGenerateColumns="False" EnableHeaderContextMenu="True" GridLines="None"

 

 

 

ongroupschanging="CurrentTherapyDosingGridGoupsChanging"

 

 

 

onneeddatasource="CurrentTherapyDosingGridNeedDataSource"

 

 

 

onprerender="CurrentTherapyDosingGridPreRender" ShowGroupPanel="True"

 

 

 

Skin="Office2007">

 

 

 

<groupingsettings showungroupbutton="True" />

 

 

 

<clientsettings allowcolumnsreorder="True" allowdragtogroup="True" reordercolumnsonclient="True">

 

 

 

<clientevents oncolumnclick="ColumnClick" oncolumncontextmenu="HeaderContextMenu" oncommand="GridCommand"

 

 

 

ongridcreated="GridCreated" onrowclick="RowClick" />

 

 

 

</clientsettings>

 

 

 

<mastertableview allowmulticolumnsorting="True" commanditemdisplay="Top" datakeynames="CTDosing_ID" editmode="InPlace">

 

 

 

<commanditemsettings showaddnewrecordbutton="false"

 

 

 

showexporttoexcelbutton="true" showrefreshbutton="false" />

 

0
Yavor
Telerik team
answered on 11 Jun 2010, 09:03 AM
Hello Dave,

I reviewed the code snippet, and it looks correct. If you are facing any issues, you can open a formal support ticket, and send us a small working project, demonstrating your setup, and showing the unwanted behavior. We will debug it locally, and get back to you with more information on the matter.

Best wishes,
Yavor
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Madhu K
Top achievements
Rank 1
answered on 08 Nov 2017, 08:17 AM

Hi,

Is it possible to give the full code in the forum as I cant open any rar files.

Tags
Grid
Asked by
Princy
Top achievements
Rank 2
Answers by
Yavor
Telerik team
Eric
Top achievements
Rank 1
Dave
Top achievements
Rank 1
Madhu K
Top achievements
Rank 1
Share this question
or