You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@beehive.apache.org by intis <sr...@gmail.com> on 2009/04/25 14:23:38 UTC
Showing empty rows when no data in datagrid
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.
Re: Showing empty rows when no data in datagrid
Posted by Eddie O'Neil <ek...@gmail.com>.
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<sr...@gmail.com> 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.
>
>