I am using RadGrid with Template Fields.
<Columns>
<telerik:GridTemplateColumn Groupable="false" HeaderText="Assessors" AllowFiltering="false" DataField="SeniorManagerID" UniqueName="SeniorManagerID"
HeaderStyle-Width="10%" ItemStyle-Width="10%"
HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center">
<ItemTemplate>
<%# Eval("SeniorManagerName")%>
</ItemTemplate>
<EditItemTemplate>
<telerik:RadAutoCompleteBox ID="racbSeniorManagers" DataSourceID="sqlAssessors"
EnableEmbeddedSkins="true" Skin="Metro"
EmptyMessage="Add Assessor" InputType="Token"
runat="server" Width="400" DropDownHeight="100" BackColor="White"
AllowCustomEntry="false" TextSettings-SelectionMode="Single"
DropDownWidth="400" DataTextField="SeniorManagerName" DataValueField="SeniorManagerID"
OnClientEntryRemoved="entryRemoved"
RenderMode="Lightweight">
<DropDownItemTemplate>
----------Dropdown code
</DropDownItemTemplate>
</telerik:RadAutoCompleteBox>
</EditItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
The code is
Protected Sub dgAssessors_BatchEditCommand(sender As Object, e As Telerik.Web.UI.GridBatchEditingEventArgs) Handles dgAssessors.BatchEditCommand
Try
Dim oldValue as integer = e.Commands(i).OldValues
Dim newValue as integer = e.Commands(i).NewValues
Here I am able to get the Old Value and New Value of the autocomplete Textbox (Text Property)
But I want the DataValueField value of telerik:RadAutoCompleteBox control inside the dgAssessors_BatchEditCommand event handler?
<Columns>
<telerik:GridTemplateColumn Groupable="false" HeaderText="Assessors" AllowFiltering="false" DataField="SeniorManagerID" UniqueName="SeniorManagerID"
HeaderStyle-Width="10%" ItemStyle-Width="10%"
HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center">
<ItemTemplate>
<%# Eval("SeniorManagerName")%>
</ItemTemplate>
<EditItemTemplate>
<telerik:RadAutoCompleteBox ID="racbSeniorManagers" DataSourceID="sqlAssessors"
EnableEmbeddedSkins="true" Skin="Metro"
EmptyMessage="Add Assessor" InputType="Token"
runat="server" Width="400" DropDownHeight="100" BackColor="White"
AllowCustomEntry="false" TextSettings-SelectionMode="Single"
DropDownWidth="400" DataTextField="SeniorManagerName" DataValueField="SeniorManagerID"
OnClientEntryRemoved="entryRemoved"
RenderMode="Lightweight">
<DropDownItemTemplate>
----------Dropdown code
</DropDownItemTemplate>
</telerik:RadAutoCompleteBox>
</EditItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
The code is
Protected Sub dgAssessors_BatchEditCommand(sender As Object, e As Telerik.Web.UI.GridBatchEditingEventArgs) Handles dgAssessors.BatchEditCommand
Try
Dim oldValue as integer = e.Commands(i).OldValues
Dim newValue as integer = e.Commands(i).NewValues
Here I am able to get the Old Value and New Value of the autocomplete Textbox (Text Property)
But I want the DataValueField value of telerik:RadAutoCompleteBox control inside the dgAssessors_BatchEditCommand event handler?