Add Event in external js file

2 posts, 0 answers
  1. Thomas
    Thomas avatar
    2 posts
    Member since:
    Jan 2017

    Posted 03 Feb Link to this post

    Hi,

    I'm trying to add a event to a RadPanelBar control in a external js file. But it dosen't work. "Event not found/not known"

    In ASPX File:

    <script type="text/javascript" src="../Docs.js"></script>

    <telerik:RadPanelBar ID="pbResult" ClientID="pbResult" runat="server" ExpandMode="SingleExpandedItem" RenderMode="Lightweight" AllowCollapseAllItems="True" Width="600px" OnItemClick="pbResult_OnItemClick" OnItemDataBound="pbResult_OnItemDataBound" Skin="DOCS" EnableEmbeddedSkins="false"></telerik:RadPanelBar>

     

    External JS File:

    require(['jquery'], function () {

         $("[ClientID='pbResult']").itemClicked(function () {
         ShowLoadingDialog();
         });

    });

    I also tryed add_itemClicked method but also not working

  2. Thomas
    Thomas avatar
    2 posts
    Member since:
    Jan 2017

    Posted 10 Feb in reply to Thomas Link to this post

    Can nobody help me? It is possible? If not I will try a another, not so good, layout.

Back to Top