Adhikar Patil

Adhikar Patil

  • NA
  • 481
  • 129k

jqgrid cascading dropdown in edit not showing proper value

Jan 10 2019 1:48 AM

I am using jqgrid in my code have two cascading dropdown binds from database based on their selected value. First dropdown binds and automatically binds second dropdown based on first dropdown value. After binding second dropdown it binds textboxes based on selected value of second dropdown.This happens when we
add records but when we edit it binds dropdown & showing as like add but not showing as per the inserted values of of dropdown & also textbox based on dropdown. It works for Adding is Good but in editing it is worste

           This is the JqGrid which shows grid. 
.
 
 Now i am adding record in JqGrid Display Like as below
 
 
 
 
 
Now i am showing the image for Editing the Record in Jqgrid
 
 
  So just see the last record of grid in edit mode. So dropdown value binding initial values but not showing selected value. So please help me as soon as possible. 
 
Below is the code that i have tried but now i want to fetch selected row data with dropdown with their selected value
@model SDMS_MVC_WEB.Models.ElementDataViewModel
<!-- Inject Script Filtered -->

Answers (1)