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

[Solved] Grid editing FK condition

0 Answers 76 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.
Jonisan
Top achievements
Rank 1
Jonisan asked on 04 Mar 2012, 12:34 PM
Hi ,

I have in my app 5 grids , 2 of witch are a little more complex . All this grids are in partial views of the same main view .
What  I need to do : Grid1 : many columns , What i'm interested in column "A" a FK column , column "D" and column "E"  
Scenario : 
If the  user select "value 1" from column "A" , then column "D" must be read only and have it's value ("value 1" * constant)
 and column "E" must be editable . If user select "value 2"  from column "A" then column "E" must be read-only with the value
("value 2" *   constant) and column "D" is editable .

I try to add an event to FK column : "onChange" but I cant find what FK column has it's value change , and then how to change the values and style of the "E" and "D" columns !?

Q: any1 knows if I can do this with grid normal editing , or I need to make a custom command or so for editing . The problem is that  my 2 grids that need this functionality have like 10-14 columns , and for the rest the editing functionality is rely ok . 

Thank you .
Tags
Grid
Asked by
Jonisan
Top achievements
Rank 1
Share this question
or