Visible/Non-Visible columns in grid

7 posts, 1 answers
  1. Dr.YSG
    Dr.YSG avatar
    210 posts
    Member since:
    Dec 2009

    Posted 02 May 2012 Link to this post

    I understand you are providing in the next release the ability to sort columns, (I assume this means the user can sort column order in the Grid, correct?)

    What about a column/field chooser? I have 16 columns and they are getting cluttered. I have been looking for a "visible" property in the column array (I have not found anything). Is there a best practice way to add/remove columns in code?

    But also, it would be nice that if your are adding the sort column feature, to add a hide/show column or field chooser option.

  2. Nikolay Rusev
    Admin
    Nikolay Rusev avatar
    2285 posts

    Posted 03 May 2012 Link to this post

    Hello Yechezkal,

    Showing/hiding is not currently supported, however column sorting is supported from the first official release of Kendo UI.

    http://demos.kendoui.com/web/grid/sorting.html

    Regards,
    Nikolay Rusev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Kendo UI is VS 2017 Ready
  4. Dr.YSG
    Dr.YSG avatar
    210 posts
    Member since:
    Dec 2009

    Posted 03 May 2012 Link to this post

    I should be more precise, I know that sorting columns vertically is supported in 2012 Q1.

    But what I see announced in your blog is the ability to reorder the order of the columns in the next release.

    What I am looking is will you also allow me to make columns visible/non-visble (hide columns and how to go about doing this) as well as a suggestion that this be added to the next release. (Something like the Excel /Outlook Field Chooser). So that the end user can choose to display or hide certain columns.

    Seems like if you are already adding the ability to change the order of the columns, this should be an easy add on.

    (but I also want to know how to do it right now, in code, and what you suggest as the best methodology).

  5. Nikolay Rusev
    Admin
    Nikolay Rusev avatar
    2285 posts

    Posted 04 May 2012 Link to this post

    Hello Yechezkal,

    Now I understand what you mean. Column reordering as well as column resizing will be available not later than official Q2 2012.

    Column visibility API is in our plans, but cannot tell exactly when it will be available. You can cast your vote for it here.

    Regards,
    Nikolay Rusev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  6. Dr.YSG
    Dr.YSG avatar
    210 posts
    Member since:
    Dec 2009

    Posted 04 May 2012 Link to this post

    I need column visibility now. There are a number of ways to do this, but I want to do it safely. Do you have a couple of pointers to how to go about in in jquery?
  7. Answer
    Nikolay Rusev
    Admin
    Nikolay Rusev avatar
    2285 posts

    Posted 09 May 2012 Link to this post

    Hello Yechezkal,

    Hiding column algorithm should be as follow:
     - remove the col element for the corresponding column
     - hide the corresponding header cell
     - hide all data/footer cells

    Few things to have in mind - all colspans should be re-calculated in case of hierarchy or grouping. Column width should be persisted so it can be applied once the column is shown again.

    Regards,
    Nikolay Rusev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  8. Ramon
    Ramon avatar
    1 posts
    Member since:
    Aug 2012

    Posted 29 Aug 2012 Link to this post

    If you don't mind a little UI distortion : set column.width to be "1px"
Back to Top
Kendo UI is VS 2017 Ready