Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1025
WebExplorerBar Disable itemclick on GroupItem
posted

I'm Using the webExplorerbar with the following properties
runat="server" Width="100%" Height="400px" GroupExpandBehavior="SingleExpanded" ItemIndent="2px" BorderStyle="None" EnableExpandButtons="False"

 

 

 

 

 

 

EnableHotTracking="False" GroupExpandAction="ButtonClick"

 

 

 

GroupContentsHeight="" AutoPostBackFlags-ItemClick="On"

 

 

 

EnableSelection="False" EnableViewState="False"

I want to disable the itemclick action on the group as i have only single group
thats why i always keep the group expanded.
clicking on the group type item causes the postback while i just want to have the 
simple text group header where clciking does not work.
   

Parents
No Data
Reply
  • 3726
    posted

    Hi,

    ItemClick event could not be canceled. If you remove the setting AutoPostBackFlags-ItemClick="On" or change it to Off will stop the postback being done on item click. If you want the group to be always expanded and not collapsed, change the mode to SingleExpanded. Another way to achieve the desired behavior is to cancel the ItemCollapsing event. This could be done by setting args.set_cancel(true); in the event.

    Hope this helps.

    Thanks,

    Lubomir

Children