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

accessing the ViewModel property (additional property not bound to grid) in ClientTemplate

1 Answer 50 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ramakrishna
Top achievements
Rank 1
Ramakrishna asked on 14 Feb 2012, 06:21 PM
Hi,
   I have a viewmodel object like this (sample one)
public class ProductsViewModel
{
      public IEnumerable<Product> Products {get; set; }
      public string ProductCategory {get; set;}
}

I can bind it to the grid like this, but how to access the product category in the client template (ajax custom binding)
@(Html.Telerik().Grid<Product>(Model.Products)
{
}

1 Answer, 1 is accepted

Sort by
0
shanthu kere
Top achievements
Rank 1
answered on 05 Oct 2012, 03:24 PM
I would like to know the answer for this question too. I have to solve the same problem in my current project.
Tags
Grid
Asked by
Ramakrishna
Top achievements
Rank 1
Answers by
shanthu kere
Top achievements
Rank 1
Share this question
or