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

Binding, ExtractValues GridTemplateColumn

1 Answer 183 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dean
Top achievements
Rank 1
Dean asked on 05 Aug 2011, 07:41 AM

Currently when I call ExtractValues it does not return the values for GridTemplateColumns.
The OnInsertCommand Event handler below shows the code I use to get values from a row in the grid.

Public Sub InsertTimesheetItemCommand(ByVal source As Object, ByVal e As GridCommandEventArgs)
    Dim editableItem As GridEditableItem = DirectCast(e.Item, GridEditableItem)
    Dim values As New Hashtable()
    editableItem.ExtractValues(values) 
End Sub

Below is one of the GridTemplateColumns that does not have its value returned.

<telerik:GridTemplateColumn HeaderText="Job" UniqueName="JobColumn" DataField="JOB_ID" ItemStyle-Width="50px"
    <ItemTemplate
        <asp:Label ID="Label1" runat="server" Text='<%# Eval("Job_Description") %>' /> 
    </ItemTemplate
    <EditItemTemplate
        <telerik:RadComboBox runat="server" ID="JobList" DataTextField="Description" DataValueField="Value" Text="Job"
        </telerik:RadComboBox
    </EditItemTemplate
</telerik:GridTemplateColumn>

Note for this example I want to get the selected value from the combo box displayed in the Hashtable from the extract values method with a key of JOB_ID.

Any help would be much appreciated

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 05 Aug 2011, 08:45 AM
Hello Dean,

You can try the same approach in the following help documentation.
Inserting Values Using InPlace and EditForms Modes.

Thanks,
Princy
Tags
Grid
Asked by
Dean
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or