How i can get length and column name on console on flex and pivot grid

Posted by: aniket.bhavsar on 19 February 2018, 11:00 pm EST

    • Post Options:
    • Link

    Posted 19 February 2018, 11:00 pm EST

    Hello Team,

    I am trying to implement code in jsfilddel. my objective is to get a length and column name (after resize column) in console. I got length and column number (after resize column) in flex grid. but i want to know how i can implement in pivot grid which gives me column name and width at console panel (after resize column).

    Link :- http://jsfiddle.net/a4r987pk/

  • Posted 20 February 2018, 7:00 pm EST

    Hi,

    Please check this fiddle out and let me know if it works for you.

    http://jsfiddle.net/hbanske5/

  • Posted 20 February 2018, 8:08 pm EST

    Thanks abhishek. I really appreciate for your response. You are wonderful.

  • Posted 20 February 2018, 8:19 pm EST

    Can i use console.log(e.panel.columns[e.col].width); flex grid ? Or same logic in flex grid ?

  • Posted 20 February 2018, 10:40 pm EST

    Hi,

    Yes, the code that you have mentioned will work . Please check the fiddle for reference

    http://jsfiddle.net/nga90jLg/

  • Posted 21 February 2018, 1:05 am EST

    Can you please tell me width which i getting is in pixel ? or percentage ? or what dimensions ?

  • Posted 21 February 2018, 1:13 am EST

    Width’s type in this case is " Number" .

    Please note that Column widths may be positive numbers (sets the column width in pixels), null or negative numbers (uses the collection’s default column width), or strings in the format ‘{number}*’ (star sizing).

    http://demos.wijmo.com/5/Angular/WijmoHelp/WijmoHelp/topic/wijmo.grid.Column.Class.html#width

  • Posted 21 February 2018, 6:53 pm EST

    I really appreciate abhishek. You and your team really doing great work.

  • Posted 21 February 2018, 7:22 pm EST

    Thank you Aniket

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels