how to automatically expand rowdetails on newly inserted row

3 posts, 0 answers
  1. Randy Hompesch
    Randy Hompesch avatar
    148 posts
    Member since:
    Nov 2008

    Posted 08 Dec 2016 Link to this post

    The title says it all, I have a readonly gridview. In response to a button click I fire off a command in my vm to insert a new record in the bound collection. At the time this happens I need to expand the row details dataform so they can enter in the desired info. How to expand the rowdetails in this case from my viewmodel?

    Thanks ... Ed

     

  2. Stefan
    Admin
    Stefan avatar
    1073 posts

    Posted 13 Dec 2016 Link to this post

    Hi Ed,

    The approach for satisfying such requirement is discussed in the Programatically expand a specific row's details and select a grid row inside those details forum thread. Can you please take a look at it?

    As to expanding the RowDetails from the ViewModel, I am afraid that I cannot suggest a particular implementation. If you want to avoid using the code behind for this operation, you may consider using an attached behavior.

    Would such approach suit your needs?

    Regards,
    Stefan X1
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. Randy Hompesch
    Randy Hompesch avatar
    148 posts
    Member since:
    Nov 2008

    Posted 19 Dec 2016 in reply to Stefan Link to this post

    Hi,

    I solved it by using the eventbindings and catching the RowLoaded event.
    Then in my VM I toggled the row's visibility.

    Thanks ... Ed

     

     

     

Back to Top