showing empty row in the telerik grid

9 posts, 0 answers
  1. Hassan Mohaideen
    Hassan Mohaideen avatar
    2 posts
    Member since:
    May 2010

    Posted 15 Dec 2010 Link to this post

    Hi Guys,

     

    In our WPF application, we need to show the empty rows in the grid based on the grid size before loading the data from the database. Currently it is not showing the empty rows in the grid. We used component one grid in our previous application. By default that control show the empty rows before loading the data. How can we achieve this showing empty row in the telerik grid without data?

     

    I would appreciate your help. Thanks in advance

    Raja

  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 15 Dec 2010 Link to this post

    Hello,

     You can bind the grid to collection with desired number of empty rows. 

    All the best,
    Vlad
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for WPF
  3. Hassan Mohaideen
    Hassan Mohaideen avatar
    2 posts
    Member since:
    May 2010

    Posted 15 Dec 2010 Link to this post

    We cannot define the rows initially since it is dynamic and we want to have the rows based on need and it may vary screen to screen (each screen may have more than one grid). For all these grids, we cannot define the row count.

     

    We need the following feature:

     

    1. When I try to show 3 records in the grid size of 5, then 2 empty rows must be there.
    2. When I try to show 10 records in the grid size of 5, then there should not be any empty row displayed.
    3. Moreover as you suggested, we have defined the grid rows as 10 and loaded 20 records. But still it shows 10 empty records after displaying the 20 records.

    But we do not have any above said issues in the component one. Please clarify these with sample codings

  4. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 15 Dec 2010 Link to this post

    Hi,

     The grid does not have such built-in internal logic and that is why it is up to you to implement this in your data model and bind this data to the grid as I've suggested in my previous reply. 

    Kind regards,
    Vlad
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for WPF
  5. Patrick
    Patrick avatar
    4 posts
    Member since:
    Feb 2011

    Posted 23 Mar 2011 Link to this post

    Hello,

    is there any plan or suggestion how to resolve this issue?
    We are planning to move our app from WinForms (with Infragistics) to WPF (with Telerik) and in the Infragistics UltraGrid there is such a functionality...

    Best Regards,
    Patrick
  6. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 23 Mar 2011 Link to this post

    Hi,

     We have now virtual collection and if you bind the grid to such collection you will get similar behavior. Please check our Silverlight demos here - the WPF demos are same. 

    Kind regards,
    Vlad
    the Telerik team
  7. Patrick
    Patrick avatar
    4 posts
    Member since:
    Feb 2011

    Posted 24 Mar 2011 Link to this post

    Hi again,

    the behaviour in the sample is not the requested one.
    We want the grid to display empty rows up to the bottom (without scrollbar) only if there are less records than the grid can display without scrollbar (without setting a special property which indicates the number of needed rows to fill up the grid).

    Best regards,
    Patrick
  8. JC
    JC avatar
    2 posts
    Member since:
    Mar 2013

    Posted 01 Apr 2013 Link to this post

    Hi,

    This problem was solved? I need to do the same
  9. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 03 Apr 2013 Link to this post

    Hello,

    I am afraid that the RadGridView does not support such functionality out-of-the box. What we can suggest would be to calculate the number of empty rows you need and then fill the grid to collection with desired number of those rows. 
     

    Regards,
    Didie
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top