| <html xmlns="http://www.w3.org/1999/xhtml"> |
| <head runat="server"> |
| <title>Untitled Page</title> |
| <style type="text/css"> |
| .MyModalPanel |
| { |
| position:absolute; |
| top:0; |
| left:0; |
| width:100%; |
| height:100%; |
| margin:0; |
| padding:0; |
| background:#ffa url(img/loading.gif) center center no-repeat; |
| } |
| </style> |
| </head> |
| <body> |
| <form id="form1" runat="server"> |
| <div> |
| <telerik:RadScriptManager ID="MainRadScriptManager" runat="server"> |
| </telerik:RadScriptManager> |
| <table> |
| <tr>voici un peu de texte</tr> |
| <tr> |
| <telerik:RadCodeBlock runat="server"> |
| <td align="right" valign="bottom" style="border: none"> |
| <asp:Button ID="DeleteBtn" runat="server" Text="<%$ Resources:Resource, TEST_TEXT1%>" |
| CausesValidation="false" UseSubmitBehavior="false" /> |
| <asp:Button ID="ClearBtn" runat="server" Text="<%$ Resources:Resource, TEST_TEXT2%>" |
| CausesValidation="false" UseSubmitBehavior="false" /> |
| </td> |
| </telerik:RadCodeBlock> |
| </tr> |
| </table> |
| <telerik:RadAjaxManager ID="RadAjaxManagerProxy1" runat="server" UpdatePanelsRenderMode="Inline"> |
| <AjaxSettings> |
| <telerik:AjaxSetting AjaxControlID="DeleteBtn"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="DeleteBtn" LoadingPanelID="AjaxLoadingPanel"> |
| </telerik:AjaxUpdatedControl> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| <telerik:AjaxSetting AjaxControlID="ClearBtn"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="ClearBtn" LoadingPanelID="AjaxLoadingPanel"> |
| </telerik:AjaxUpdatedControl> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| </AjaxSettings> |
| </telerik:RadAjaxManager> |
| <telerik:RadAjaxLoadingPanel ID="AjaxLoadingPanel" runat="server" Transparency="20" style="z-index: 10000" |
| BackColor="#E0E0E0" IsSticky="true" Width="100%" Height="100%" CssClass="MyModalPanel"> |
| </telerik:RadAjaxLoadingPanel> |
| </div> |
| </form> |
| </body> |
| </html> |

Hi Telerik Team,
I am using RadFile Upload, i cant able to set the filename property of the radupload, because it is read only.
But my situation is that i have 4 rad upload controls to upload multiple files. here i have all my files in the same location which have to be uploaded to the same path. So what i need is when user browse for the first file in the first rad upload i want the other radupload filename to be filled automatically
For eg: in tab file upload when user browses the tab its supporting files which are at the same location have to be automatically filled at the filenames of the other radupload.
how can i achieve this?
Please help me to solve this issue!
Thanks
Mukunda
GIS Application Developer
| <asp:LinqDataSource ID="dsOrders" runat="server" | |
| ContextTypeName="ChargebackDataContext" EnableInsert="True" | |
| EnableUpdate="True" TableName="Orders" Where="Active = @Active or Active = true"> | |
| <WhereParameters> | |
| <asp:SessionParameter SessionField="ActiveOnly" Name="Active" DbType="Boolean" DefaultValue="true" /> | |
| </WhereParameters> | |
| </asp:LinqDataSource> | |
| <telerik:RadGrid ID="gridOrders" runat="server" AutoGenerateColumns="False" | |
| DataSourceID="dsOrders" GridLines="None" Skin="Office2007" | |
| AllowSorting="true" AllowPaging="true" PageSize="20" > | |
| <HeaderContextMenu> | |
| <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> | |
| </HeaderContextMenu> | |
| <MasterTableView allowautomaticinserts="true" allowautomaticupdates="true" | |
| commanditemdisplay="Top" datakeynames="OrderID" datasourceid="dsOrders" EditMode="PopUp" > | |
| <CommandItemSettings AddNewRecordText="Add Order" /> | |
| <CommandItemTemplate> | |
| <table width="100%"> | |
| <tr> | |
| <td align="left"> | |
| <asp:Button runat="server" ID="btnInsert" CssClass="rgAdd" Text="Add Order" CommandName="InitInsert"/> | |
| <asp:LinkButton runat="server" ID="lbInsert" Text="Add Order" CommandName="InitInsert" /> | |
| </td> | |
| <td align="right"> | |
| <asp:CheckBox runat="server" AutoPostBack="true" Checked='<%# ShowActiveOnly %>' Text="Active Only" TextAlign="Right" ID="cbActiveOnly" OnCheckedChanged="cbActiveOnly_CheckedChanged" /> | |
| </td> | |
| <td align="right" style="width: 70px;"> | |
| <asp:Button runat="server" ID="btnRefresh" CssClass="rgRefresh" Text="Refresh" CommandName="RebindGrid"/> | |
| <asp:LinkButton runat="server" ID="lbRefresh" Text="Refresh" CommandName="RebindGrid" /> | |
| </td> | |
| </tr> | |
| </table> | |
| </CommandItemTemplate> | |
| <RowIndicatorColumn> | |
| <HeaderStyle Width="20px"></HeaderStyle> | |
| </RowIndicatorColumn> | |
| <ExpandCollapseColumn> | |
| <HeaderStyle Width="20px"></HeaderStyle> | |
| </ExpandCollapseColumn> | |
| <Columns> | |
| <telerik:GridBoundColumn DataField="OrderID" DataType="System.Int32" | |
| HeaderText="OrderID" ReadOnly="True" SortExpression="OrderID" | |
| UniqueName="OrderID"> | |
| </telerik:GridBoundColumn> | |
| <telerik:GridBoundColumn DataField="OrderDate" DataType="System.DateTime" AllowFiltering="false" | |
| HeaderText="OrderDate" SortExpression="OrderDate" UniqueName="OrderDate"> | |
| </telerik:GridBoundColumn> | |
| <telerik:GridBoundColumn DataField="PrimaryCustomer.CustomerName" DataType="System.String" | |
| HeaderText="Primary Customer" SortExpression="PrimaryCustomer.CustomerName" | |
| UniqueName="PrimaryCustomerAlias"> | |
| </telerik:GridBoundColumn> | |
| <telerik:GridBoundColumn DataField="SecondaryCustomer.CustomerName" | |
| HeaderText="Secondary Customer" DataType="System.String" | |
| SortExpression="SecondaryCustomer.CustomerName" UniqueName="SecondaryCustomerAlias"> | |
| </telerik:GridBoundColumn> | |
| <telerik:GridBoundColumn DataField="CCIOCode" HeaderText="CC/IO Code" | |
| SortExpression="CCIOCode" UniqueName="CCIOCode"> | |
| </telerik:GridBoundColumn> | |
| <telerik:GridBoundColumn DataField="Service.ServiceName" HeaderText="Service" DataType="System.String" | |
| SortExpression="Service.ServiceName" UniqueName="ServiceName"> | |
| </telerik:GridBoundColumn> | |
| <telerik:GridBoundColumn DataField="Quantity" DataType="System.Decimal" | |
| HeaderText="Quantity" SortExpression="Quantity" UniqueName="Quantity"> | |
| </telerik:GridBoundColumn> | |
| <telerik:GridBoundColumn DataField="OrderInstanceIdentifier.InstanceName" DataType="System.String" | |
| HeaderText="Instance" SortExpression="OrderInstanceIdentifier.InstanceName" | |
| UniqueName="OrderInstanceIdentifierName"> | |
| </telerik:GridBoundColumn> | |
| <telerik:GridBoundColumn DataField="Notes" HeaderText="Notes" DataType="System.String" | |
| SortExpression="Notes" UniqueName="Notes"> | |
| </telerik:GridBoundColumn> | |
| <telerik:GridCheckBoxColumn DataField="Recurring" DataType="System.Boolean" | |
| HeaderText="Recurring" SortExpression="Recurring" UniqueName="Recurring"> | |
| </telerik:GridCheckBoxColumn> | |
| <telerik:GridCheckBoxColumn DataField="Active" DataType="System.Boolean" | |
| HeaderText="Active" SortExpression="Active" UniqueName="Active"> | |
| </telerik:GridCheckBoxColumn> | |
| <telerik:GridEditCommandColumn></telerik:GridEditCommandColumn> | |
| </Columns> | |
| <EditFormSettings EditFormType="WebUserControl" UserControlName="Components/OrderEditForm/OrderEditForm.ascx"><PopUpSettings Width="600px" /> | |
| </EditFormSettings> | |
| </MasterTableView> | |
| <FilterMenu> | |
| <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> | |
| </FilterMenu> | |
| </telerik:RadGrid> |
| <%@ Page Language="C#" AutoEventWireup="true" CodeFile="toolbarThinLastButton.aspx.cs" Inherits="toolbarThinLastButton" %> |
| <%@ Register TagPrefix="telerik" Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" %> |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml" > |
| <head runat="server"> |
| <title>Untitled Page</title> |
| <script type="text/javascript"> |
| var number = 0; |
| function Clicked() { |
| var taskbar = $find("RadToolBar1"); |
| //var dd = taskbar.findItemByText("xxx"); |
| var dd = taskbar.findItemByAttribute("key", "this"); |
| taskbar.trackChanges(); |
| var dropDownChildButton = new Telerik.Web.UI.RadToolBarButton(); |
| dropDownChildButton.set_text("a button " + number); |
| number++; |
| if (dd.get_buttons().get_count() > 1) { |
| // Remove last |
| dd.get_buttons().removeAt(1); |
| } |
| // Tooltip |
| dd.get_buttons().add(dropDownChildButton); |
| taskbar.commitChanges(); |
| } |
| </script> |
| </head> |
| <body> |
| <form id="form1" runat="server"> |
| <asp:ScriptManager ID="scriptManager1" runat="server" /> |
| <div> |
| <telerik:RadToolBar ID="RadToolBar1" runat="server" Skin="Office2007" OnClientButtonClicked="Clicked"> |
| <Items> |
| <telerik:RadToolBarButton Text="button 1" /> |
| <telerik:RadToolBarButton Text="button 2" /> |
| <telerik:RadToolBarButton Text="button 3" /> |
| <telerik:RadToolBarDropDown Text="xxx" key="this"> |
| <Buttons> |
| <telerik:RadToolBarButton Text="add or remove buttons" ToolTip="click me"> |
| </telerik:RadToolBarButton> |
| <telerik:RadToolBarButton Text="bla" ToolTip="click me"> |
| </telerik:RadToolBarButton> |
| <telerik:RadToolBarButton Text="bla" ToolTip="click me"> |
| </telerik:RadToolBarButton> |
| <telerik:RadToolBarButton Text="bla" ToolTip="click me"> |
| </telerik:RadToolBarButton> |
| <telerik:RadToolBarButton Text="bla" ToolTip="click me"> |
| </telerik:RadToolBarButton> |
| </Buttons> |
| </telerik:RadToolBarDropDown> |
| </Items> |
| </telerik:RadToolBar> |
| </div> |
| </form> |
| </body> |
| </html> |


Hi,
I have been trying to add nodes on the client side and its failed.
The treeview is working fine without RadAjaxPanel postback.
Following is my source code to add the nodes in TreeView on the client side.
PS:
- The following code is the sample page that I build to re-create the problem so you can copy and paste directly..
- The TreeView is working fine when you comment out the following line in "SelectNextTab" function
-----------------------
$find('<%= rapMultiPage.ClientID %>').ajaxRequest();
----------------------
Any sample work around will be best.
PS: I need the RadAjaxPanel to refresh the TreeView data when the user click "Next" button.
Thanks.
--------------------------
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="TelerikTest._Default" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title></title>
</head>
<body>
<telerik:RadCodeBlock ID="rcbReport" runat="server">
<script type="text/javascript">
function SelectNextTab(TabIndex, direction) {
var multiPage = $find('<%=rmpCustomReport.ClientID %>');
if (multiPage) {
multiPage.set_selectedIndex(TabIndex);
if (direction == 'Next') {
// Need to refresh the data based on the user's table selection
$find('<%= rapMultiPage.ClientID %>').ajaxRequest();
return false;
}
}
return false;
}
function MoveTo() {
var treeViewSource = $find("<%= rtvFields.ClientID %>");
if (treeViewSource) {
treeViewSource.trackChanges();
var node = new Telerik.Web.UI.RadTreeNode();
node.set_text("New Node");
treeViewSource.get_nodes().add(node);
treeViewSource.commitChanges();
}
return false;
}
</script>
</telerik:RadCodeBlock>
<form id="form1" runat="server">
<div>
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
</telerik:RadScriptManager>
<telerik:RadAjaxPanel ID="rapMultiPage" runat="server" Width="99%">
<asp:Label ID="lblMessage" runat="server" Font-Bold="True" ForeColor="Red"></asp:Label><br />
<telerik:RadMultiPage id="rmpCustomReport" Runat="server" SelectedIndex="0">
<telerik:RadPageView id="Step1" runat="server">
<table border="0" style="width: 98%">
<tr>
<td>
Step 1 - Select the module to report on</td>
</tr>
</table>
<br />
<table border="0" style="width: 95%">
<tr>
<td style="width: 700px; height: 450px" valign="top">
<asp:CheckBoxList ID="cblModule" runat="server">
</asp:CheckBoxList></td>
</tr>
</table>
<br />
<table style="width: 700px">
<tr>
<td>
</td>
<td align="right">
<asp:Button ID="btnNext1" runat="server" CausesValidation="False" OnClientClick="SelectNextTab(1, 'Next'); return false;"
Text="Next" /></td>
</tr>
</table>
</telerik:RadPageView>
<telerik:RadPageView id="Step3" Runat="server" Width="100%">
<br />
<table style="width: 700px">
<tr>
<td style="width: 345px;" valign="middle">
</td>
<td style="width: 345px" valign="top" >
<asp:Panel ID="pDestinationBasic" runat="server" Height="420px" ScrollBars="Auto" Width="340px" BorderColor="Khaki" BorderStyle="Dotted">
<asp:Button ID="btnAddNode" runat="server" OnClientClick="MoveTo(); return false;"
Text="Add Node" />
<telerik:RadTreeView ID="rtvFields" runat="server" EnableDragAndDrop="True" EnableDragAndDropBetweenNodes="True" Skin="Web20" CausesValidation="False">
<CollapseAnimation Duration="100" Type="OutQuint" />
<ExpandAnimation Duration="100" />
</telerik:RadTreeView>
</asp:Panel>
</td>
</tr>
</table>
<br />
<br />
</telerik:RadPageView>
</telerik:RadMultiPage>
</telerik:RadAjaxPanel>
</div>
</form>
</body>
</html>
------------------------------
Hi,
I have been trying to add nodes on the client side and its failed.
The treeview is working fine without RadAjaxPanel postback.
Following is my source code to add the nodes in TreeView on the client side.
PS:
- The following code is the sample page that I build to re-create the problem so you can copy and paste directly..
- The TreeView is working fine when you comment out the following line in "SelectNextTab" function
-----------------------
$find('<%= rapMultiPage.ClientID %>').ajaxRequest();
----------------------
Any sample work around will be best.
PS: I need the RadAjaxPanel to refresh the TreeView data when the user click "Next" button.
Thanks.
--------------------------
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="TelerikTest._Default" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title></title>
</head>
<body>
<telerik:RadCodeBlock ID="rcbReport" runat="server">
<script type="text/javascript">
function SelectNextTab(TabIndex, direction) {
var multiPage = $find('<%=rmpCustomReport.ClientID %>');
if (multiPage) {
multiPage.set_selectedIndex(TabIndex);
if (direction == 'Next') {
// Need to refresh the data based on the user's table selection
$find('<%= rapMultiPage.ClientID %>').ajaxRequest();
return false;
}
}
return false;
}
function MoveTo() {
var treeViewSource = $find("<%= rtvFields.ClientID %>");
if (treeViewSource) {
treeViewSource.trackChanges();
var node = new Telerik.Web.UI.RadTreeNode();
node.set_text("New Node");
treeViewSource.get_nodes().add(node);
treeViewSource.commitChanges();
}
return false;
}
</script>
</telerik:RadCodeBlock>
<form id="form1" runat="server">
<div>
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
</telerik:RadScriptManager>
<telerik:RadAjaxPanel ID="rapMultiPage" runat="server" Width="99%">
<asp:Label ID="lblMessage" runat="server" Font-Bold="True" ForeColor="Red"></asp:Label><br />
<telerik:RadMultiPage id="rmpCustomReport" Runat="server" SelectedIndex="0">
<telerik:RadPageView id="Step1" runat="server">
<table border="0" style="width: 98%">
<tr>
<td>
Step 1 - Select the module to report on</td>
</tr>
</table>
<br />
<table border="0" style="width: 95%">
<tr>
<td style="width: 700px; height: 450px" valign="top">
<asp:CheckBoxList ID="cblModule" runat="server">
</asp:CheckBoxList></td>
</tr>
</table>
<br />
<table style="width: 700px">
<tr>
<td>
</td>
<td align="right">
<asp:Button ID="btnNext1" runat="server" CausesValidation="False" OnClientClick="SelectNextTab(1, 'Next'); return false;"
Text="Next" /></td>
</tr>
</table>
</telerik:RadPageView>
<telerik:RadPageView id="Step3" Runat="server" Width="100%">
<br />
<table style="width: 700px">
<tr>
<td style="width: 345px;" valign="middle">
</td>
<td style="width: 345px" valign="top" >
<asp:Panel ID="pDestinationBasic" runat="server" Height="420px" ScrollBars="Auto" Width="340px" BorderColor="Khaki" BorderStyle="Dotted">
<asp:Button ID="btnAddNode" runat="server" OnClientClick="MoveTo(); return false;"
Text="Add Node" />
<telerik:RadTreeView ID="rtvFields" runat="server" EnableDragAndDrop="True" EnableDragAndDropBetweenNodes="True" Skin="Web20" CausesValidation="False">
<CollapseAnimation Duration="100" Type="OutQuint" />
<ExpandAnimation Duration="100" />
</telerik:RadTreeView>
</asp:Panel>
</td>
</tr>
</table>
<br />
<br />
</telerik:RadPageView>
</telerik:RadMultiPage>
</telerik:RadAjaxPanel>
</div>
</form>
</body>
</html>
------------------------------