Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
148411 | Oct 18,2019 07:20 AM UTC | Oct 24,2019 12:44 PM UTC | jQuery | 5 |
![]() |
Tags: ejGrid |
<script type='text/javascript'>
jQuery(function ($) {
$('#active_ingredients_grid').ejGrid({
dataSource: [],
columns : [
{ field: "id", visible: false, isPrimaryKey: true },
],
actionComplete : function complete(args){
if (args.requestType === 'save'){
}
if (args.requestType === 'add' || args.requestType === 'beginedit') {
$('#active_ingredients_gridactive_ingredient_id').ejDropDownList({ select: function(args){
$('#active_ingredients_grid').ejWaitingPopup('show');
. . .
$('#active_ingredients_gridsupplier_id').ejDropDownList('destroy');
$('#active_ingredients_gridsupplier_id').ejDropDownList({
dataSource : items,
width:'100%',
fields: { text: 'name', value: 'value' }
});
$('#active_ingredients_grid').ejWaitingPopup('hide');
}
});
}
}
});
});
</script> |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.