Show insert record when grid is empty

3 posts, 0 answers
  1. MGrassman
    MGrassman avatar
    92 posts
    Member since:
    Apr 2007

    Posted 26 Jan 2009 Link to this post

    I'm trying to show the insert row when the grid has 0 records.

    (rgTasks.FindNewRow() as GridViewNewRow).Visibility = Visibility.Visible;

    I can't seem to get this to work.

    Am I missing something.

    I call this after the grids datasource is set.

    Thanks,
  2. MGrassman
    MGrassman avatar
    92 posts
    Member since:
    Apr 2007

    Posted 26 Jan 2009 Link to this post

    I found a Solution
    A Work around was to add a blank record to the datasource if the returned results were 0 records.

    New Question
    Is there a way to just toggle the new row record.

    Thanks,
  3. DevCraft banner
  4. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 27 Jan 2009 Link to this post

    Hi Michael,

    The correct way of doig this is to call BeginEdit() method of the new row like that:

    RadGridView1.FindNewRow().BeginEdit();


    Sincerely yours,
    Valentin.Stoychev
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top