jQWidgets Forums
Forum Replies Created
-
Author
-
Gracias Martin!
function cargarGrilla(objData) {
//localData = obj;
var source =
{
dataType: “json”,
pagesize: 100,
localdata: objData,
datafields:
[
{ name: ‘fecha’, type: ‘string’ },
{ name: ‘razonSocial’, type: ‘string’ },
{ name: ‘remito’, type: ‘string’ },
{ name: ‘nombre’, type: ‘string’ },
{ name: ‘observacion’, type: ‘string’ },
{ name: ‘codigo’, type: ‘string’ },
{ name: ‘producto’, type: ‘string’ },
{ name: ‘cantidad’, type: ‘int’ },
{ name: ‘costo’, type: ‘float’ }
]
};var dataAdapter = new $.jqx.dataAdapter(source);
// initialize jqxGrid
$(“#jqxgrid”).jqxGrid(
{
width: ‘100%’,
height: ‘470px’,
source: dataAdapter,
editable: false,
selectionmode: ‘singlerow’,
editmode: ‘click’,
groupable: true,
groups: [‘fecha’, ‘razonSocial’],
//groupsrenderer: groupsrenderer,
showgroupaggregates: true,
showstatusbar: true,
showaggregates: true,
statusbarheight: 25,
autoshowfiltericon: true,
filterable: true,
sortable: true,
theme: ‘office’,
pageable: true,
pagesizeoptions: [‘100’, ‘500’, ‘1000’],
localization: getLocalization(‘es-AR’),
columnsresize: true,
rendered: function (type) {
if (type == “full”) {
$(“#jqxgrid”).jqxGrid(‘expandallgroups’);
}
},
columns: [
{ text: ‘FECHA’, datafield: ‘fecha’, cellsformat: ‘d’, cellsalign: ‘center’, align: ‘center’ },
{ text: ‘PROVEEDOR’, datafield: ‘razonSocial’, align: ‘center’ },
{ text: ‘REMITO’, datafield: ‘remito’, align: ‘center’ },
{ text: ‘USUARIO’, datafield: ‘nombre’, align: ‘center’ },
{ text: ‘OBSERVACION’, datafield: ‘observacion’, align: ‘center’ },
{ text: ‘CODIGO’, datafield: ‘codigo’, align: ‘center’ },
{ text: ‘PRODUCTO’, datafield: ‘producto’, align: ‘center’ },
{
text: ‘CANTIDAD’, datafield: ‘cantidad’, aggregates: [“sum”], cellsalign: ‘right’, align: ‘center’, cellsformat: ‘d2’,
cellsrenderer: function (row, column, value, defaultRender, rowData) {
if (value.toString().indexOf(“Sum”) >= 0) {
return defaultRender.replace(“Sum:”, “Tot “);
}
},
aggregatesrenderer: function (aggregates, column, element) {
if (aggregates.sum !== undefined)
return ‘<div style=”position: relative; margin-top: 4px; margin-right:5px; text-align: right; overflow: hidden;”>’ + “Total” + ‘: ‘ + aggregates.sum + ‘</div>’;}
},
{
text: ‘COSTO’, datafield: ‘costo’, aggregates: [“sum”], cellsalign: ‘right’, align: ‘center’, cellsformat: ‘d2’,
cellsrenderer: function (row, column, value, defaultRender, rowData) {
if (value.toString().indexOf(“Sum”) >= 0) {
return defaultRender.replace(“Sum:”, “Tot “);
}
},
aggregatesrenderer: function (aggregates, column, element) {
if (aggregates.sum !== undefined)
return ‘<div style=”position: relative; margin-top: 4px; margin-right:5px; text-align: right; overflow: hidden;”>’ + “Total” + ‘: ‘ + aggregates.sum + ‘</div>’;}
}
]
});March 9, 2017 at 3:18 pm in reply to: Grouping with Aggregate Duplicate ¿? Grouping with Aggregate Duplicate ¿? #92165Excellent, thanks Peter
March 9, 2017 at 2:38 pm in reply to: Grouping with Aggregate Duplicate ¿? Grouping with Aggregate Duplicate ¿? #92163Hi Peter
For me it is an issue because it makes a total sub by group that is added
If I have 3 groups gives me a total sub for each of them
How can I add an image for you to see?Hi Peter,
If I already know that there is no right button on the mobile, that’s why I want to make it when you click on the contextual menu, with what you said I worked fine, but from the web I can right click and activate the contextual menu 2 times Enter the same event click, so I ask if there is a way to differentiate which button is pressed from the web or directly cancel the right button of the context menuWell it works Thanks, now I have to see how to cancel the right button, since the 2 are activated, is there any way to identify it?
Good idea, I’m trying now that when you click on the appointment, open the contextual menu, it opens, but when you release the mouse button it closes automatically and I do not understand why, you can help me thanks
$(“#scheduler”).on(‘appointmentClick’, function (event) {
// esperar = setTimeout(aver(event), 4000); //Llamamos a settimeout de la manera correctaevent.preventDefault();
$(‘#scheduler’).jqxScheduler(‘openMenu’);
event.preventDefault();
});
Thanks, there is no way to realize keeping pressed on the appointment for a few seconds and enable the contextual menu?
Hi Ivailo
Its work fine!, Thank you!Hi
To make it work I had to serialize json in a txt file, I can not send the json response directly from the web service. why?April 13, 2016 at 12:27 pm in reply to: jqxScheduler getAppointment Results jqxScheduler getAppointment Results #83433Thanks Peter, but as I get all the recurrence of a appoiment?
Could you give me an example of thatApril 13, 2016 at 1:11 am in reply to: jqxScheduler getAppointment Results jqxScheduler getAppointment Results #83413Hi, could you please give me an example of how to persist in a database full agenda with a appointment repeatContainer in event Add?
thxs$(“#scheduler”).on(‘appointmentAdd’, function (event) {
var args = event.args;
var appointment = args.appointment;
});April 11, 2016 at 5:23 pm in reply to: Dialog window – date format 24Hs Dialog window – date format 24Hs #83361Hi Peter!, thanks a lot. work fine
-
AuthorPosts