How to access a field in a client template

2 posts, 0 answers
  1. Florian
    Florian avatar
    6 posts
    Member since:
    Nov 2015

    Posted 30 Nov 2015 Link to this post



    I have a sum-row in my grid and I want to do a calculation with a fixed value from my database


    So, passing it via the ViewModel won't work, has anyone a suggestion other than sending the value with each row of the dataset?


    .ClientFooterTemplate("<div class=\"total_sum\">" + @Labels.Total + ": #= sum # = #= sum * [INSERT VALUE HERE] # €</div>");


    Kind regards


  2. Marin
    Marin avatar
    1038 posts

    Posted 02 Dec 2015 Link to this post


    Maybe you can use the ViewBag property to pass it from controller to the View where it can be accessed in javascript:

    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
  3. UI for ASP.NET AJAX banner
Back to Top