Skip to content

Instantly share code, notes, and snippets.

@angelovstanton
Created November 29, 2015 12:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angelovstanton/9fff699e63441662e84f to your computer and use it in GitHub Desktop.
Save angelovstanton/9fff699e63441662e84f to your computer and use it in GitHub Desktop.
public void Sort(string columnName, SortType sortType)
{
string jsToBeExecuted = this.GetGridReference();
jsToBeExecuted = string.Concat(jsToBeExecuted, "grid.dataSource.sort({field: '", columnName, "', dir: '", sortType.ToString().ToLower(), "'});");
this.driver.ExecuteScript(jsToBeExecuted);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment