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. Image for the cookie policy date

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

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");
}

1 Reply

RU Ragavee U S Syncfusion Team 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


Loader.
Live Chat Icon For mobile
Up arrow icon