Add column Dynamically

2 posts, 0 answers
  1. Sankar
    Sankar avatar
    2 posts
    Member since:
    Apr 2015

    Posted 21 May 2015 Link to this post

    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

     

  2. Stefan
    Admin
    Stefan avatar
    1073 posts

    Posted 22 May 2015 Link to this post

    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
Back to Top