Primefaces show confirmation box if some rows are selected from datagrid - primefaces

Using primefaces 5. We are having a datagrid with checkboxes and delete button. When the user selects some rows from datagrid and clicks on delete button then a confirmation dialog box is displayed which asks the user to press yes or no.
We want to display an alert message if no row is selected from the datagrid and delete button is clicked and confirmation dialog box should also not be shown. If user selects row from datagrid and clicks on delete then confirmation box should be displayed.
We are using global confirmation box. My code for delete button is as given below
Kindly, let me know how can this be achieved

Related

Angular: mat-button-toggle deselect selected after cancel dialog box

I am having a problem with automatically deselecting a chosen mat-button-toggle if the cancel option is chosen in the dialog popup.
I made a dummy example from some angular code to demonstrate what I mean https://stackblitz.com/edit/angular-azhbe2?file=src/app/dialog-content-example.html
For example:
The Permanent field is selected at first
The Freelancer field is selected and a dialog opens, if "install" is chosen then the Freelancer field should still be the selected field -- but -- if the "cancel" option is chosen or it the dialog box is closed by clicking outside of the box, then the Permanent field should be chosen automatically again, not the Freelancer field..
Any ideas on how to handle this?
Thanks :-)

How do I check if a Kendo Grid has changes in angular 2+?

I am using editable Kendo grid(few columns contains input controls), I want to alert the user "No changes has been detected" when clicking on "Save" button.

How to show an alert / text box after submitting (button) an option value (from drop-down list)?

I can't seem to find how to make this work - selecting an option from the drop-down list & submitting it using a submit button then having an alert / text box show after after clicking submit button. Is it possible ? TIA
What language do you use? if it web, you can add javascript to check your value dropdown.
you can add onSubmit on your form

MS Access: if I put a button on multiple rows form, can I detect on which row the button was clicked

Since the button is unbound to any record, can I detect on which row the button was clicked ?
Yes. Clicking the button sets focus to record row the button is on. So code that references fields of that record would pull values from that record. Form must be in Continuous view for button to display.

How to create two onclick event button html?

I have created a form in html with two input feilds and one button.
List of Input Fields:-
Name
Mobile Number
Now what i wanted to do is if I click on a button, it should send an sms to mobile number entered.
clicking on the button should call an api(url) for which it should fetch the mobile number entered in the input field.