This is a migrated thread and some comments may be shown as answers.

Add Event in external js file

1 Answer 53 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Thomas
Top achievements
Rank 1
Thomas asked on 03 Feb 2017, 08:59 AM

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

1 Answer, 1 is accepted

Sort by
0
Thomas
Top achievements
Rank 1
answered on 10 Feb 2017, 06:42 AM

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

Tags
PanelBar
Asked by
Thomas
Top achievements
Rank 1
Answers by
Thomas
Top achievements
Rank 1
Share this question
or