hai everybody,
I am use edatagrid for inline editing than send the data to database,
it work well if i declare the updateUrl in document ready
ex :
<script>
$(function(){
$('#dgSubTujuan').edatagrid({
updateUrl: '{% url 'saveSubTujuan' %}',
});
})
function saveInline(){
$('#dgSubTujuan').edatagrid('saveRow');
}
</script>
but it not working when i try to change the update url in function
ex
function saveInline(){
$('#dgSubTujuan').edatagrid({
updateUrl: '{% url 'saveSubTujuan' %}'+id,
});
$('#dgSubTujuan').edatagrid('saveRow');
}
sorry for my bad english,
hope you understand