Showing empty rows when no data in datagrid

View: New views
2 Messages — Rating Filter:   Alert me  

Showing empty rows when no data in datagrid

by intis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I wanted to show minimum rows in the datagrid:rows irrespective of the data.
for example, pagesize is 20, i have only 4 records in my pageflow object. this case, datagrid rows should show 20 rows by filling 4 actual records and rest 16 should be empty rows.

Please help in the same..if you u have the solution........


Thanks in Advance


Re: Showing empty rows when no data in datagrid

by Eddie O'Neil-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

  Hey, this is a good question and something that the <netui:dataGrid>
should support; unfortunately it's not a feature that's supported
today and likely won't be something that is added unless you want to
submit a patch. :)

  One way to "fake" it is to pass the dataGrid an empty data structure
that you could detect when the columns render, for example by using
JSTL inside of the <rows> tag to know that the items are some kind of
marker that says that the data set contains no data.

  Hope that helps; apologies for the delayed reply.

Eddie

On Sat, Apr 25, 2009 at 6:23 AM, intis<srinu.inti@...> wrote:

>
> Hi,
>
> I wanted to show minimum rows in the datagrid:rows irrespective of the data.
> for example, pagesize is 20, i have only 4 records in my pageflow object.
> this case, datagrid rows should show 20 rows by filling 4 actual records and
> rest 16 should be empty rows.
>
> Please help in the same..if you u have the solution........
>
>
> Thanks in Advance
>
>
> --
> View this message in context: http://www.nabble.com/Showing-empty-rows-when-no-data-in-datagrid-tp23231530p23231530.html
> Sent from the Beehive - User mailing list archive at Nabble.com.
>
>