function UserIdChange(evt, ui) { var UserId = ui.items[0].data.Value; //Passing selected value to the controller and retriving json object $.getJSON('GetUserData', { id: UserId}, function (data) { var name_editor = $("#gridUserInformation").igGridUpdating("editorForKey", "Name"); name_editor.igTextEditor("value", data[0]); var occupation_editor = $("#gridUserInformation").igGridUpdating("editorForKey", "Occupation"); occupation_editor.igTextEditor("value", data[1]); }); }
Hello,
Could you please try to reproduce this behavior in the sample I sent with my previous post? I enabled and tried adding rows through the UI and the code works perfectly for this use-case as well.
Again, please, feel free to modify it so that the behavior is observable and attach the modified version along with steps to reproduce so that I can look into it further.
Best regards,
Stamen Stoychev
Hi Stamen,
code I have written above is working fine but the case is there is no existing rows in grid.
I am getting error, if I am in edit grid (already some rows are there in grid). it is not working for add new row as well as editing the current row
I am attaching a sample that is very close to what I assume is your use-case and it works as expected. The differences are that I am using mockjax to simulate an AJAX response and also that I am referencing Ignite UI 17.1 latest. You may find it attached to this post. Please, feel free to modify it so that it represents your use-case better (and possibly reproduce the behavior you are describing).
Please, have in mind that you are posting with a trial account and as such are only entitled to support for the latest version of Ignite UI. This means that I will not be able to look into any issues that are specific to 16.1.2145 unless you register that product version using the license key you've received with your purchase.
Which version of Ignite UI are you currently using? If you are unsure, you can get it by executing "$.ui.igGrid.version" in the browser's console.
I am looking forward to your reply! Thank you for using Infragistics forums!