This is a migrated thread and some comments may be shown as answers.

how to automatically expand rowdetails on newly inserted row

2 Answers 48 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Randy Hompesch
Top achievements
Rank 1
Randy Hompesch asked on 08 Dec 2016, 11:46 AM

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 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 13 Dec 2016, 10:50 AM
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.
0
Randy Hompesch
Top achievements
Rank 1
answered on 19 Dec 2016, 03:25 PM

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

 

 

 

Tags
GridView
Asked by
Randy Hompesch
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Randy Hompesch
Top achievements
Rank 1
Share this question
or