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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Need example of this clearSorting() and removeSortedColumns(fieldName) method in angular js

Thread ID:

Created:

Updated:

Platform:

Replies:

120131 Sep 3,2015 11:19 AM UTC Sep 4,2015 06:30 AM UTC JavaScript 1
loading
Tags: ejGrid
Bharat Buddhadev
Asked On September 3, 2015 11:19 AM UTC

Technology must be 
Angular js and mvc

I want example of this method with angualr js and mvc

clearSorting()

removeSortedColumns(fieldName)


when I am trying to use this method getting error like below

Uncaught TypeError: Cannot read property 'form' of undefined

below is code snippest for your better understanding

$scope.actionComplete = function (args) {
if (args.requestType === "add")
                $("#cmisGrid").ejGrid("clearSorting");
}

Ragavee U S [Syncfusion]
Replied On September 4, 2015 06:30 AM UTC

Hi Bharat,

We are sorry that the the issue is not reproducible at our end.

We have created a sample with the shared information, which can be downloaded from the below location,

http://www.syncfusion.com/downloads/support/forum/120131/ze/Sample-1235623958

In the above sample, we have enabled Sorting, inlineTemplateform editing and set validation to columns. While clearing sorting to the columns using clearSorting() or removeSortedColumns() method, we have refreshed the content of the Grid. 

So, when you clear sorting in the actionComplete event of the Grid and the requestType is “add”, the add operation will be prevented and the form corresponding to the add operation will not display.

Please try the sample and if you still face any difficulty provide below details,

1.       Replication procedure/scenario to reproduce the issue.
2.       Expand the script error in the browser console (stack trace) and share the screenshot.
3.       If possible, please reproduce the issue in the above sample and share it.

Regards,
Ragavee U S


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.

Warning Icon 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.Close Icon

;