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

Add column Dynamically

1 Answer 969 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Sankar
Top achievements
Rank 1
Sankar asked on 21 May 2015, 12:22 PM

Hi Team

1)Is possible to add column dynamically when i click in add button in mvvm pattern.

2)Is possible to get all the row values of single column based on the column name provided.

3)Is Possible to binding column with different collection(Ex. column1 is filled NameRegister, column2 to is bind with some telephone collection.

Thanks

Sankar A

 

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 22 May 2015, 02:34 PM
Hello Sankar ,

I will address your questions in the same order as from your enquiry:

1. Adding columns dynamically is supported by RadGridView. When you fire a command, you will simply need to add the new column to the Columns collection of RadGridView. You can check the Binding columns from view model SDK Example for reference.

2. In order to get the values for a particular column, you need to traverse the Items collection of RadGridView and check the value of a particular property.

3. Can you please provide more detailed information, concerning the column you need to be bound to a collection? How do you intend to represent the collection in the column?

In addition, you can check our documentation on RadGridView Columns.

Best Regards,
Stefan
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
GridView
Asked by
Sankar
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or