We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Grid Custom Command - save edit grid - refresh page

Thread ID:

Created:

Updated:

Platform:

Replies:

121150 Nov 14,2015 10:53 AM Nov 16,2015 10:56 PM ASP.NET Web Forms 3
loading
Tags: Grid
Pratheep
Asked On November 14, 2015 10:53 AM

Hi

When save records or edit records ( one grid column is Custom Command) web page is  refreshing - it's possible with out refresh add or edit records in grid ?

  <ej:Grid ID="OrdersGrid" runat="server" ClientIDMode="Static" AllowPaging="True" OnServerEditRow="EditEvents_ServerEditRow"
                    OnServerAddRow="EditEvents_ServerAddRow" OnServerDeleteRow="EditEvents_ServerDeleteRow">
            <ClientSideEvents ActionComplete="complete" EndAdd="endAdd" EndDelete="endDelete" EndEdit="endEdit" />

              <ej:Column Field="OrderID" HeaderText="Order ID" IsPrimaryKey="true" TextAlign="Right" Width="90">
                    <ValidationRule>
                        <ej:KeyValue Key="required" Value="true" />
                        <ej:KeyValue Key="number" Value="true" />
                    </ValidationRule>
                </ej:Column>



        <ej:Column Field="OrderID"  IsUnbound="True" TextAlign="Center" Width="150">
                    <Command>
                        <ej:Commands Type="detail">
                            <ButtonOptions Text="Details" Width="100" Click="onClick"></ButtonOptions>
                        </ej:Commands>
                    </Command>
                </ej:Column>

 </ej:Grid>

   <ej:Dialog ID="commanddialog" ClientIDMode="Static" runat="server" Width="450" Title="Details of employee" ShowOnInit="false"
            EnableResize="False" Target="#OrdersGrid">
        </ej:Dialog>

Thanks
Pratheep




Attachment: Inline_Editing_94b91a72.rar

Gowthami V [Syncfusion]
Replied On November 16, 2015 04:39 AM

Hi Pratheep,

Thanks for contacting Syncfusion products.

We have modified your sample for without refreshing the page perform add and edit actions and the same can be downloaded from the following link,

http://www.syncfusion.com/downloads/support/directtrac/general/INLINE~1-900928450.ZIP

We can avoid the page refresh for every post back by using “AsyncPostBackTrigger” as follows,

<ej:Grid ID="OrdersGrid" runat="server" AllowPaging="True" ClientIDMode="static" OnServerEditRow="EditEvents_ServerEditRow" OnServerAddRow="EditEvents_ServerAddRow" OnServerDeleteRow="EditEvents_ServerDeleteRow">

            <ClientSideEvents ActionComplete="complete" EndAdd="endAdd" EndDelete="endDelete" EndEdit="endEdit" RecordDoubleClick="doubleClick" />
           . . . .
 . . . .

</ContentTemplate>

        <Triggers>

            <asp:AsyncPostBackTrigger ControlID="OrdersGrid" />

        </Triggers>
        </asp:UpdatePanel>


While using above code example partial postback will done instead full page refresh.

Regards,

Gowthami V.

Pratheep
Replied On November 16, 2015 08:47 PM

Hi

Working fine,Thanks

Pratheep

Gowthami V [Syncfusion]
Replied On November 16, 2015 10:56 PM

Hi Pratheep,
 
We are happy to hear that your issue has been resolved.
 
Get back to us if you need further assistance.
 
Regards,
 
Gowthami V.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;