Home Service Manager Portal Feature Requests
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.
Options

ALways sort tab by first column

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


Best Answers

  • Options
    Nicholas_VelichNicholas_Velich Cireson Consultant Ninja IT Monkey ✭✭✭✭
    edited January 2019 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
  • Options
    Remy_BoviRemy_Bovi Premier Partner IT Monkey ✭
    Answer ✓
    Thx Nicholas, I'll try this asap :) 

Answers

  • Options
    Nicholas_VelichNicholas_Velich Cireson Consultant Ninja IT Monkey ✭✭✭✭
    edited January 2019 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
  • Options
    Remy_BoviRemy_Bovi Premier Partner IT Monkey ✭
    Answer ✓
    Thx Nicholas, I'll try this asap :) 
  • Options
    CaterhamITSupportCaterhamITSupport Member Advanced IT Monkey ✭✭✭

    Dear Nicholas,

    Could you give a full example of code for this?

    Kind Regards

    Daniel

Sign In or Register to comment.