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

ForceExtractValue

3 Answers 188 Views
Grid
This is a migrated thread and some comments may be shown as answers.
fatma
Top achievements
Rank 1
fatma asked on 19 Oct 2010, 01:31 PM
Hi,

I have a simple gridview which contains a field for primary key "Vendor_ID" which should be filled by a sequence. I changed the property of the field and set ReadOnly = true. >> here i can insert a new record
but when i try to update the record (i have set the condition where vendor_id = vendor_id) nothing happens >> i guess because it can not read the ReadOnly field.
then i have added ForceExtractValue="InEditMode", my records are updated but now i can not insert a new record i receive an error.

Your Help is greatly appreciated.

Fatma

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 19 Oct 2010, 05:02 PM
Hello Fatma,

Extracting values from an Item is supported only when the grid has an edit mode of InPlace or EditForms (auto-generated edit forms) or uses a template. When inserting or updating records RadGrid can extract values  from columns that are set as read-only, if the column's ForceExtractValue property is set to "InEditMode".

All the best,

Pavlina
the Telerik team

 

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 Public Issue Tracking system and vote to affect the priority of the items
0
fatma
Top achievements
Rank 1
answered on 20 Oct 2010, 06:55 AM
Thank you Pavlina for your swift response.

I am actually put edit mode of "InPlace". but still am getting the error when i try to insert new record.
0
Pavlina
Telerik team
answered on 20 Oct 2010, 09:01 AM
Hello Fatma,

Can you share the grid declaration and the server-side code you have for it? I will check it out and try finding what could have gone wrong there.

Best wishes,
Pavlina
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
fatma
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
fatma
Top achievements
Rank 1
Share this question
or