<?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: How can I extend the width of my drop down box in my dashboard? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extend-the-width-of-my-drop-down-box-in-my-dashboard/m-p/173032#M49620</link>
    <description>&lt;P&gt;more specifically to use an example of what the css looks like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;label for="resized_input_3229"&amp;gt;Region&amp;lt;/label&amp;gt;
    &amp;lt;div id="resized_input_3229" class="splunk-dropdown splunk-choice-input splunk-view"&amp;gt;
    &amp;lt;div class="select2-container select2-allowclear" id="s2id_autogen45" style="display: inline-block; width: 200px;"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I need to somehow manually apply css to that last part that seems to hardcode the width to 200px.  Have you been able to get around this?&lt;/P&gt;</description>
    <pubDate>Tue, 25 Oct 2016 21:33:47 GMT</pubDate>
    <dc:creator>bcronrath</dc:creator>
    <dc:date>2016-10-25T21:33:47Z</dc:date>
    <item>
      <title>How can I extend the width of my drop down box in my dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extend-the-width-of-my-drop-down-box-in-my-dashboard/m-p/173027#M49615</link>
      <description>&lt;P&gt;I'd like to extend the width of my drop down box in my dashboard because the source names are quite long and i'd like it all to show. How can I do this in XML without having to convert to HTML?&lt;/P&gt;

&lt;P&gt;Below is my XML for the drop down:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;fieldset autoRun="true" submitButton="false" searchWhenChanged="true"&amp;gt;
    &amp;lt;input type="dropdown" token="sourcetoken" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Select a Source:&amp;lt;/label&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;**My Search Query**&amp;lt;/query&amp;gt;
      &amp;lt;/search&amp;gt;
      &amp;lt;default&amp;gt;Select...&amp;lt;/default&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;source&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;source&amp;lt;/fieldForValue&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And a image of what it currently looks like:&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/561i33E55E42FAD4324D/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2015 08:44:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-extend-the-width-of-my-drop-down-box-in-my-dashboard/m-p/173027#M49615</guid>
      <dc:creator>MichaelPriest</dc:creator>
      <dc:date>2015-08-13T08:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: How can I extend the width of my drop down box in my dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extend-the-width-of-my-drop-down-box-in-my-dashboard/m-p/173028#M49616</link>
      <description>&lt;P&gt;You won't be able to do this in Simple XML I'm afraid, but you can use CSS for that. Give your input an id like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="dropdown" token="sourcetoken" searchWhenChanged="true" id="resized_input"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And use the following code in &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.4/Viz/CustomizeSimpleXML#CSS_and_JavaScript"&gt;a CSS file applied to your dashboard&lt;/A&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#resized_input {
    width: 300px;
}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can change the width to your liking.&lt;/P&gt;

&lt;P&gt;UPDATE: apparently, changes in recent versions require a different CSS selector. See comment by @rjthibod &lt;A href="https://answers.splunk.com/answers/423824/how-to-use-css-to-increase-the-width-of-a-drop-dow.html#comment-696565"&gt;here&lt;/A&gt; for details.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2015 09:04:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-extend-the-width-of-my-drop-down-box-in-my-dashboard/m-p/173028#M49616</guid>
      <dc:creator>jeffland</dc:creator>
      <dc:date>2015-08-13T09:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: How can I extend the width of my drop down box in my dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extend-the-width-of-my-drop-down-box-in-my-dashboard/m-p/173029#M49617</link>
      <description>&lt;P&gt;Thanks, I'll convert it to HTML once I've finished&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2015 09:28:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-extend-the-width-of-my-drop-down-box-in-my-dashboard/m-p/173029#M49617</guid>
      <dc:creator>MichaelPriest</dc:creator>
      <dc:date>2015-08-13T09:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: How can I extend the width of my drop down box in my dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extend-the-width-of-my-drop-down-box-in-my-dashboard/m-p/173030#M49618</link>
      <description>&lt;P&gt;There's no need to do that, if you weren't planning on doing that either way don't do it to apply CSS. See the link I provided, the file is dynamically applied to your dashboard even if it's based on Simple XML.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2015 09:33:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-extend-the-width-of-my-drop-down-box-in-my-dashboard/m-p/173030#M49618</guid>
      <dc:creator>jeffland</dc:creator>
      <dc:date>2015-08-13T09:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: How can I extend the width of my drop down box in my dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extend-the-width-of-my-drop-down-box-in-my-dashboard/m-p/173031#M49619</link>
      <description>&lt;P&gt;Hi Jeff, this doesn't seem to be working for me.  I did get my css to apply, but it only seems to be changing the width of some imaginary box around the dropdown but not the actual dropdown itself.  So effectively all it does is make content to the right mash into the dropdown.  Is there a way I can somehow set the id on the div that actual controls the visual portion of the dropdown as well?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2016 21:29:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-extend-the-width-of-my-drop-down-box-in-my-dashboard/m-p/173031#M49619</guid>
      <dc:creator>bcronrath</dc:creator>
      <dc:date>2016-10-25T21:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: How can I extend the width of my drop down box in my dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extend-the-width-of-my-drop-down-box-in-my-dashboard/m-p/173032#M49620</link>
      <description>&lt;P&gt;more specifically to use an example of what the css looks like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;label for="resized_input_3229"&amp;gt;Region&amp;lt;/label&amp;gt;
    &amp;lt;div id="resized_input_3229" class="splunk-dropdown splunk-choice-input splunk-view"&amp;gt;
    &amp;lt;div class="select2-container select2-allowclear" id="s2id_autogen45" style="display: inline-block; width: 200px;"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I need to somehow manually apply css to that last part that seems to hardcode the width to 200px.  Have you been able to get around this?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2016 21:33:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-extend-the-width-of-my-drop-down-box-in-my-dashboard/m-p/173032#M49620</guid>
      <dc:creator>bcronrath</dc:creator>
      <dc:date>2016-10-25T21:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: How can I extend the width of my drop down box in my dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extend-the-width-of-my-drop-down-box-in-my-dashboard/m-p/173033#M49621</link>
      <description>&lt;P&gt;Are you on a html dashboard? The solution above is for Simple XML dashboards.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2016 11:33:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-extend-the-width-of-my-drop-down-box-in-my-dashboard/m-p/173033#M49621</guid>
      <dc:creator>jeffland</dc:creator>
      <dc:date>2016-10-26T11:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: How can I extend the width of my drop down box in my dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extend-the-width-of-my-drop-down-box-in-my-dashboard/m-p/173034#M49622</link>
      <description>&lt;P&gt;This solution worked for me:&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/114078/splunk-6-dropdown-menu-decrease-width.html"&gt;https://answers.splunk.com/answers/114078/splunk-6-dropdown-menu-decrease-width.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 13:28:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-extend-the-width-of-my-drop-down-box-in-my-dashboard/m-p/173034#M49622</guid>
      <dc:creator>Yunagi</dc:creator>
      <dc:date>2018-01-10T13:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: How can I extend the width of my drop down box in my dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extend-the-width-of-my-drop-down-box-in-my-dashboard/m-p/173035#M49623</link>
      <description>&lt;P&gt;This does not work for multiselect in Splunk 7.2.&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 19:44:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-extend-the-width-of-my-drop-down-box-in-my-dashboard/m-p/173035#M49623</guid>
      <dc:creator>nick405060</dc:creator>
      <dc:date>2019-05-07T19:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: How can I extend the width of my drop down box in my dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extend-the-width-of-my-drop-down-box-in-my-dashboard/m-p/173036#M49624</link>
      <description>&lt;P&gt;Hi!&lt;BR /&gt;
Here is my solution to the problem&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/423824/how-to-use-css-to-increase-the-width-of-a-drop-dow.html"&gt;https://answers.splunk.com/answers/423824/how-to-use-css-to-increase-the-width-of-a-drop-dow.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2019 18:50:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-extend-the-width-of-my-drop-down-box-in-my-dashboard/m-p/173036#M49624</guid>
      <dc:creator>BigCosta</dc:creator>
      <dc:date>2019-12-19T18:50:25Z</dc:date>
    </item>
  </channel>
</rss>

