开发者

Propagating client side events in .net user controls

I have a telerik rad tree view which I am wrapping in a user control:

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucAssetPicker.ascx.cs"Inherits="GPSOnline.UserControls.ucAssetPicker" %><%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<telerik:RadTreeView runat="server" ID="assetTreeView" Height="100%" Width="100%" Skin="Web20"
    DataFieldID="Id" DataFieldParentID="ParentId" DataTextField="Name" DataValueField="Id"
    BorderStyle="None" SingleExpandPath="True" CausesValidation="False" 
    onnodeclick="assetTreeView_NodeClick" />

I was wondering if its possible to propagate a client side event from the tree view to the the page that is using my 开发者_高级运维user control.

For example I would like to be able to respond to the OnClientNodeClicked event of the tree view in Javascript in the parent page.


Yes, you can. If you check out their documentation, they have an example that demonstrates how to do this.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜