Hi,
I want to set first value of drop down list as selected.
like below-
Hello Ruchi Pandey,
Thank you for posting in our forums!
It looks like your image did not come through correctly. Please attach your image to this topic through the options tab rather than displaying it in the message.
This will give me a better understanding of what exactly you are looking to accomplish with the WebDropDown.
If you have any further questions or concerns with this, please let me know.
Hi Michael Harrington ,
Please find image in attached file.
Thanks,
Ruchi
Hello Ruchi,
Thank you for the image. I am still not entirely certain from the image and from your question what you are trying to achieve.
If you want the text area to constantly display the style from the image, you could set the properties through the .igdd_ValueDisplay class that gets applied to it. Please see the following example code:
.igdd_ValueDisplay{ background-color: Navy !important; color: White !important; }
Additionally, if you only want the initial, null text to display a certain color, please see the following forum thread for more information:
http://www.infragistics.com/community/forums/t/73108.aspx
This thread explains that you can use the styling of the .igdd_NullText class like so:
.igdd_NullText { background-color: Navy !important; color: White !important; }
I have also attached a small sample that demonstrates these two solutions.
If you need further assistance with this, please let me know how I can assist you.
Hello Michael,
when webdropdown loaded for the first time,it should be displayed like the picture.means the content of input box shuld be selected and when i click any button it should get clear and i can type new characters in it.
Hi Ruchi,
Thank you for the clarification. Please see the following forum thread which discusses how you can achieve this behavior.
http://www.infragistics.com/community/forums/t/41061.aspx
This thread explains that you can use the Initialize client event to select the text in the WebDropDown when the page loads. For example you can use the following code to do this:
ASPX Markup for the WebDropDown:
<ig:WebDropDown ID="WebDropDown1" runat="server" Width="215px"> <ClientEvents Initialize="WebDropDown1_Initialize" /> </ig:WebDropDown>
javascript handler for Initialize event:
<script type="text/javascript" id="igClientScript"> function WebDropDown1_Initialize(sender, eventArgs) { sender._elements["Input"].select(); } </script>
If you need further assistance with this, please let me know and I will be glad to help.
this works...Thanks a lot for your help....:)
Ruchi.