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

RadGid gridcalculatedcolumn value not show in edit field

1 Answer 41 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
sajid
Top achievements
Rank 1
sajid asked on 18 May 2015, 06:48 AM

Hello,

I am New in Telerik. As new comer I m facing some problem. I am using a Radgrid to show my one of table. In the grid there is a  telerik:GridCalculatedColumn .  The code is below

<telerik:GridCalculatedColumn HeaderText="GrossSalary" UniqueName="GrossSalary" DataType="System.Double"
                               DataFields="PFOfficeCont, ConsuladatedSalary" Expression="{0}+{1}" FooterText="Total : "
                               Aggregate="Sum" EditFormColumnIndex="2">
                           </telerik:GridCalculatedColumn>
  It shows the SUM of to colums values nicely. But when I click In-forms editing mode Grosssalay field does not Shows! In-line editing mode shows the GrossSalary field nicely. I want to know where is the problem?

Please kindly help me to implement this. 

With best regards

Sajid

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 21 May 2015, 07:08 AM
Hi Sajid,

The GridCalculatedColumn does not renders controls for its edit mode because its field could not be edited and therefore the column is ReadOnly by default. You can achieve the described requirement by mimicking the current EditForms table in a FormTemplate and add the additional info:
http://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/form-template-update/defaultcs.aspx?show-source=true

Hope this helps.

Regards,
Eyup
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
General Discussions
Asked by
sajid
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or