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

Unable to start editing using Batch Edit mode

2 Answers 110 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Windhoek2010
Top achievements
Rank 1
Windhoek2010 asked on 26 Dec 2015, 10:30 AM

Hi,

I'm using RadGrid in Batch Edit mode. In MasterTableView, I have set EditMode="Batch". In BatchEditSettings, I set EditType="Row" OpenEditingEvent="MouseOver".

But when I MouseOver my controls, it doesn't 'enter' into edit mode. I have to click the Edit button to do so. I've tried changing OpenEditingEvent to "Click" or "MouseDown" but all don't work. What am I missing here? 

My code is below:

<telerik:RadGrid Skin="Telerik" ID="RadGridParticipant" runat="server" DataSourceID="SqlDataSourceParticipant" Width="100%"
    AllowAutomaticUpdates="true" OnLoad="RadGridParticipant_Load" OnItemDataBound="RadGridParticipant_ItemDataBound">
    <ClientSettings>
        <Scrolling AllowScroll="false" UseStaticHeaders="True" />
        <Resizing AllowColumnResize="true" ResizeGridOnColumnResize="true" AllowResizeToFit="true" />
    </ClientSettings>
    <MasterTableView AutoGenerateColumns="False" DataKeyNames="Registration_Course_ParticipantID" TableLayout="Fixed" EditMode="Batch"
        CommandItemDisplay="Top" CommandItemSettings-ShowCancelChangesButton="false" CommandItemSettings-ShowAddNewRecordButton="false">
        <BatchEditingSettings EditType="Row" OpenEditingEvent="MouseOver" />
        <EditFormSettings>
            <EditColumn ButtonType="ImageButton" InsertImageUrl="~/Images/btnSave.jpg" UpdateImageUrl="~/Images/btnSave.jpg" CancelImageUrl="~/Images/btnCancel.jpg" />
            <FormTableStyle CellPadding="3" CellSpacing="3" />
        </EditFormSettings>
        <Columns>
            <telerik:GridEditCommandColumn HeaderText="Edit" ButtonType="ImageButton" UniqueName="EditCommandColumn" HeaderStyle-Width="30px" />
            <telerik:GridBoundColumn DataField="Registration_Course_ParticipantID" Visible="false" Display="false" DataType="System.Int64" HeaderText="Registration_Course_ParticipantID" ReadOnly="True" UniqueName="Registration_Course_ParticipantID" HeaderStyle-Width="30px" />
            <telerik:GridBoundColumn DataField="ParticipantName" HeaderText="Participant" ReadOnly="false" UniqueName="ParticipantName" HeaderStyle-Width="20%" />
            <telerik:GridBoundColumn DataField="CompanyName" HeaderText="Company" ReadOnly="true" UniqueName="CompanyName" HeaderStyle-Width="20%" />
            <telerik:GridBoundColumn DataField="Email" HeaderText="Email" Visible="false" Display="false" ReadOnly="true" UniqueName="Email" HeaderStyle-Width="20%" />
            <telerik:GridDropDownColumn DataField="PaymentModeID" DataType="System.Int64" DataSourceID="SqlDataSourcePaymentMode"
                ListValueField="PaymentModeID" ListTextField="PaymentModeName" EnableEmptyListItem="true" EmptyListItemText="" EmptyListItemValue=""
                HeaderText="Payment Mode" UniqueName="PaymentModeID" HeaderStyle-Width="20%" />
        </Columns>
    </MasterTableView>
</telerik:RadGrid>

2 Answers, 1 is accepted

Sort by
0
Windhoek2010
Top achievements
Rank 1
answered on 26 Dec 2015, 01:16 PM
My code seems to work now although I'm not sure what changed. There's no need to reply to this post. Thank you.
0
Viktor Tachev
Telerik team
answered on 28 Dec 2015, 11:21 AM
Hi,

The behavior you were observing is most likely due to a JavaScript error. As Batch Editing relies heavily on client-side logic such error would prevent editing to work as expected.

Since the functionality started working correctly I guess that the error was resolved.

Regards,
Viktor Tachev
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Windhoek2010
Top achievements
Rank 1
Answers by
Windhoek2010
Top achievements
Rank 1
Viktor Tachev
Telerik team
Share this question
or