Hi
I am having a problem with closing a webdropdown after clicking outside in a window . This webdropdown
having datatree and I set these properties and when I click outside(on Blur) the webdropdown not closing
hence user feeling inconsistency .
AutoPostBack="false" AutoPostBackFlags-ValueChanged="Off" AutoSelectOnMatch="true"
CssClass="filterlistarea" CurrentValue="" DisplayMode="DropDown" DropDownContainerHeight="200px"
EnableAutoFiltering="Server" EnableClosingDropDownOnSelect="false" EnableDropDownAsChild="true"
EnableLoadOnDemand="true" StyleSetName="Default" Width="180px" DropDownContainerWidth="350px">
<%----%>
AutoPostBackFlags-CheckBoxSelectionChanged="Off" AutoPostBackFlags-NodeClick="Off"
AutoPostBackFlags-SelectionChanged="Off" CheckBoxMode="BiState" CssClass="mpspace"
Height="150px" SelectionType="Multiple" Width="90%">
<%-- clientevents="" nodechecking="OnSelectNodeAct">--%>
ValueField="SubActivityID" />
Can anybody provide me a proper solution for this issue ...
Regards
Sujay
HI Peter
The solution which you have provided is working perfect . But when one web dropdown open and clicking on the another webdropdown will not closing the previous selected webdropdown . The both weddropdowns contains the webdatatree . Please give me a solution for this issue .
Thanks & Regards
Shantesh
Hi Petar
Sorry for late replay . Your solution helped me a lot and it working fine now . Thank you so much for providing me a test sample .
Best Regards
Hi Shantesh,
After further researching the matter I have devised a way to set the focus on the WebDropDown's input shortly after a node in WebDataTree has been clicked, expanded or collapsed. Attached is my test sample for your consideration.
Please let me know if this helps.
Thank You for the replay . Can you please give me the possible solution for this scenario i.e without using WebdataTree how can I achieve this . If possible please send me sample project
I have received word back from development regarding this scenario:
"In this case when you click on the WebDataTree the focus is transferred to it in order to process events. If the drop down is closed at this point, then interaction with a templated control inside the drop down is impossible. After this point the drop down does not have focus so if you click outside, blur would be triggered for the tree and not for the drop down, which would not make the drop down close. This behavior is expected, otherwise there is no way to handle events correctly for a templated control."
Please let me know if you have any questions.