PDA

View Full Version : [CLOSED] Freeze first row on sorting and paging on Gridpanel



iansriley
Mar 24, 2016, 4:44 PM
Hi,

I have requirement like on gridpanel when doing sorting or paging the first record should be on top (it should be always on TOP) and rest all should sort and pagination. Is there any way to achieve this.

Thanks in advance.

fabricio.murta
Mar 24, 2016, 9:09 PM
Hello @iansriley!

Sorry, this is not supported at all.

What you can do regarding this is dock a container with something similar to this example: GridPanel with TotalRow (http://examples2.ext.net/#/GridPanel/Miscellaneous/Grid_TotalRow/).

It will require some "hacks" to lock the static row between grid headers and first row, though.

EDIT: This thread may also provide you insightful information: Lock first row (http://forums.ext.net/showthread.php?12610).

iansriley
Mar 25, 2016, 3:46 PM
Hi,

Thanks for response, we are using Ext.Net version 2.5. In 2.5v how to achieve this requirement. How the FilterHeader plugin is working same functionality needed for me, instead of Edit controls need to display label like other rows data.

Thanks.

fabricio.murta
Mar 26, 2016, 12:32 PM
Hello @iansriley!

You can just use <ext.Label /> and add the value as the Text= property and it will not show as an input field. Additionally, if using fields that look like input fields, you can also set Editable="false" to make them read-only (but now grayed out).

I hope this helps!