DataTable ColReorder Filter not working

DataTable ColReorder Filter not working

macchhamacchha Posts: 4Questions: 2Answers: 0

Hi Team,
Col Reorder with Filter
Steps to reproduce
1. Enter Any filter for the particular column
2. Change its position
3. Remove the filter.
Result: All the rows will not display also for next filter result is not proper.

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 3,107Questions: 0Answers: 538
    Answer ✓

    Hi macchha,

    The reason is that you're using the initial column index in your event callback - once the column moves, that index still refers to the original location.

    This example here will work for you - the column indexes are calculated each time the event is triggered.

    Cheers,

    Colin

  • macchhamacchha Posts: 4Questions: 2Answers: 0

    Thanks, @colin for your time. Let me check it.

Sign In or Register to comment.