jQuery UI Widgets › Forums › Angular › User-Based Action vs Programmatic Action
This topic contains 5 replies, has 2 voices, and was last updated by svetoslav_borislavov 1 year, 2 months ago.
-
Author
-
Hello!
I’ve employed a jqxDropDownList utilizing the onSelect event which gives an argument to the function that has an “args.type” property which allows you to evaluate whether the event was triggered by a “keyboard”, “mouse” or null (null meaning it was triggered programmatically).
I don’t see the same “args.type” property when using the jqxGrid control. Is there a similar property for it?
Thank you!
ChuckHi,
The event args has got a type property. See the following example in which a dropdownlist is used as an editing control in a Grid:
https://stackblitz.com/edit/github-zumc3t-jphhxf?file=src/app/app.component.ts
You can open the console and see that there is a type property.If you have any additional questions, do not hesitate to contact us!
Best regards,
Svetoslav BorislavovjQWidgets Team
https://www.jqwidgets.com/Good morning,
I may be reading you answer incorrectly but….as noted above, I understand that there is an “args.type” for the dropdownlist and I am using it. I’m asking if there is a similar property for the jqxGrid? Does the jqxGrid have a property that I can reference (similar to the dropdown) that indicates whether a keyboard, mouse or programmatic call was made?
Thanks again,
ChuckHi,
You need a similar property, but for which event of the jqxGrid? I could not understand you.
I have shown you the onSelect event of the dropdown in the grid, but you need it for the actual jqxGrid.I will be waiting for your response so I can help you!
Best regards,
Svetoslav BorislavovjQWidgets Team
https://www.jqwidgets.com/Yes, that’s correct. For instance on the onRowSelect event. This event fires when the row is selected by a user and programmatically. Is there a way to determine if it was based on a user event vs a call within the code?
Thank you,
ChuckHi,
Unfortunately no, there isn’t such property.
We are sorry, but if you need any help, let us know!Best regards,
Svetoslav BorislavovjQWidgets Team
https://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.