jQWidgets Forums
Forum Replies Created
-
Author
-
May 15, 2018 at 10:35 am in reply to: Unable to select multiple items in the jqxlistBox using checkItem() Unable to select multiple items in the jqxlistBox using checkItem() #100197
Hi Martin,
Hi martin,
We are binding the backend array to the source and with all the value as true in array element we need to check them on UI too.
{“columnList”:[{“label”:”comments”,”field”:”comments”,”value”:true,”group”:”BA Fields”},{“label”:”BA Executive Summary”,”field”:”baExecutiveSummary”,”value”:true,”group”:”BA Fields”}]}
But issue is it check only last element and as per your above example , you have used $.each which returns 2 elements index and item but in my case i am using underscore
where _.each returns 1 thing which is item itself, and i found from debugging that the item is coming as JSON like the response i showed above in my array. But binding happens for last element in araay not for rest.November 15, 2017 at 8:54 am in reply to: Issue on destroy and Re-create the tree grid Issue on destroy and Re-create the tree grid #97333Hi Ivo,
Yes, it is removed from DOM and I’m getting the JS error as ERROR TypeError: Cannot read property ‘style’ of undefined
below is the case i’m trying to achieve
this.treeGrid.destroy();
// treesetting is based on user selection
this.treeGrid.createComponent(treeGridSettings);How can i recreate the tree component with new settings?
November 2, 2017 at 10:43 am in reply to: TreeGrid scroll issue when edit the row after hide few columns TreeGrid scroll issue when edit the row after hide few columns #97075Hi Peter,
That’s true. But in my case editable field is in the middle of the grid( after this there are 10 + fields in that row)
but still grid scroll to right corner of that row.Is this some thing default behavior of tree grid?
Thanks
November 2, 2017 at 9:46 am in reply to: TreeGrid scroll jumps to right when edit the row after hide few columns TreeGrid scroll jumps to right when edit the row after hide few columns #97074Hi Stanislav,
I have taken latest 5.4.x and noticed that , still this issue exists.
Thanks
GopiOctober 17, 2017 at 10:16 am in reply to: sync is not defined While setting cell value using setCellValue() sync is not defined While setting cell value using setCellValue() #96750Hi Ivo,
Below is the simplified version.
Here rowID -> rowKey of the grid row
rowData -> key value pair of grid rowupdateRow: (rowID, rowData, commit) => {
this.myUpdateData(rowData)
.subscribe(
result => {
if(result.status == 200) {
this.treeGrid.setCellValue(rowID,’name’, “”+result.body.name);
this.treeGrid.setCellValue(rowID,’timeStamp’, “”+result.body.timeStamp);
this.renderMessage(result,commit);} else {
// ERROR HANDLER
this.renderMessage(result,commit);
}
},
error => {
//commit(false);
//this.errorMessage = <any>error;
}
);
},myUpdateData(data: any): Observable<any> {
let body = JSON.stringify(data);
return this.http.post(environment.serverUrl + ‘myapp/save’, body, this.options)
.map((res: Response) => res.json())
.catch(this.handleError);
}renderMessage(result: any, commit:any): void {
if (result.status == 200) {
this.errorMessage = false;
this.successMessage = true;
commit(true);
} else {
this.errorMessage = true;
this.successMessage = false;
if(result.status == 409 || result.status == 400){
commit(true);
}else{
commit(false);
}}
this.message = result.message;
}Thanks
GopiOctober 17, 2017 at 8:14 am in reply to: sync is not defined While setting cell value using setCellValue() sync is not defined While setting cell value using setCellValue() #96744Hi Team,
Any suggestions on sync issue while setting the cell value after add/update row. ?
trying to set the saved time in one of the column in the grid on the current row which was added/updated
Kindly help.
Thanks
Gopi -
AuthorPosts