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.

Add new row to bottom

Thread ID:

Created:

Updated:

Platform:

Replies:

117692 Nov 29,2014 02:12 AM Dec 1,2014 06:01 AM ASP.NET Web Forms (Classic) 1
loading
Tags: GridGroupingControl
Tuong Trinh
Asked On November 29, 2014 02:12 AM

Hi Syncfusion team,

is it possible to place to add new row of the gridgroupingcontrol to the bottom of the grid?

regards
Tuong Trinh

Silambarasan I [Syncfusion]
Replied On December 1, 2014 06:01 AM

Hi Tuong,

 

Thank you for using Syncfusion Products.

 

We would like to let you know that as per our implementation, changing position of Add New row is not feasible. So we have created a workaround for your requirement (“To place ADD NEW row at the bottom of the GridGroupingControl”) and it can be achieved by using the ClientSideOnLoadComplete client-side event. Please refer the below code snippets.

 

CODE SNIPPET:

 

[ASPX]

 

<Syncfusion:GridGroupingControl ID="GridGroupingControl1" runat="server" ShowGroupDropArea="true" AutoFormat="Office 2007 Blue"

DataSourceCachingMode="ViewState" ClientSideOnLoadComplete="onComplete(this)">

<TableDescriptor AllowFilter="False" AllowNew="true" AllowEdit="true">

</TableDescriptor>

</Syncfusion:GridGroupingControl>

 

[SCRIPT]

 

function onComplete(gridObj) {

var trElement = $("#" + gridObj.id + " table tr#" + gridObj.id + "\\~TR\\~0\\~_TOPGROUP_\\^\\#ADDNEW3\\#\\*R0").clone();

$("#" + gridObj.id + " table tr#" + gridObj.id + "\\~TR\\~0\\~_TOPGROUP_\\^\\#ADDNEW3\\#\\*R0").replaceWith("<tr style='display: none;'></tr>")

$($("#" + gridObj.id + " table")[0]).append(trElement);

}

 

For your convenience, we have prepared a simple sample to demonstrate this and the same can be downloaded from the below link,

 

Link: SampleProject.zip

 

Please let us know if you need any further assistance.

 

Regards,

Silambarasan I


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.

;