or
<telerik:RadAjaxLoadingPanel ID="LoadingPanel_" Runat="server"> <div class="loading"> <asp:Image ID="Image1" runat="server" ImageUrl="~/Img_/loading4.gif" AlternateText="loading" /> </div> </telerik:RadAjaxLoadingPanel> <telerik:RadAjaxManager ID="RadAjaxManager2" DefaultLoadingPanelID="LoadingPanel_" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="Grid_"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="Grid_" LoadingPanelID="LoadingPanel_" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManager>Hi ,
We are using the Raddock control in the application for the dashboards and facing the following problem:
Scenario –
We have 2 controls placed in a Raddock object say A and B and some JavaScript code is written in B and a .js file is called. Javscript in control is rendered properly, but the file code is executed only at page load and not on Postback.
We are with a sample demo but not able to attach it. '.rar' or'.zip' format is not supported in attachment.
Telerik version used - 2010.3.1221.20
Looking forward to your response.
MyUploadControl.FileExists += new Telerik.Web.UI.Upload.UploadedFileEventHandler(myFunction);Protected void myFunction(Object sender, Telerik.Web.UI.Upload.UploadedFileEventArgs e){ someLabel.Text = "my function is called";
}
<telerik:RadGrid ID="grdUser" runat="server" AutoGenerateColumns="False" GridLines="None" AllowSorting="True" CellSpacing="0" Width="700px"> <ClientSettings> <Selecting AllowRowSelect="True" /> <ClientEvents OnRowMouseOver="RowMouseOver" /> </ClientSettings> <MasterTableView EditMode="PopUp" AllowAutomaticInserts="True" CommandItemDisplay="Top" DataKeyNames="UserID"> <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings> <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"></RowIndicatorColumn> <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column"></ExpandCollapseColumn> <Columns> <telerik:GridBoundColumn DataField="UserID" HeaderText="ID User" UniqueName="UserID" FilterControlAltText="Filter UserID column" ForceExtractValue="Always"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="UserName" FilterControlAltText="Filter UserName column" HeaderText="Nama User" UniqueName="UserName" ForceExtractValue="Always"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Password" HeaderText="Password" UniqueName="Password" FilterControlAltText="Filter Password column" ForceExtractValue="Always" Visible="False"> </telerik:GridBoundColumn> <telerik:GridDropDownColumn DataField="AuthorityID" FilterControlAltText="Filter AuthorityID column" HeaderText="Otoritas" UniqueName="AuthorityID" ForceExtractValue="Always"> </telerik:GridDropDownColumn> <telerik:GridEditCommandColumn ButtonType="ImageButton" FilterControlAltText="Filter EditCommandColumn column"> <ItemStyle Width="12px" /> </telerik:GridEditCommandColumn> <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" ConfirmDialogType="RadWindow" ConfirmText="Hapus Data?" FilterControlAltText="Filter Delete column" UniqueName="Delete"> <ItemStyle Width="12px" /> </telerik:GridButtonColumn> </Columns> <EditFormSettings> <EditColumn UniqueName="EditCommandColumn1"> </EditColumn> <FormTemplate> <br /> </FormTemplate> </EditFormSettings> </MasterTableView> <FilterMenu EnableImageSprites="False"></FilterMenu> <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default"></HeaderContextMenu></telerik:RadGrid>Protected Sub grdUser_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles grdUser.ItemDataBound If TypeOf e.Item Is GridDataItem AndAlso Not e.Item.IsInEditMode Then Dim item As GridDataItem = DirectCast(e.Item, GridDataItem) Dim litrlContrl As Literal = DirectCast(item("AuthorityID").Controls(0), Literal) litrlContrl.Text = "test" End IfEnd Sub