<?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>topic Re: Set Width of dijit FilteringSelect on a Custom Widget in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/set-width-of-dijit-filteringselect-on-a-custom/m-p/240230#M6488</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Robert Scheitlin, GISP wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I probably should not have recommended using id as id is the least desirable of the options...&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;So is the base class of your widget "jimu-widget-demo"?&lt;/LI&gt;&lt;LI&gt;Is there any other class assigned to your FilteringSelect div?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an example of one of my FilteringSelect in a widget:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;div data-dojo-attach-point="stringCodedValuesFS" data-dojo-type="dijit/form/FilteringSelect" data-dojo-props='searchAttr:"name",required:true,intermediateChanges:true' class="dijit-form-FilteringSelect" style="display:none;width:100%;height:25px;"&amp;gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also specify the width in the style property of the actual html element.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;OL&gt;&lt;LI&gt;Yes&lt;/LI&gt;&lt;LI&gt;No, at least not by me.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I have been trying to use your example, but it does not show up as a filteringSelect.&amp;nbsp; It is just a blank line in the widget.&amp;nbsp; Also, I have no clue how you are setting the Store attribute on the filteringSelect.&amp;nbsp; I know code below does not work since html is not defined in my code.&amp;nbsp; I could not find how to instantiate it in any of the ESRI widgets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;html.setStyle(this.stringCodedValuesFS, {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; store: empNameStore&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New code still fails.&lt;/P&gt;&lt;P&gt;Widget.html&lt;/P&gt;&lt;P&gt;&amp;lt;div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;input id="empNameSelect" class="wideInput" style="width: 200px"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;style.css&lt;/P&gt;&lt;P&gt;.jimu-widget-demo .wideInput{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; width: 250px;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;-Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Mar 2015 20:25:02 GMT</pubDate>
    <dc:creator>DanJensen</dc:creator>
    <dc:date>2015-03-30T20:25:02Z</dc:date>
    <item>
      <title>Set Width of dijit FilteringSelect on a Custom Widget</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/set-width-of-dijit-filteringselect-on-a-custom/m-p/240226#M6484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have added a dijit filtering select to a custom widget.&amp;nbsp; With out any additional work, it is not wide enough for the data it displays.&amp;nbsp; What is the easiest way to set the width of a control added to a custom widget? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 17:47:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/set-width-of-dijit-filteringselect-on-a-custom/m-p/240226#M6484</guid>
      <dc:creator>DanJensen</dc:creator>
      <dc:date>2015-03-30T17:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: Set Width of dijit FilteringSelect on a Custom Widget</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/set-width-of-dijit-filteringselect-on-a-custom/m-p/240227#M6485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Assign the control and id or a class and set the width in css.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 17:54:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/set-width-of-dijit-filteringselect-on-a-custom/m-p/240227#M6485</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-03-30T17:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: Set Width of dijit FilteringSelect on a Custom Widget</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/set-width-of-dijit-filteringselect-on-a-custom/m-p/240228#M6486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay.&amp;nbsp; That being the best way, here is my second question.&amp;nbsp; How do you correctly code it?&amp;nbsp; &lt;/P&gt;&lt;P&gt;Here is my failed attempt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in Widget.html&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;input id="myDemoInput"&amp;gt;&lt;/P&gt;&lt;P&gt;in demo\css\style.css&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .jimu-widget-demo #myDemoInput { width: 150px;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 18:12:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/set-width-of-dijit-filteringselect-on-a-custom/m-p/240228#M6486</guid>
      <dc:creator>DanJensen</dc:creator>
      <dc:date>2015-03-30T18:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Set Width of dijit FilteringSelect on a Custom Widget</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/set-width-of-dijit-filteringselect-on-a-custom/m-p/240229#M6487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I probably should not have recommended using id as id is the least desirable of the options...&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;So is the base class of your widget "jimu-widget-demo"?&lt;/LI&gt;&lt;LI&gt;Is there any other class assigned to your FilteringSelect div?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an example of one of my FilteringSelect in a widget:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;div data-dojo-attach-point="stringCodedValuesFS" data-dojo-type="dijit/form/FilteringSelect" data-dojo-props='searchAttr:"name",required:true,intermediateChanges:true' class="dijit-form-FilteringSelect" style="display:none;width:100%;height:25px;"&amp;gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also specify the width in the style property of the actual html element.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 18:25:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/set-width-of-dijit-filteringselect-on-a-custom/m-p/240229#M6487</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-03-30T18:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Set Width of dijit FilteringSelect on a Custom Widget</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/set-width-of-dijit-filteringselect-on-a-custom/m-p/240230#M6488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Robert Scheitlin, GISP wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I probably should not have recommended using id as id is the least desirable of the options...&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;So is the base class of your widget "jimu-widget-demo"?&lt;/LI&gt;&lt;LI&gt;Is there any other class assigned to your FilteringSelect div?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an example of one of my FilteringSelect in a widget:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;div data-dojo-attach-point="stringCodedValuesFS" data-dojo-type="dijit/form/FilteringSelect" data-dojo-props='searchAttr:"name",required:true,intermediateChanges:true' class="dijit-form-FilteringSelect" style="display:none;width:100%;height:25px;"&amp;gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also specify the width in the style property of the actual html element.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;OL&gt;&lt;LI&gt;Yes&lt;/LI&gt;&lt;LI&gt;No, at least not by me.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I have been trying to use your example, but it does not show up as a filteringSelect.&amp;nbsp; It is just a blank line in the widget.&amp;nbsp; Also, I have no clue how you are setting the Store attribute on the filteringSelect.&amp;nbsp; I know code below does not work since html is not defined in my code.&amp;nbsp; I could not find how to instantiate it in any of the ESRI widgets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;html.setStyle(this.stringCodedValuesFS, {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; store: empNameStore&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New code still fails.&lt;/P&gt;&lt;P&gt;Widget.html&lt;/P&gt;&lt;P&gt;&amp;lt;div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;input id="empNameSelect" class="wideInput" style="width: 200px"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;style.css&lt;/P&gt;&lt;P&gt;.jimu-widget-demo .wideInput{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; width: 250px;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;-Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 20:25:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/set-width-of-dijit-filteringselect-on-a-custom/m-p/240230#M6488</guid>
      <dc:creator>DanJensen</dc:creator>
      <dc:date>2015-03-30T20:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Set Width of dijit FilteringSelect on a Custom Widget</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/set-width-of-dijit-filteringselect-on-a-custom/m-p/240231#M6489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; You are going to have to study up an get up to speed with templated dijits in dojo. When you add a html element in the widget.html (which is the widgets template) there is a property called "data-dojo-attach-point" this is how you get a reference to the component in your widget.js code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Be sure that you have a require in your widget.js code for the dijit/form/FilteringSelect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 20:33:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/set-width-of-dijit-filteringselect-on-a-custom/m-p/240231#M6489</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-03-30T20:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: Set Width of dijit FilteringSelect on a Custom Widget</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/set-width-of-dijit-filteringselect-on-a-custom/m-p/240232#M6490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Turns out using css and the data-dojo-attach-point did NOT work in my case because I had followed the example of using filtering select from the dojo documentation.&amp;nbsp; It creates the filtering select in javascript like this.&lt;/P&gt;&lt;P&gt;var filteringSelect;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; filteringSelect = new FilteringSelect({&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; id: "stateSelect",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; name: "state",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; store: stateStore,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; autoComplete: true,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; value: "CA",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; searchAttr: "name"&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;}, "stateSelect").startup();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;I had to add the style property inside the brackets to see a change, like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; style: "width: 100%"&lt;/P&gt;&lt;P&gt;Nothing else worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 18:50:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/set-width-of-dijit-filteringselect-on-a-custom/m-p/240232#M6490</guid>
      <dc:creator>DanJensen</dc:creator>
      <dc:date>2015-04-01T18:50:27Z</dc:date>
    </item>
  </channel>
</rss>

