GridCalculatedColumn

5 posts, 0 answers
  1. Samantha
    Samantha  avatar
    18 posts
    Member since:
    Sep 2008

    Posted 24 Sep 2008 Link to this post

    I would like to know more about the GridCalculatedColumn.  Is the calculated result will only be shown after the Add button is clicked?

    below is the code for my GridCalculatedColumn.  my calculated result is the AcquisitionCost - NetBookValue.  What should i put in the Expression?

    <

    telerik:GridCalculatedColumn DataFields ="AcquisitionCost, NetBookValue" DataType ="System.Decimal" UniqueName ="AccumDeprectn" Aggregate="Sum" DataFormatString ="{0:N2}" Expression ="{5}-{7}"></telerik:GridCalculatedColumn>

  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 24 Sep 2008 Link to this post

    Hello Samantha,

    Try setting the Expression property for the GridCalculatedColumn as shown below.
    aspx:
    <telerik:GridCalculatedColumn DataFields ="AcquisitionCost, NetBookValue" DataType ="System.Decimal" UniqueName ="AccumDeprectn" Aggregate="Sum" DataFormatString ="{0:N2}" Expression ="{0}-{1}"
    </telerik:GridCalculatedColumn> 

    Thanks
    Princy
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Daniel
    Admin
    Daniel avatar
    4946 posts

    Posted 24 Sep 2008 Link to this post

    Hello Samantha,

    Please take a look at the links below:

    Documentation: RadGrid column types

    Online demo: RadGrid calculated columns

    Regards,
    Daniel
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  5. Samantha
    Samantha  avatar
    18 posts
    Member since:
    Sep 2008

    Posted 24 Sep 2008 Link to this post

    Hi Daniel,

    i have read the GridCalculatedColumn link that you gave.  I find that the "Total Price" field is not auto filled after i fill in the "Units in Stock".  Is the "Total Price" will only be filled after i click the "add" button?  but i could not find the add button in the Grid..

    i have tried by clicking the PostBack button after i filled in everything includes "Unit Price" and "Units in Stock", but there is still nothing filled in the "Total Price".

    so actually how does it work?

    Thanks & Regards,
    Samantha Kho
  6. Daniel
    Admin
    Daniel avatar
    4946 posts

    Posted 26 Sep 2008 Link to this post

    Hello Samantha,

    I tried to reproduce the mentioned behavior without avail. Could you please check the attached demo website and let us know if you experience any unusual issues.

    Regards,
    Daniel
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017