or
| <root> |
| <tools> |
| <tool type="custom" name="NewCustomButton" Text="Add Premium Image"/> |
| </tools> |
| </root> |
| <style> |
| .retoolbar.Web20 .NewCustomButton |
| { |
| background-image: url(../../images/icons/flag-g.gif); |
| } |
| </style> |
| <telerik:radeditor ID="RadEditor1" runat="server" |
| ToolsFile="~/XMLConfigFiles/ToolsFileDemo.xml" EditModes="All" Height="400px" |
| Skin="Web20" ToolbarMode="ShowOnFocus" Width="670px"> |
| </telerik:radeditor> |
| <telerik:GridButtonColumn HeaderText="Download" Text="Get Report" |
| UniqueName="dldReportColumn" CommandName="PullReport"> |
| </telerik:GridButtonColumn> |
| Protected Sub BatchGrid_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles BatchGrid.ItemCommand |
| If e.CommandName = "PullReport" Then |
| Dim chosen As GridDataItem = DirectCast(e.Item, GridDataItem) |
| Dim folder As String = chosen("folder").Text |
| Dim file As String = chosen("file").Text |
| 'The first task is to ensure that the file exists. |
| Dim fullPath As String = Path.Combine(folder, file) |
| Dim fi As FileInfo = New FileInfo(fullPath) |
| If fi.Exists() Then |
| Dim id As String = chosen("BatchID").Text |
| Response.ClearContent() |
| Response.AddHeader("Content-disposition", "attachment; filename=" & file) |
| Response.AddHeader("Content-Length", fi.Length) |
| Response.ContentType = "application/octet-stream" |
| Response.TransmitFile(fullPath) |
| Response.Flush() |
| Response.End() |
| End If |
| End If |
| End Sub |

| protected void RadSkinManager1_PreRender(object sender, EventArgs e) |
| { |
| DataTable table = new DataTable(); |
| DataRow row; |
| table.Columns.Add("ImgUrl"); |
| table.Columns.Add("val"); |
| table.Columns.Add("txt"); |
| row = table.NewRow(); |
| row.ItemArray = new string[] { "images/default.gif", "Default", "Default" }; |
| table.Rows.Add(row); |
| row = table.NewRow(); |
| row.ItemArray = new string[] { "images/black.gif", "Black", "Black" }; |
| table.Rows.Add(row); |
| row = table.NewRow(); |
| row.ItemArray = new string[] { "images/forest.gif", "Forest", "Forest" }; |
| table.Rows.Add(row); |
| RadComboBox skinChooser = RadSkinManager1.FindControl("SkinChooser") as RadComboBox; |
| skinChooser.DataSource = table; |
| skinChooser.ItemTemplate = new IMGTemplate("ImgUrl"); |
| skinChooser.DataTextField = "txt"; |
| skinChooser.DataValueField = "val"; |
| skinChooser.Width = 240; |
| skinChooser.Height = 202; |
| skinChooser.DataBind(); |
| skinChooser.SelectedValue = RadSkinManager1.Skin; |
| } |
| class IMGTemplate : ITemplate |
| { |
| string pathColumn; |
| public IMGTemplate(string imgPathColumn) |
| { |
| pathColumn = imgPathColumn; |
| } |
| public void InstantiateIn(Control c) |
| { |
| Image imgt = new Image(); |
| imgt.DataBinding += new EventHandler(imgDataBinding); |
| c.Controls.Add(imgt); |
| } |
| void imgDataBinding(object sender, EventArgs e) |
| { |
| Image img_ = (Image)sender; |
| RadComboBoxItem item = (RadComboBoxItem)img_.BindingContainer; |
| DataRowView drv = ((DataRowView)item.DataItem); |
| img_.ImageUrl = drv[pathColumn].ToString(); |
| } |
| } |
function
Button1_onclick() {
radalert(
"as",300,100,"rock");
<
telerik:RadWindowManager ID="RadWindowManager1" runat="server" Animation="Resize"> </telerik:RadWindowManager>
THE PROBLEM!!!
when i click the button which brings the alert the animation starts at the left-top position on the page and after the animation is done the alert comes jumps in the center....
plz help
| //populate parent categories | |
| rcbParentCategory.DataSource = ourDB.Category_GetAvailableParents(CurrentCategoryId); | |
| rcbParentCategory.DataValueField = "CategoryId"; | |
| rcbParentCategory.DataTextField = "CategoryName"; | |
| rcbParentCategory.ClearSelection(); | |
| rcbParentCategory.DataBind(); | |
| rcbParentCategory.Items.Insert(0, new RadComboBoxItem("None Selected", "-1")); | |
| rcbParentCategory.SelectedValue = | |
| ((rcbParentCategory.Items.FindItemByValue(category.ParentId.ToString()) != null) ? category.ParentId.ToString() : "-1"); | |
| rcbParentCategory.DataSource = null; |
| <telerik:RadGrid ID="rgLiens" runat="server" EnableEmbeddedSkins="false" Skin="RealMax" |
| OnNeedDataSource="rgLiens_NeedDataSource" OnItemCreated="rgLiens_ItemCreated" |
| ondeletecommand="rgLiens_DeleteCommand" oninsertcommand="rgLiens_InsertCommand" |
| onupdatecommand="rgLiens_UpdateCommand" OnPreRender="rgLiens_PreRender" OnItemDataBound="rgLiens_ItemDataBound" |
| OnRowDrop="rgLiens_RowDrop" GridLines="None" ShowFooter="True" > |
| <ClientSettings EnableRowHoverStyle="true" AllowRowsDragDrop="true"> |
| <ClientEvents OnRowMouseOut="rowMouseOut" OnRowMouseOver="rowMouseOver" OnPopUpShowing="PopUpCentered" /> |
| <Selecting AllowRowSelect="true" /> |
| <Resizing AllowColumnResize="True" /> |
| </ClientSettings> |
| <FilterMenu EnableTheming="True"> |
| <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> |
| </FilterMenu> |
| <MasterTableView AutoGenerateColumns="False" CommandItemDisplay="Top" EditMode="EditForms" TableLayout="auto" |
| DataKeyNames="LienId,LienIndex,PropertyId"> |
| <NoRecordsTemplate><div style="margin:6px">No liens recorded for this property</div></NoRecordsTemplate> |
| <PagerStyle Mode="NextPrevNumericAndAdvanced" AlwaysVisible="false" /> |
| <ItemStyle CssClass="RowMouseOut" /> |
| <AlternatingItemStyle CssClass="RowMouseOut" /> |
| <RowIndicatorColumn HeaderStyle-Width="20px" /> |
| <ExpandCollapseColumn HeaderStyle-Width="20px" /> |
| <Columns> |
| <telerik:GridEditCommandColumn EditImageUrl="~/Images/Buttons/edit.gif" ButtonType="ImageButton" Resizable="false" > |
| <HeaderStyle Width="24px" /> |
| <ItemStyle CssClass="CommandColumn" /> |
| </telerik:GridEditCommandColumn> |
| <Telerik:GridBoundColumn DataField="LienIndex" DataType="System.Int16" ReadOnly="true"> |
| <HeaderStyle Width="20px" HorizontalAlign="Center" /> |
| </Telerik:GridBoundColumn> |
| <telerik:GridNumericColumn DataField="LoanAmount" DataType="System.Decimal" NumericType="Currency" |
| HeaderText="Loan Amount" SortExpression="LoanAmount" UniqueName="LoanAmount" Aggregate="Sum" FooterAggregateFormatString="{0:C}"> |
| <HeaderStyle Width="90px" HorizontalAlign="Center" /> |
| <ItemStyle HorizontalAlign="Right" /> |
| <FooterStyle HorizontalAlign="Right" /> |
| </telerik:GridNumericColumn> |
| <telerik:GridNumericColumn DataField="InterestRate" DataType="System.Decimal" NumericType="Percent" |
| HeaderText="Interest Rate" SortExpression="InterestRate" DataFormatString="{0}%" |
| UniqueName="InterestRate"> |
| <HeaderStyle Width="90px" HorizontalAlign="Center" /> |
| <ItemStyle HorizontalAlign="Right" /> |
| <FooterStyle HorizontalAlign="Right" /> |
| </telerik:GridNumericColumn> |
| <telerik:GridNumericColumn DataField="MonthlyPayment" DataType="System.Decimal" NumericType="Currency" |
| HeaderText="Payment" SortExpression="MonthlyPayment" UniqueName="MonthlyPayment" Aggregate="Sum" FooterAggregateFormatString="{0:C}"> |
| <HeaderStyle Width="90px" HorizontalAlign="Center" /> |
| <ItemStyle HorizontalAlign="Right" /> |
| <FooterStyle HorizontalAlign="Right" /> |
| </telerik:GridNumericColumn> |
| <telerik:GridNumericColumn Aggregate="Sum" FooterAggregateFormatString="{0:$#,##0.00;($#,##0.00);#}" DataField="Arrears" DataType="System.Decimal" NumericType="Currency" |
| HeaderText="Arrears" SortExpression="Arrears" UniqueName="Arrears" ItemStyle-ForeColor="Red"> |
| <HeaderStyle Width="90px" HorizontalAlign="Center" /> |
| <ItemStyle HorizontalAlign="Right" ForeColor="Red" /> |
| <FooterStyle HorizontalAlign="Right" ForeColor="Red" /> |
| </telerik:GridNumericColumn> |
| <telerik:GridBoundColumn DataField="rtp_Lender.Name" DataType="System.String" |
| HeaderText="Lender" SortExpression="rtp_Lenders.Name" UniqueName="LenderName"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="LoanNumber" DataType="System.String" |
| HeaderText="Loan Number" SortExpression="LoanNumber" UniqueName="LoanNumber"> |
| </telerik:GridBoundColumn> |
| <telerik:GridDateTimeColumn DataField="LoanDate" DataType="System.DateTime" |
| HeaderText="Loan Date" SortExpression="LoanDate" UniqueName="LoanDate" |
| DataFormatString="{0:MM/dd/yyyy}"> |
| </telerik:GridDateTimeColumn> |
| <telerik:GridBoundColumn DataField="rtp_LoanType.Name" DataType="System.String" HeaderText="Loan Type" |
| SortExpression="LoanType" UniqueName="LoanType"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="Term" DataType="System.Int32" |
| HeaderText="Term" SortExpression="Term" UniqueName="Term"> |
| </telerik:GridBoundColumn> |
| <telerik:GridNumericColumn DataField="LoanBalance" DataType="System.Decimal" NumericType="Currency" |
| HeaderText="Loan Balance" SortExpression="LoanBalance" UniqueName="LoanBalance" Aggregate="Sum" FooterAggregateFormatString="{0:C}"> |
| <HeaderStyle Width="90px" HorizontalAlign="Center" /> |
| <ItemStyle HorizontalAlign="Right" /> |
| <FooterStyle HorizontalAlign="Right" /> |
| </telerik:GridNumericColumn> |
| <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" Resizable="false" |
| ConfirmDialogType="RadWindow" ConfirmText="Are you sure?" ConfirmTitle="Delete Lien?" |
| ImageUrl="~/Images/Buttons/delete.gif" Text="Delete" UniqueName="DeleteColumn"> |
| <HeaderStyle Width="24px" /> |
| <ItemStyle CssClass="CommandColumn" /> |
| </telerik:GridButtonColumn> |
| </Columns> |