PDA

View Full Version : creating a table with dynamic headers something like draw table in ms-word



r6174
21 Apr 2015, 2:52 AM
Hi,
I have a requirement to create a table (grid) by taking the no of rows , colums and column headers(dynamic) from the user..some thing like when we spacify no of rows as 2 and and columns as 2 i have to get 3 X 2 grid (1 row to take dynamic column headers)..
someone please help me...an example is much appreciated

do we have any plugin to do this?

thanks in advance:)

(ps. i am an old member but with lesser knowledge on extjs so i am a noob)

tristan.lee
21 Apr 2015, 9:47 AM
Hi,

If the user is providing these values via an interface (such as a form), you can use those values to configure the grid just as you would if you pre-defined the column headers, etc up front.

Feel free to put together a fiddle (https://fiddle.sencha.com) with a simple example of what you're trying to accomplish to help me understand further.

Thanks,
Tristan