We appreciate you taking the time to vote and add your suggestions to make our products awesome! Your request will be submitted to the community for review and inclusion into the backlog.

We recommend reviewing what is submitted before posting, in case your idea has already been submitted by another community member. If it has been submitted, vote for that existing feature request (by clicking the up arrow) to increase its opportunity of being added to Cireson solutions.

For more information around feature requests in the Cireson Community click here.

ALways sort tab by first column

Hi, Is it possible to Always sort the portal forms by the first column ? 


Best Answers

  • Nicholas_VelichNicholas_Velich Cireson Consultant Ninja IT Monkey ✭✭✭✭
    edited January 8 Accepted Answer
    Hi Remy,

    Yes, it is possible via custom.js with a little JavaScript/JQuery.

    First, find the kendo grid element. That will look something like this, depending on the page you are on:

    var thisKendoGrid = $('selector goes here').getKendoGrid();

    Then you need to get the name of the column, like this: 

    var sortColumnName = thisKendoGrid.columns[index goes here, starting at 0 for the leftmost column].field;

    Finally you would update the grid's datasource, like this:

    thisKendoGrid.dataSource.query({
                sort: { field: sortColumnName, dir: "asc" },
            });

    Thanks,
    Nick
  • Remy_BoviRemy_Bovi Premier Partner IT Monkey ✭
    Accepted Answer
    Thx Nicholas, I'll try this asap :) 

Answers

  • Nicholas_VelichNicholas_Velich Cireson Consultant Ninja IT Monkey ✭✭✭✭
    edited January 8 Accepted Answer
    Hi Remy,

    Yes, it is possible via custom.js with a little JavaScript/JQuery.

    First, find the kendo grid element. That will look something like this, depending on the page you are on:

    var thisKendoGrid = $('selector goes here').getKendoGrid();

    Then you need to get the name of the column, like this: 

    var sortColumnName = thisKendoGrid.columns[index goes here, starting at 0 for the leftmost column].field;

    Finally you would update the grid's datasource, like this:

    thisKendoGrid.dataSource.query({
                sort: { field: sortColumnName, dir: "asc" },
            });

    Thanks,
    Nick
  • Remy_BoviRemy_Bovi Premier Partner IT Monkey ✭
    Accepted Answer
    Thx Nicholas, I'll try this asap :) 
Sign In or Register to comment.