Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
140
Prevent column from sorting
posted

Hello,

How can i prevent a column from being sorted, while keeping the sorting behavior for all the other columns.  I'm getting an error due to a templateDataField trying to be sorted on & I understand the grid can't sort it.

I see column setting under sorting behavior but I don't understand it & it gives me an error.

Is there a way to set a column's allowsorting = false or something like that?

Or

Do I need to code ColumnSorting javascript function, detect which column was clicked to be sorted and then set cancel = true?

Please let know if /  how I can accomplish this.  Also a code snippet would be great, still learning object models.

 

Thanks for any and all info!