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

About ListView control another ListView

1 Answer 52 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Bruce
Top achievements
Rank 1
Bruce asked on 04 Jul 2011, 12:15 PM
Hi Telerik Team,

How can I do this:
I want to put three ListView in my page, when I change the first ListView mode into Insert/Edit then the second ListView and third ListView also change to Insert/Edit mode.

All of the three ListView's data is from the same table in the DB, but show different columns.
The second ListView and the third ListView are in the TabSript but different RadTab.

Could you give a favor
?
Thanks a lot.

Bruce

1 Answer, 1 is accepted

Sort by
0
Marin
Telerik team
answered on 07 Jul 2011, 08:58 AM
Hello Bruce,

 You can put the RadListView programmatically in insert mode using its ShowInsertItem method. As for the edit mode you will need to determine which ListView items you want to put in edit mode and then add them to the EditIndexes or EditItems collection of the control. Have in mind that you will need to call Rebind after each of those operations to take effect.

Kind regards,
Marin
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
ListView
Asked by
Bruce
Top achievements
Rank 1
Answers by
Marin
Telerik team
Share this question
or