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

[Solved] Update a rown in radgrid having RadTreeView as a column

1 Answer 71 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Arun Selvarangam
Top achievements
Rank 2
Arun Selvarangam asked on 19 May 2008, 09:27 PM
Hi I am having a radgrid and in a column i have binded a radtreeview.

when i click edit, the grid row becomes editable and i will be selecting one or more node's checkboxes and select a value from a dropdown in the next column.

on click of update i need to read the selected nodes id values and the value in the dropdown and pass it to a server method to save the changes to the DB.

after clicking update, the grid is still showing update,cancel links which should be reset to edit link.

how to do this kind of operation in radgrid. any idea? my columns in grid looks something like this.

Edit  ID          Tree                      Dropdown
================================
 Edit  1          1. Fruits                  Dropdowncontrol
                        2. Apple
                        3. Banana
            
Thanks,
Arun.K.S

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 20 May 2008, 07:15 AM
Hi Arun,

You can also try the following code snippet to close the Edit form on clicking the Update button.

CS:
protected void RadGrid1_UpdateCommand(object source, GridCommandEventArgs e) 
    { 
         
        e.Item.Edit = false
        RadGrid1.Rebind(); 
         
       // code for doing update 
    } 
  

Thanks
Shinu.
Tags
Grid
Asked by
Arun Selvarangam
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 2
Share this question
or