jQWidgets Forums
Forum Replies Created
-
Author
-
February 24, 2014 at 10:52 am in reply to: TreeGrid cellClassName export TreeGrid cellClassName export #49981
I try it with the new version at first.
But can i do somthing like this?for (var i = 0; i < 3; i++) { //console.log(i); $('#treeGrid' + i).jqxTreeGrid('exportData', 'xls'); }
it only shows me one treegrid in Excel….
Thats my Code now:
`createeditor: function (row, cellvalue, editor, cellText, width, height) {//editor.empty();
editor.append(‘<div id=”dropDownTreeId”><div style=”border: none;” id=”ParentNodesTree”></div></div>’);var records = sk.tree.getTopologyTree(“GetTree”);
$(“#dropDownTreeId”).jqxDropDownButton({ width: 200, height: ’25px’ });
$(‘#ParentNodesTree’).jqxTree({ source: records });
$(‘#ParentNodesTree’).jqxTree(‘expandAll’);$(‘#ParentNodesTree’).on(‘select’, function (event) {
var args = event.args;
var item = $(‘#ParentNodesTree’).jqxTree(‘getItem’, args.element);
var dropDownContent = ‘<div style=”position: relative; margin-left: 3px; margin-top: 5px;”>’ + item.label + ‘</div>’;
$(“#dropDownTreeId”).jqxDropDownButton(‘setContent’, dropDownContent);
$(“#dropDownTreeId”).jqxDropDownButton(‘close’);editor.jqxDropDownButton(‘setContent’, item.label);
//editor.append(‘<div id=”dropDownTreeId”><div style=”border: none;” id=”ParentNodesTree”>’ + item.label + ‘</div></div>’);
});
$(“#dropDownTreeId”).jqxDropDownButton({ width: 200, height: ’25px’ });
}`That works so long, till i click in another cell in Grid. Then the Cell is empty….
Do you have a example?
that must be something like this:
text: ‘Test’, columntype: ‘jqxDropDownButton’, displayfield: “Test”, datafield: “TestId”, width: 200,
createeditor: function (row, cellvalue, editor, cellText, width, height) {
$(‘#ParentNodesTree’).jqxTree({ source: dataAdapter});
$(‘#ParentNodesTree’).on(‘select’, function (event) {
var args = event.args;
var item = $(‘#ParentNodesTree’).jqxTree(‘getItem’, args.element);
var topologyId = item.id;
editor.jqxDropDownButton(‘setContent’, item.label);
editor.jqxDropDownButton(‘close’);
});
$(‘#ParentNodesTree’).jqxTree(‘expandAll’);
editor.jqxDropDownButton({ width: ‘250’, height: ’25px’ });
}But there is only a dropdownList.
No DropDownTreei found it…..
Thanks….
and how can i make the scheme dynamic?
February 13, 2014 at 9:25 am in reply to: myScheme Color from Database myScheme Color from Database #49459Can you show the Code?
I have problems with that….February 13, 2014 at 8:06 am in reply to: myScheme Color from Database myScheme Color from Database #49453Is that Problem fixed? Do you have an example Code?
But how can i set the scheme with color from JSON in dataadapter?
i tried this also:
http://www.jqwidgets.com/community/topic/myscheme-color-from-database/
but still it doesnt work….January 28, 2014 at 9:04 am in reply to: Performance expand / collaps All Performance expand / collaps All #48501I tested yesterday. But for me, it isn’t better….
January 27, 2014 at 2:11 pm in reply to: Performance expand / collaps All Performance expand / collaps All #48438Is the performance with the New Version fixed?
Do you have an example?
with cellClassName?
I want to set the whole Row with another background, not only the cell…. -
AuthorPosts