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
2225
Possible issue with igGrid column selection
posted

When using the grid, if a user sorts by a column, the column also becomes selected. This is ok. However, if the user then selects a row, the column remains selected.

Is this intended?

I'm using the example project code. Some settings are as follows:
MultipleSelection(true).Mode(SelectionMode.Row)
I also have sorting enabled.Thanks,
Tony

  • 24671
    posted

    Hi Anthony,

    Yes this is the expected behavior. The column style is not really "selected", it only visually marks the cells that belong to the sorted column. You can always turn this feature off, by setting applySortedColumnCss to "false", on the selection feature - either in the javascript, or in the MVC view code - depending on how you setup the grid. I suppose in your case you need to set ApplySortedColumnCss(false) since you seem to be using the MVC wrapper of the grid. By changing the class applied to the cells, you can actually manipulate the colors / styling, etc,  that are applied to cells - if that is a better match for what your scenario is. 

    Hope it helps. Let me know if you have any other questions. Thank you,

    Angel

     

  • 2225
    posted

    Hmmm... can't edit my post to better format the code. Clicking on "More" (above right corner of post) only locks up IE8

    Ok, THIS issue with editing posts only happens directly after posting or editing something. If I go back out to the forum and select this thread, then it works fine.  After I post/edit, it refreshes the page and the "more" menu no longer functions. I know this isn't the right place to report this, but thought I'd add it here since I had already commented on this issue.