ColumnMenu + Reorder bug

11 posts, 2 answers
  1. Mariusz
    Mariusz avatar
    24 posts
    Member since:
    Mar 2011

    Posted 09 Jan 2015 Link to this post

    When one uses columnmenu to hide some columns and then changes the order of columns above mentioned get messed up (reordering of data occurs independently from headers).

    I have recreated this unwanted behavior with your demos @http://demos.telerik.com/aspnet-mvc/grid/frozen-columns.

  2. Rosen
    Admin
    Rosen avatar
    3253 posts

    Posted 12 Jan 2015 Link to this post

    Hi Rafal,

    This is a known issue which should be already addressed. Please download the latest internal build and give it a spin.

    Regards,
    Rosen
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. Mariusz
    Mariusz avatar
    24 posts
    Member since:
    Mar 2011

    Posted 12 Jan 2015 in reply to Rosen Link to this post

    I have downloaded latest internal build of Kendo UI for MVC and it fixed header/data mismatch. However columns still are not being sorted properly.

    e.g. I drag 5th column after 2nd one and as result 2nd becomes 3rd, 3rd becomes 4th and 4th becomes 2nd (5th remains 5th).
  4. Rosen
    Admin
    Rosen avatar
    3253 posts

    Posted 12 Jan 2015 Link to this post

    Hello Rafal,

    I'm afraid I'm not able to re-create such behavior locally, using the provided information. Please take a look at this short video which captures the behavior of the attached test page. Maybe I'm missing something obvious.

    Regards,
    Rosen
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  5. Mariusz
    Mariusz avatar
    24 posts
    Member since:
    Mar 2011

    Posted 13 Jan 2015 Link to this post

    Maybe attachment's name from my first post mislead you - I'm not using frozen columns.

    Having your answer in mind I've done some research and found out that last column with .Locked(true) property is causing the problem. If I remove the "lock" sorting is working just fine.
  6. Mariusz
    Mariusz avatar
    24 posts
    Member since:
    Mar 2011

    Posted 13 Jan 2015 in reply to Mariusz Link to this post

    Now I'm not sure what does exactly 'frozen column' mean (I thought those are ones with disabled scrolling). Irrelevant nomenclature apart, as I've mentioned before, .Locked(true) is the cause for incorrect sorting AND ONLY for preceding the frozen one columns. Columns following the locked one are being sorted properly.
  7. Rosen
    Admin
    Rosen avatar
    3253 posts

    Posted 13 Jan 2015 Link to this post

    Hello Rafal,

    I'm afraid I'm still not sure how to recreate the issue locally. Therefore, could you please provide a small runnable sample (or modify the test page I have sent) and the required steps which can demonstrate the issue locally. 

    Regards,
    Rosen
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  8. Mariusz
    Mariusz avatar
    24 posts
    Member since:
    Mar 2011

    Posted 13 Jan 2015 Link to this post

    I wasn't able to recreate my issue in your example (maybe because it uses html+js and I am using UI for MVC and razor syntax). I will try to do it later because the issue really bothers me and it just have to work.

    Funny thing is if you set "locked: true" in your grid the column will move left-most and will become "locked". In my case (I set lock on last column, which contains dropdownmenu template) it remains where I initially place it (right-most), which is probably why you are not able to recreate my issue (I mentioned earlier, that only columns to the left from the locked one don't sort properly).

    I am using .Locked(true) just to disable reordering of the last column.

    Maybe this will help you to understand what am I dealing with, if not I'm gonna try to give you a complete (not)working example.
  9. Answer
    Rosen
    Admin
    Rosen avatar
    3253 posts

    Posted 13 Jan 2015 Link to this post

    Hello Rafal,

    Could you verify that the Grid scrolling is enabled. Note that locked option can be used only when Grid is scrollable, otherwise unexpected results will occur. 

    Regards,
    Rosen
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  10. Mariusz
    Mariusz avatar
    24 posts
    Member since:
    Mar 2011

    Posted 14 Jan 2015 in reply to Rosen Link to this post

    Finally something ;)

    When I'm trying to enable scrolling I get a JS error (attached).

    It was not enabled. I wasn't aware I have to enable it and to be honest I don't want it enabled. I just want a grid with all except one reorderable columns. Is there any way I can achieve that?
  11. Answer
    Rosen
    Admin
    Rosen avatar
    3253 posts

    Posted 14 Jan 2015 Link to this post

    Hello Rafal,

     

    I'm afraid that reordering feature cannot be disabled on per column basis. However, you may consider the workaround shown in this forum thread.

     

    Regards,
    Rosen
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top