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
1775
Server and client events in WebExplorerBar
posted

Normal 0 false false false MicrosoftInternetExplorer4

As you can see in example below we have two groups in WebExplorerBar. Is this possible that group “HideColumns” will be handled by client events and group Export by server events.  Group “Export” will export data to excel or pdf documents, and group “HideColumns” is hide or unhide columns in grid. If that impossible maybe you can advise any other way-out from this situation.   

 

<ig:WebExplorerBar ID="WebExplorerBar1" GroupExpandBehavior="SingleExpanded" runat="server"

                    Width="200px" GroupContentsHeight="" Height="100%"

                    StyleSetName="Caribbean" StyleSetPath="~/Styles">

                    <Groups>

                        <ig:ExplorerBarGroup GroupContentsHeight="" Text="HideColumns">

                            <Items>

                                <ig:ExplorerBarItem Text="Column1" TemplateId="Template1" Value="setColumn(this,0);">

                                </ig:ExplorerBarItem>

                                <ig:ExplorerBarItem Text="Column2"  TemplateId="Template1" Value="setColumn(this,1);">

                                </ig:ExplorerBarItem>

                                <ig:ExplorerBarItem Text="Column3" TemplateId="Template1" Value="setColumn(this,2);">

                                </ig:ExplorerBarItem>

                                <ig:ExplorerBarItem Text="Column4" TemplateId="Template1" Value="setColumn(this,3);">

                                </ig:ExplorerBarItem>

                            </Items>

                        </ig:ExplorerBarGroup>

                        <ig:ExplorerBarGroup GroupContentsHeight="" Text="Export">

                            <Items>

                                <ig:ExplorerBarItem Text="Excel">

                                </ig:ExplorerBarItem>

                                <ig:ExplorerBarItem Text="Pdf">

                                </ig:ExplorerBarItem>

                            </Items>

                        </ig:ExplorerBarGroup>

                    </Groups>

                    <Templates>

                        <ig:ItemTemplate ID="WebExplorerBar1Template1" runat="server"

                            TemplateID="Template1" EnableViewState="False">

                             <Template>

                                  <asp:CheckBox ID="CheckBox1" runat="server" onclick="<%#((DataTreeNode)Container.Item).Value%>" Text="<%#((DataTreeNode)Container.Item).Text%>" Checked="True" ViewStateMode="Enabled" />

                             </Template>

                        </ig:ItemTemplate>

                    </Templates>

                </ig:WebExplorerBar>

  • 3726
    posted

    HI there,

    can you share more information regarding this statement: "Is this possible that group “HideColumns” will be handled by client events and group Export by server events." You can attach to client events and server events and you can decided in those events depending on the group text or depending on some custom ID storred in group.Value property whether to process the event or not. I can share more details if you tell me exactly which events you need to be handled on client and which on server.