Hi experts,
When I'm checking a certain section of iggrid, i see following code block. I can understand ui.owner refers to iggrid and element refers to the table html element. But without see the sample, I really don't know the owner has an element property. Can you please direct me to the right place where I can find related api?
dataRendered: function (evt, ui) { ui.owner.element.find("tr td:nth-child(1)").css("text-align", "right"); ui.owner.element.find("tr td:nth-child(4)").css("text-align", "right"); }
Hello Ming,
Thank you for posting in the Infragistics community !
I am not quite sure I got your question. Could you please clarify ?
Anyway, as you have said ui.owner refers to the igGrid, so in every case ui.owner.element will return the DOM element where the igGrid has initialized itself. You can see the API documentation at http://help.infragistics.com/jQuery/2015.1/ui.iggrid
Please let me know if you have further questions.
Hi Hristo,
I mean how do you know ui.owner has a property called "element" which is actually the dom element? Where is place says this?
In the API documentation at http://help.infragistics.com/jQuery/2014.2/ui.iggrid only the first childs of ui are displayed. However typing for example ui.owner. in Chrome browser console will trigger intelisense which will hint you about the possible properties/methods you can call from ui.owner.
Please let me know if you have other questions.
We've just updated our igniteui.d.ts, and found that the 'owner' property has been removed from a number of types (e.g. RenderedEventUIParam or DataRenderedEventUIParam).What is your advice with regards to the original question now, please?
What do you suggest we now use instead of, say, 'ui.owner.element.find'?
Got it, thanks!