I'm Using the webExplorerbar with the following propertiesrunat="server" Width="100%" Height="400px" GroupExpandBehavior="SingleExpanded" ItemIndent="2px" BorderStyle="None" EnableExpandButtons="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.
Thanks for your quick reply Lubomir.
But My problem is that I want the postback on the item click event which i can achieve thru AutoPostBackFlags-ItemClick="On" but at the same time i dont want the group(header) click action (Item click event also triggers the header click with the args type groupitem)so is there any way of disabling the header click .Like thru javascript check the itemtype and if the type is group cancel the event otherwise forse the _dopostback with the events args.
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