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

Read a GridBoundColumn value in the ItemCreate event when editing

1 Answer 59 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 14 Oct 2014, 06:34 PM
Hello,

I'm trying to get the value of a GridBoundColumn of a row after I've hit the "edit" button for that particular row.  The reason I want to do this is because I have several RadComboBoxes that need to have its values preselected after I get the datasource and the databind done for each combo box.  Is there a way to do this, or is there another event after the ItemCreate command where I can set the SelectValue of a RadComboBox?

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 17 Oct 2014, 09:41 AM
Hi Daniel,

You can use the SelectedValue='<%# Bind("FieldName") %>' property to achieve the requested functionality:
http://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/form-template-update/defaultcs.aspx

In addition, you can check the following article:
(Section Accessing Controls in Edit/Insert Mode)
http://www.telerik.com/help/aspnet-ajax/grid-accessing-cells-and-rows.html


Hope this helps.

Regards,
Eyup
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Daniel
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or