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

RadGrid - Getting DataValueField of RadAutoCompleteBox in BatchEditing

1 Answer 71 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sukesh
Top achievements
Rank 1
Sukesh asked on 20 Jun 2014, 04:17 AM
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?




1 Answer, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 24 Jun 2014, 10:00 PM
Hello Sukesh,

You have entered your query in the Telerik Testing Framework forum which is dedicated to customers trying to use the Testing Framework for automated testing of their website. After reading your inquiry it sounds more like you're trying to figure out how to use and implement the RadGrid on your website, is this true? If so I will redirect your inquiry to our RadGrid support team. We, the testing framework support team don't know the RadGrid control.

Regards,
Cody
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
Tags
General Discussions
Asked by
Sukesh
Top achievements
Rank 1
Answers by
Cody
Telerik team
Share this question
or