CellEditing of RadGrid with GridBoundColumn

6 posts, 0 answers
  1. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 01 Apr 2009 Link to this post


    RadControls version


    .NET version


    Visual Studio version


    programming language


    browser support

    all browsers supported by RadControls

    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.

  2. Yavor
    Yavor avatar
    11 posts

    Posted 03 Apr 2009 Link to this post

    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,
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
  3. Eric
    Eric avatar
    82 posts
    Member since:
    Feb 2009

    Posted 29 Sep 2009 Link to this post

    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

  4. Dave
    Dave avatar
    23 posts
    Member since:
    Jun 2010

    Posted 07 Jun 2010 Link to this post

    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"












    onprerender="CurrentTherapyDosingGridPreRender" ShowGroupPanel="True"








    <groupingsettings showungroupbutton="True" />




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




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




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








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




    <commanditemsettings showaddnewrecordbutton="false"




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


  5. Yavor
    Yavor avatar
    11 posts

    Posted 11 Jun 2010 Link to this post

    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,
    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.
  6. Madhu K
    Madhu K avatar
    1 posts
    Member since:
    Mar 2017

    Posted 08 Nov 2017 in reply to Princy Link to this post


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

Back to Top