0
votes

I'm trying update the grid with the edited values. When I update the bus type and give update, the binded value in the back end is valueFied that's the id, But when I update only time and name the bus type cell renders the displayField which fails the gridupdate at the back end saying Integer value error, since the display field is the string , How would i always render or bind the valuefield to the back end no matter what i update and display always the type name,

here's the fiddle to try.Fiddle

Hoping for a quick response.

Screen Shot of the grid grid

Thanks much.

1
I'm having trouble understanding what the problem is. Can you describe what you're trying to accomplish, rather than what is going wrong? If I know what you're trying to do, I might be able to help better.John Krull

1 Answers

0
votes

I Solved this issue by adding below method in the update function.

if(!Ext.isNumber(gridRow.data.typebus))
               {
                   gridRow.data.typebus = gridRow.data.id;                    
               };

hope this helps someone.