jQWidgets Forums
Forum Replies Created
-
Author
-
September 12, 2016 at 6:40 pm in reply to: DropDow Tree inside JqxGrid problem select DropDow Tree inside JqxGrid problem select #87282
Hi,
Thanks.
This work item will be for the next release?
What is the forecast?
Best Regards
Hi,
https://jsfiddle.net/ioana_v/nrf6q9nL/3/.
Steps to reproduce:
* increase the size for the “Boston” column so much that a scrollbar is visible
* double click in the cell “Population / Boston” – the editor is visible
* use the scrollbar to scroll to right
The editor is overlapping the pinned column, and it should not.Best Regards.
September 9, 2016 at 11:36 am in reply to: DropDow Tree inside JqxGrid problem select DropDow Tree inside JqxGrid problem select #87226September 5, 2016 at 8:09 pm in reply to: z-index for pinned columns z-index for pinned columns #87118Hi,
This problem was resolved?
I have the same problem.
Best Regards.
August 24, 2016 at 6:24 pm in reply to: Jqxgrid width column jqxdropdownlist Jqxgrid width column jqxdropdownlist #86820Hi,
Your example work now. But I have one problem.
The same problem my function getListValue, the problem is when have two name (label) equals.
Insert in your example the follow data and you see the problem:
This because the displayMember needs name, not id.
var locallista = [
{ id: “5289”, name: “Americanas” },
{ id: “5290”, name: “Loja 01” },
{ id: “5302”, name: “Loja 01” }
];In this case the value is always 5290, because is the first.
After this I need getValue, for example, I select “Americanas”, then I want “5289”
Best Regards.
August 24, 2016 at 12:57 pm in reply to: Jqxgrid width column jqxdropdownlist Jqxgrid width column jqxdropdownlist #86809Hi,
I forgot, but I´m using editable column.
I need after click in edit button get value in my data and use in editor.jqxDropDownList(‘selectItem’, value); inside initeditor
August 23, 2016 at 1:38 pm in reply to: Jqxgrid width column jqxdropdownlist Jqxgrid width column jqxdropdownlist #86779Hi,
I want achieve the value jqxdropdown, not label.
In your example, You are using $(“#jqxgrid”).on(‘cellvaluechanged’, function (event), I want uset initeditor.
I found a workaround , but it’s not the ideal, because if I have equals labels, I don´t know what value.
My solution:
initeditor: function (row, cellvalue, editor) {
var items = editor.jqxDropDownList(‘getItems’);
var value = getListValue(items, cellvalue);
editor.jqxDropDownList(‘selectItem’, value);
}function getListValue(items, value) {
for (var i = 0; i < items.length; i++) {
if (value == items[i].label) {
return items[i].value;
}
}
}Based in my solution, Do you have other suggestions?
Best Regards.
August 22, 2016 at 7:59 pm in reply to: Jqxgrid width column jqxdropdownlist Jqxgrid width column jqxdropdownlist #86754Hi,
But if I use setContent, I´m setting new content. I don´t want this. I want set some value of my list as content.
var locallista = [{ value: “5289”, label: “Americanas”},
{ value: “5290”, label: “Loja 01”}
];Example:
initeditor: function (row, cellvalue, editor) {
editor.jqxDropDownList(‘setContent’, cellvalue);
}}.If I use this, I´m setting the label, but I want set the value of my list.
I Try this, It´s work.
initeditor: function (row, cellvalue, editor) {
editor.jqxDropDownList(‘setContent’, 5289);
}}.But, I want this dynamically. For Example:
editor.jqxDropDownList(‘setContent’, value);
Best Regards
August 19, 2016 at 7:50 pm in reply to: Jqxgrid width column jqxdropdownlist Jqxgrid width column jqxdropdownlist #86711Hi, Thanks for the answer.
But I need get de value using initeditor.
I want use:
initeditor: function (row, cellvalue, editor) {
editor.jqxDropDownList(‘selectItem’, cellvalue);
}}.But cellvalue is label, then I need value dropdown.
Or, Is there another way to set the selected value during initeditor?
Tks
Best Regards
August 2, 2016 at 1:37 pm in reply to: Jqxgrid width column jqxdatetimeinput Jqxgrid width column jqxdatetimeinput #86245Hi, when I use $(‘#jqxGrid’).jqxGrid(‘setcolumnproperty’, ‘columName’, ‘width’, 200); in initEditor funtion, I have one error:
“Maximum call stack size exceeded”;
Again, I need increase width column base in width jqxdatetimeinput when initEditor function is called.
Best Regards
July 28, 2016 at 1:20 pm in reply to: Jqxgrid width column jqxdatetimeinput Jqxgrid width column jqxdatetimeinput #86129Hi Hristo, Can not increase width column base in width jqxdatetimeinput?
In your example, The width columns is 85 and the width jqxdatetimeinput is 140. I wanted it to be 140 width column.
width column equals width jqxdatetimeinput: 140
Best Regards.
July 28, 2016 at 9:53 am in reply to: Jqxgrid width column jqxdatetimeinput Jqxgrid width column jqxdatetimeinput #86120Hi, I need change the width column based in width jqxdatetimeinput and only in edition Mode. Can I do this?
Best Regards
July 27, 2016 at 4:55 pm in reply to: Colum type float comma separator Colum type float comma separator #86099Hi Hristov.
It´s work now.
Tks.
Best Regards.
July 27, 2016 at 12:25 pm in reply to: Colum type float comma separator Colum type float comma separator #86093Hi, I can´t this. I put localization, doesn´t work.
When I´m using $(‘#jqxGrid’).jqxGrid(‘getrowdata’, row); the value of this column is “10.89″, but the true value is “10,89″, I need get the value with comma.
My code using localization:
var jsonData = [
{
“12”: “SmartPhone”,
“6111”: “10,87”
}
];
var source = {
dataType: “json”,
dataFields: [
{ name: “12”, type: “string” },
{ name: “6111”, type: “string” }
],
localData: jsonData
};
var dataAdapter = new $.jqx.dataAdapter(source);
$(“#jqxGrid”).jqxGrid(
{
source: dataAdapter,
editable: true,
width: “100%”,
sortable: true,
selectionmode: “none”,
editmode: “selectedrow”,
columnsResize: true,
columns: [
{ text: “Descrição”, width: “100”, dataField: “12” },
{ text: “Decimal”, width: “100”, dataField: “6111”, columntype: ‘numberinput’,createeditor: function (row, column, editor) {editor.jqxNumberInput({decimalDigits: 2, decimalSeparator: ‘,’, inputMode: ‘simple’, spinButtons: false}); }}
]
});var localizationobj = {};
localizationobj.sortascendingstring = “Ordenar Ascendente”;
localizationobj.sortdescendingstring = “Ordenar Descendente”;
localizationobj.sortremovestring = “Remover Ordenação”;
localizationobj.decimalseparator = “,”;
$(“#jqxGrid”).jqxGrid(‘localizestrings’, localizationobj);July 26, 2016 at 5:28 pm in reply to: Colum type float comma separator Colum type float comma separator #86079I solved this issue. The type need ‘string’, not ‘float’.
But I need other help. When I use $(‘#jqxGrid’).jqxGrid(‘getrowdata’, row);, the value of this column is “10.89”, but the true value is “10,89”, I need get the value with comma.
Best Regards.
-
AuthorPosts