jQWidgets Forums
Forum Replies Created
-
Author
-
Hi Peter,
But it is automatically focused on it. I hadn’t written any code for the same. Any solution to stop it.
Regards,
Hi,
Not worked for me.
Hi,
There is an error in the code like ‘$’.
June 10, 2019 at 4:40 am in reply to: Angular7 jqxGrid , apply password type in column Angular7 jqxGrid , apply password type in column #105581Hey Thanks For Replay we very appreciate
we agree with your answerOnce we are changing the password we are not able to get updated value in the validation. and how to compare new password field with confirm password in jqxgrid
Code is:-
{
text: this.resourceModel.admn_usermng_unlockresethdr1_entnewpass, columntype: ‘custom’, datafield: ‘enterNewPassword’, sortable: false, menu: false,
createwidget: (row: any, column: any, value: string, htmlElement: HTMLElement) => {let container = document.createElement(‘input’);
container.className = ‘password’;
container.setAttribute(‘type’, ‘password’);
container.setAttribute(‘value’, value);
htmlElement.appendChild(container);let options = {
width: ‘100%’,
height: ‘100%’,
};jqwidgets.createInstance(‘.password’, ‘jqxPasswordInput’, options);
},
initwidget: (row: number, column: any, value: any, htmlElement: HTMLElement): void => {},
},
{
text: this.resourceModel.admn_usermng_unlockuser_confirmpwd, datafield: ‘confirmPassword’, columntype: ‘template’,sortable: false, menu: false,createwidget: (row: any, column: any, value: string, htmlElement: HTMLElement) => {
let container = document.createElement(‘input’);
container.className = ‘password’;
container.setAttribute(‘type’, ‘password’);
container.setAttribute(‘value’, value);
htmlElement.appendChild(container);let options = {
width: ‘100%’,
height: ‘100%’,
};jqwidgets.createInstance(‘.password’, ‘jqxPasswordInput’, options);
},
initwidget: (row: number, column: any, value: any, htmlElement: HTMLElement): void => {let newPass = this.lockedUsersListGrid.getcellvalue(row, ‘enterNewPassword’);
debugger;
},validation: (cell: any, value: string): any => {
debugger;
let newPass = this.lockedUsersListGrid.getcellvalue(cell.row, ‘enterNewPassword’);
const rowValue = cell.row.bounddata;
if (newPass !== value && value != null) {
this.hasError = true;
return {
message: ‘Password did not match’, result: false
};
}
this.hasError = false;
return true;
}
}Hi Todor,
Thanks, it works. Can I fire the
change
event for the same? I tried it but it won’t work. Let me know as soon as possible.Regards,
May 16, 2019 at 7:09 am in reply to: Nesed Grid with Add New button. Nesed Grid with Add New button. #105252Hi Todor,
Worked like a charm. Thanks.
Just one question after adding a new row in nested grid how can I fire validation for a newly added row. Let me know as soon as possible.Regards,
May 14, 2019 at 11:55 am in reply to: Nesed Grid with Add New button. Nesed Grid with Add New button. #105219Hi Todor, I think this is not the correct nested grid.
Check this Link. nested grid
I want to add a button in every nested grid above or below and on click on that button I want to add a new row into this particular nested grid.
-
AuthorPosts