<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: How to create a custom control using some external libraries? in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/how-to-create-a-custom-control-using-some-external-libraries/qaa-p/11675975#M4364339</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saikiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you going to re-use this everywhere in your code? - Is it a matter you really need a Custom Control or just a matter to apply this into an UI5 Element?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Custom Controls are better for code re-use but in order to define then, you will end up with more code being executed and also transmitted - even thou they seem to be "good practice" inflating execution time and bytes transferred for no good reason hardly translates into good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Case you decide the Custom Control path, you can find more information here: &lt;/SPAN&gt;&lt;A href="https://openui5beta.hana.ondemand.com/#docs/guide/d12d2ee6a5454d799358d425f9e7c4db.html" style="font-size: 10pt;" title="https://openui5beta.hana.ondemand.com/#docs/guide/d12d2ee6a5454d799358d425f9e7c4db.html"&gt;OpenUI5 SDK - Demo Kit&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, be careful how you deal with your properties, otherwise you will end up with DOM Nodes being "re-created" which will very likely kill the performance of your application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Dan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Apr 2016 21:13:06 GMT</pubDate>
    <dc:creator>daniel_ruiz2</dc:creator>
    <dc:date>2016-04-25T21:13:06Z</dc:date>
    <item>
      <title>How to create a custom control using some external libraries?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-create-a-custom-control-using-some-external-libraries/qaq-p/11675972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am trying to create a custom control which displays a Treegrid using the external libraries ,where i need to create the treegrid by specifying the div name in which the tree gets created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example :&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/937576" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above example we need to mention the "div id". So that the tree gets created in that div i.e "#treeGrid".&lt;/P&gt;&lt;P&gt;But when i try to create a custom control i can create a div only in the renderer() but not in onInit().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore my question is how can we give a dynamic DIV ID to generate the tree in that respective div, moreover what is way to create this type of custom control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The below link is the working example of the treegrid which need to be converted as custom control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxtreegrid/index.htm#demos/jqxtreegrid/defaultfunctionality.htm" title="http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxtreegrid/index.htm#demos/jqxtreegrid/defaultfunctionality.htm"&gt;jQuery Tree Grid&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Saikiran Bommagowni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Apr 2016 13:44:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-create-a-custom-control-using-some-external-libraries/qaq-p/11675972</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-04-25T13:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a custom control using some external libraries?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-create-a-custom-control-using-some-external-libraries/qaa-p/11675973#M4364337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; No need to use third party library. SAPUI5 has own tree control. First impression is that UI5 tree table is not worse then&amp;nbsp; &lt;A class="jive-link-external-small" href="http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxtreegrid/index.htm#demos/jqxtreegrid/defaultfunctionality.htm" style="font-size: 12px; color: #3778c7; background: #ffffff;"&gt;jQuery Tree Grid&lt;/A&gt;. If You are following SAP UI principles - use correct control in correct place ))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is component - &lt;A href="https://experience.sap.com/fiori-design/ui-components/tree-table/" title="https://experience.sap.com/fiori-design/ui-components/tree-table/"&gt;https://experience.sap.com/fiori-design/ui-components/tree-table/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;hope usefull.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Apr 2016 13:49:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-create-a-custom-control-using-some-external-libraries/qaa-p/11675973#M4364337</guid>
      <dc:creator>pavlo_denysyuk</dc:creator>
      <dc:date>2016-04-25T13:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a custom control using some external libraries?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-create-a-custom-control-using-some-external-libraries/qaa-p/11675974#M4364338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavlo, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; It is my requirement, where i need to use it mandatorily and also it has many other features. So can you help me to find out the way to create a custom control for that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Apr 2016 14:20:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-create-a-custom-control-using-some-external-libraries/qaa-p/11675974#M4364338</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-04-25T14:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a custom control using some external libraries?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-create-a-custom-control-using-some-external-libraries/qaa-p/11675975#M4364339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saikiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you going to re-use this everywhere in your code? - Is it a matter you really need a Custom Control or just a matter to apply this into an UI5 Element?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Custom Controls are better for code re-use but in order to define then, you will end up with more code being executed and also transmitted - even thou they seem to be "good practice" inflating execution time and bytes transferred for no good reason hardly translates into good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Case you decide the Custom Control path, you can find more information here: &lt;/SPAN&gt;&lt;A href="https://openui5beta.hana.ondemand.com/#docs/guide/d12d2ee6a5454d799358d425f9e7c4db.html" style="font-size: 10pt;" title="https://openui5beta.hana.ondemand.com/#docs/guide/d12d2ee6a5454d799358d425f9e7c4db.html"&gt;OpenUI5 SDK - Demo Kit&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, be careful how you deal with your properties, otherwise you will end up with DOM Nodes being "re-created" which will very likely kill the performance of your application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Dan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Apr 2016 21:13:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-create-a-custom-control-using-some-external-libraries/qaa-p/11675975#M4364339</guid>
      <dc:creator>daniel_ruiz2</dc:creator>
      <dc:date>2016-04-25T21:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a custom control using some external libraries?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-create-a-custom-control-using-some-external-libraries/qaa-p/11675976#M4364340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I reuse the that custom control for 3-4times in my application. And i want make&amp;nbsp; the external jqtree as a SAP UI5 element, so that i can directly place it in any of the UI5 layout or container. So can you say the procedure to create that custom control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Saikiran Bommagowni.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2016 13:50:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-create-a-custom-control-using-some-external-libraries/qaa-p/11675976#M4364340</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-04-26T13:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a custom control using some external libraries?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-create-a-custom-control-using-some-external-libraries/qaa-p/11675977#M4364341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Saikiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, it does look like you could use a custom control.. go for it. On my previous reply I did hyperlink the section on the UI5 on how to create a custom control.. rather straight forward.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "tricky" part not explained is, the "attributes" of your custom control are managed by default by UI5 and this means, UI5 will end up creating getters and setters for them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The default mutators do not supress the invalidate on the control, which means, every time you change a property in your control it will destroy the DOM nodes (of your control and anything below it) and re-build it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the worst possible behavior in terms of performance, so make sure to overwrite the mutators to supress the invalidate when needed so you don't have performance issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Dan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: Case you have trouble to understand what to do I suggest you visit &lt;A href="https://github.com/SAP/openui5/tree/master/src/sap.ui.commons/src/sap/ui/commons" title="https://github.com/SAP/openui5/tree/master/src/sap.ui.commons/src/sap/ui/commons"&gt;openui5/src/sap.ui.commons/src/sap/ui/commons at master · SAP/openui5 · GitHub&lt;/A&gt; because there are a lot of examples from the library itself.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2016 20:38:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-create-a-custom-control-using-some-external-libraries/qaa-p/11675977#M4364341</guid>
      <dc:creator>daniel_ruiz2</dc:creator>
      <dc:date>2016-04-26T20:38:45Z</dc:date>
    </item>
  </channel>
</rss>

