I have added the webExplorebar in my page, Below is my code
<ig:WebExplorerBar ID="WebExplorerBar1" runat="server" Width="260px" ViewStateMode="Enabled" StyleSetName ="ElectricBlue"><Groups><ig:ExplorerBarGroup Text="Group 1" Expanded
="false">
<Items>
<ig:ExplorerBarItem SelectedCssClass="selExItem">
<Template>
<user Control>
</ig:ExplorerBarItem>
</Items>
</ig:ExplorerBarGroup>
I have set GroupExpandAction="HeaderClick" and AutoPostBackFlags ItemClick :Off and ItemSelected:off
When I click on the header without any postback the usercontrol items are expanding but when i click on the button image(down arrow and up arrow) i am getting the 403 error and it is doing the postback and redirecting to /usercontrol/# page. Please need help when i click on the image also without postback it should expand.
Hi I am having same issue, let me explain again WebExplorerBar control have a propert called ExpandButton which contain ImageUrl property to set image which is shown on group along with text, when you click anywhere on hear text on group it works fine but clicking on that image (which appear even if u don't spcify) throws forbidden error as said.
Please help to handle this.
Regards
Manoj
Hi KarthikaSubbiah,
Please feel free to contact me if you are still experiencing any issues.
Thank you for your reply.
From what I can understand, you have an ImageButton control in your user control and that is what is causing the undesired postback (as the image button control can be assigned an OnClientClick handler). If that is not the case please let me know. It would also help to know what version of NetAdvantage you are currently using.
Thanks for your reply. I am not able to find any OnClientClick handler of the image button. i can find only the below list of client side events for WebExplorerBar: ItemClick,ItemExpanding,Itemcollapsing .....
For these client side events I have tried with return false but still when i click on the image I am getting the HTTP 403 forbidden error. Can you please provide some samples to handle the image button.
Thank you for posting in the community.
From what I can understand your requirement is not to initiate a postback when clicking on the image button contained in the templated user control. This may be achieved by setting the OnClientClick handler of the image button to return false, effectively cancelling postback.
Please let me know if this helps.