or
| <telerik:radscriptblock runat="server" ID="radScriptBlock"> |
| <script type="text/javascript"> |
| function openCustomerLookupWindow() |
| { |
| var txtNo = $find("<%= txtExistingCustomerSearchCustomerNo.ClientID %>"); |
| var txtCoNam = $find("<%= txtExistingCustomerSearchCompanyName.ClientID %>"); |
| var txtCPN = $find("<%= txtExistingCustomerSearchContactPerson.ClientID %>"); |
| var txtCity = $find("<%= txtExistingCustomerSearchCity.ClientID %>"); |
| var cboState = $find("<%= cboExistingCustomerSearchState.ClientID %>"); |
| var oWnd = window.radopen('../../Lookups/NavCustomerLookup.aspx?navco=<%=session("SP_SearchCustomerNavCompany")%>&no=' + txtNo.get_value() + '&conam=' + txtCoNam.get_value() + '&cpn=' + txtCPN.get_value() + '&city=' + txtCity.get_value() + '&state=' + cboState.get_value() + '',"winCustomerLookup"); |
| //oWnd.argument = combo.get_value(); |
| oWnd.Center(); |
| //oWnd.SetSize(800,500); |
| } |
| function clientShow(sender, eventArgs) |
| { |
| //var txtDate = $find("<%= txtExistingCustomerSearchCustomerNo.ClientID %>"); |
| //sender.argument = txtDate.get_value; |
| //sender.argument = document.getElementById('<%=txtExistingCustomerSearchCustomerNo.ClientID%>').innerText; |
| } |
| function clientClose(oWnd,args) |
| { |
| var txtNo = $find("<%= txtExistingCustomerSearchCustomerNo.ClientID %>"); |
| var txtCoNam = $find("<%= txtExistingCustomerSearchCompanyName.ClientID %>"); |
| var txtCPN = $find("<%= txtExistingCustomerSearchContactPerson.ClientID %>"); |
| var txtCity = $find("<%= txtExistingCustomerSearchCity.ClientID %>"); |
| var cboState = $find("<%= cboExistingCustomerSearchState.ClientID %>"); |
| //get the transferred arguments |
| var arg = args.get_argument(); |
| if(arg) |
| { |
| var CustomerNo = arg.CustomerNo; |
| var CompanyName = arg.CompanyName; |
| var ContactPersonName = arg.ContactPersonName; |
| var CustomerCity = arg.CustomerCity; |
| var CustomerState = arg.CustomerState; |
| txtNo.set_value(CustomerNo); |
| txtCoNam.set_value(CompanyName); |
| txtCPN.set_value(ContactPersonName); |
| txtCity.set_value(CustomerCity); |
| cboState.set_value(CustomerState); |
| document.getElementById('pnlCustomerInfoCustomerData').style.display = 'none'; |
| } |
| document.forms[0].submit(); |
| } |
| </script> |
| </telerik:radscriptblock> |
| <telerik:radajaxpanel runat="server" LoadingPanelID="LoadingPanel" ID="AjaxPanel" Wrap="False" EnableAJAX="False"> |
| <asp:Panel ID="pnlCustomerInfoCustomerData" runat="server"> |
| </asp:Panel> |
| </telerik:RadAjaxPanel> |
| <telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" AllowSorting="True" |
| AutoGenerateColumns="False" GridLines="None" AutoGenerateDeleteColumn="False" |
| AutoGenerateEditColumn="False" Width="100%" Skin="Office2007"> |
| <AlternatingItemStyle BackColor="#EAF2FF" /> |
| <MasterTableView CommandItemDisplay="Top" DataKeyNames="BranchID" OverrideDataSourceControlSorting="true"> |
| <RowIndicatorColumn> |
| <HeaderStyle Width="20px"></HeaderStyle> |
| </RowIndicatorColumn> |
| <ExpandCollapseColumn> |
| <HeaderStyle Width="20px"></HeaderStyle> |
| </ExpandCollapseColumn> |
| <CommandItemSettings AddNewRecordText="Add new Branch" /> |
| <Columns> |
| <telerik:GridTemplateColumn DataField="NotifyFlag" HeaderText="Notify?" SortExpression="NotifyFlag" |
| UniqueName="NotifyFlag" Visible="False"> |
| <EditItemTemplate> |
| <asp:CheckBox runat="server" ID="cbNotify" Checked='<%#convertBool(DataBinder.Eval(Container.DataItem, "Notifyflag"))%>' /> |
| </EditItemTemplate> |
| <ItemStyle HorizontalAlign="Left" /> |
| </telerik:GridTemplateColumn> |
| <telerik:GridTemplateColumn DataField="Email" HeaderText="Email" SortExpression="Email" |
| UniqueName="Email" Visible="false"> |
| <ItemTemplate> |
| <%#DataBinder.Eval(Container.DataItem, "Email")%> |
| </ItemTemplate> |
| <EditItemTemplate> |
| <telerik:RadTextBox runat="server" ID="txtEmail" Width="280px" Text='<%#DataBinder.Eval(Container.DataItem, "Email")%>' /> |
| <asp:RequiredFieldValidator runat="server" ID="rfvEmail" ControlToValidate="txtEmail" |
| Display="Dynamic" ErrorMessage="Email address required" Enabled="false"></asp:RequiredFieldValidator> |
| <asp:RegularExpressionValidator runat="server" ID="revEmail" Display="Dynamic" ControlToValidate="txtEmail" |
| ErrorMessage="Valid email required" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" /> |
| </EditItemTemplate> |
| <ItemStyle HorizontalAlign="Left" /> |
| </telerik:GridTemplateColumn> |
| <telerik:GridButtonColumn ButtonType="LinkButton" CommandName="Edit" Text="Edit" |
| UniqueName="EditColumn"> |
| <ItemStyle HorizontalAlign="Center" /> |
| </telerik:GridButtonColumn> |
| <telerik:GridButtonColumn ButtonType="LinkButton" CommandName="Delete" Text="Delete" |
| ConfirmDialogType="RadWindow" ConfirmText="Are you sure you want to delete this Branch?" /> |
| </Columns> |
| <EditFormSettings ColumnNumber="1" CaptionFormatString="" FormTableItemStyle-HorizontalAlign="Left" |
| FormTableAlternatingItemStyle-HorizontalAlign="Left"> |
| <EditColumn ButtonType="PushButton" CancelText=" Cancel" UpdateText=" Save" |
| InsertText=" Save" UniqueName="EditCommandColumn1"> |
| </EditColumn> |
| <FormMainTableStyle CellPadding="3" CellSpacing="0" BackColor="White"></FormMainTableStyle> |
| <FormCaptionStyle></FormCaptionStyle> |
| <FormTableItemStyle Wrap="False"></FormTableItemStyle> |
| <FormTableAlternatingItemStyle Wrap="False"></FormTableAlternatingItemStyle> |
| <FormTableButtonRowStyle HorizontalAlign="Right"></FormTableButtonRowStyle> |
| </EditFormSettings> |
| </MasterTableView> |
| </telerik:RadGrid> |
| <script type="text/javascript"> |
| function emailChanged(obj) { |
| if (obj.checked != true) { |
| var hiddenBox = document.getElementById("hdnRFV"); |
| var theRFV = document.getElementById(hiddenBox.value); |
| alert("Here1: " + hiddenBox.value); |
| ValidatorEnable(theRFV, false); |
| } else { |
| var hiddenBox = document.getElementById("hdnRFV"); |
| var theRFV = document.getElementById(hiddenBox.value); |
| alert("Here1: " + hiddenBox.value); |
| ValidatorEnable(theRFV, true); |
| } |
| } |
| </script> |
| Protected Sub RadGrid1_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemDataBound |
| ' sets the status of the validator based on the value of the NotifyFlag column |
| If (TypeOf e.Item Is GridEditableItem) AndAlso (e.Item.IsInEditMode) Then |
| Dim edititem As GridEditableItem = DirectCast(e.Item, GridEditableItem) |
| Dim myCheckBox As CheckBox = DirectCast(edititem("NotifyFlag").Controls(1), CheckBox) |
| myCheckBox.Attributes.Add("onclick", "emailChanged(this);") |
| Dim cntrl As HiddenField = DirectCast(FindControl("hdnRFV"), HiddenField) |
| cntrl.Value = DirectCast(edititem("Email").Controls(3), RequiredFieldValidator).ClientID |
| End If |
| End Subhelp |
| protected void gv_NeedDataSource(object source, GridNeedDataSourceEventArgs e) |
| { |
| DataTable dt = new DataTable(); |
| dt.Columns.Add("Date"); |
| dt.Columns.Add("Double"); |
| dt.Rows.Add(new object[] {"14/08/2009","1.1" }); |
| dt.Rows.Add(new object[] { "20/08/2009", "10.1" }); |
| dt.Rows.Add(new object[] { "10/09/2009", "2.1" }); |
| dt.Rows.Add(new object[] { "25/09/2008", "2.1" }); |
| dt.Rows.Add(new object[] { "25/11/2009", "2.1" }); |
| dt.Rows.Add(new object[] { "1/1/2009", "2.1" }); |
| rg.DataSource = dt; |
| } |
| <telerik:RadGrid ID="rg" runat="server" AutoGenerateColumns="false" OnNeedDataSource="gv_NeedDataSource" |
| AllowSorting="true"> |
| <MasterTableView> |
| <Columns> |
| <telerik:GridBoundColumn DataType="System.DateTime" HeaderText="Date" DataField="Date" |
| UniqueName="Date" DataFormatString="{0:MM/yyyy}"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataType="System.Double" HeaderText="Double" DataField="Double" |
| ItemStyle-HorizontalAlign="Right"> |
| </telerik:GridBoundColumn> |
| </Columns> |
| </MasterTableView> |
| </telerik:RadGrid> |
<telerik:RadListBox ID="lstOptions" runat="server" AllowDelete="True"
AllowReorder="True"
Skin="WebBlue" DataTextField="OptionText" DataValueField="FormattedValue"
Height="200px" Width="385px" AutoPostBack="False"
>
<ButtonSettings ReorderButtons="Common"></ButtonSettings>
<EmptyMessageTemplate>
<span style="color:Red;" > No options added! </span>
</EmptyMessageTemplate>
</telerik:RadListBox>
| <ItemTemplate> |
| <div style="width:900px"> |
| <div style="float:left"><asp:Label ID="lblDateRange1" runat="server" Text="Label"></asp:Label>5/15/2010-5/20/2010 to 5/21/2010-5/26/2010 </div> |
| <div style="float:right"><a href="UrlBlockedError.aspx" target="_blank">Details</a> |
| </div> |
| <div style="float:left; clear:both; width:10%"><%# "System: " +Eval("Syscode") %></div> |
| <div style="float:left; width:30%"><%# "Line of Business: " + Eval("LineofBusiness")%></div> |
| <div style="float:left; width:20%"><%# Eval("CodeType") + ": " %> <%# Eval("Code")%> </div> |
| <div style="float:left; width:20%"><%# "AA Rate Drop: " + Eval("System_Adj_Rate_Drop")%></div> |
| <div style="float:left; width:20%"><%# "ADJ Claims Chang: " + Eval("Claims_Manually_Adj_Drop") %></div> |
| <div class="tablediv"> |
| <div class="rowdiv"> |
| <div class="celldiv"> </div> |
| <div class="celldiv">Received Claims</div> |
| <div class="celldiv">Completed Claims</div> |
| <div class="celldiv">Auto Adjucicated Claims</div> |
| <div class="celldiv">AARate</div> |
| </div> |
| <div class="rowdiv"> |
| <div class="celldiv">Previous:</div> |
| <div class="celldiv"><%# Eval("Prev_Claims_Received")%></div> |
| <div class="celldiv"><%# Eval("Prev_Claims_Completed") %></div> |
| <div class="celldiv"><%# Eval("Prev_Total_Auto_Adj_Claims")%></div> |
| <div class="celldiv"><%# Eval("Previous_Auto_Adj_Rate") %></div> |
| </div> |
| <div class="rowdiv"> |
| <div class="celldiv">Current:</div> |
| <div class="celldiv"><%# Eval("Claims_Received") %></div> |
| <div class="celldiv"><%# Eval("Claims_Completed") %></div> |
| <div class="celldiv"><%# Eval("Total_Auto_Adj_Claims") %></div> |
| <div class="celldiv"><%# Eval("Current_Auto_Adj_Rate") %></div> |
| </div> |
| </div> |
| </div> |
| </ItemTemplate> |
| <telerik:RadGrid ID="grdTest" runat="server"> |
| <mastertableview> |
| <Columns> |
| ...columns generated here |
| </Columns> |
| <NestedViewTemplate> |
| ...Detailed data form here |
| </NestedViewTemplate> |
| <mastertableview> |
| </telerik:RadGrid> |
| protected void grdTest_ItemDataBound(object sender, GridItemEventArgs e) |
| { |
| if (e.Item.ItemType == GridItemType.Item || e.Item.ItemType == GridItemType.AlternatingItem) |
| { |
| if (!string.IsNullOrEmpty(Request.QueryString["id"])) |
| { |
| string DBIndentity = DataBinder.Eval(e.Item.DataItem, "ID", string.Empty); |
| string QueryStringIdentity = Request.QueryString["id"]; |
| if (DBIndentity == QueryStringIdentity) |
| e.Item.Expanded = true; |
| } |
| } |
| } |
| Sys.Application.add_init(function() { |
| $create(Telerik.Web.UI.RadContextMenu, {"_childListElementCssClass":null,"_skin":"Vista","clientStateFieldID":"RadFileExplorer1_tree_RadTreeViewContextMenu1_ClientState","collapseAnimation":"{\"duration\":450}","expandAnimation":"{\"duration\":450}","itemData":[{"value":"Delete","selectedCssClass":"rfeNoClass"},{"postBack":0,"value":"Rename","selectedCssClass":"rfeNoClass"},{"postBack":0,"value":"NewFolder","selectedCssClass":"rfeNoClass"},{"postBack":0,"value":"Upload","selectedCssClass":"rfeNoClass"}]}, null, null, $get("RadFileExplorer1_tree_RadTreeViewContextMenu1")); |
| }); |
| <----------Line 1807----- |
| WebForm_InitCallback();Sys.Application.add_init(function() { |
| $create(Telerik.Web.UI.RadTreeView, {"_postBackOnEdit":true,"_postBackOnExpand":true,"_postBackReference":"__doPostBack(\u0027RadFileExplorer1$tree\u0027,\u0027arguments\u0027)","_selectedValue":"/rfolioassets/fendi/Documents","_skin":"Vista","_uniqueId":"RadFileExplorer1$tree","clientStateFieldID":"RadFileExplorer1_tree_ClientState","collapseAnimation":"{\"duration\":200}","contextMenuIDs":["RadTreeViewContextMenu1"],"enableDragAndDrop":true,"expandAnimation":"{\"duration\":200}","nodeData":[{"value":"/rfolioassets/fendi/Documents","text":"Documents","selected":1,"attributes":{"Name":"Documents","Path":"/rfolioassets/fendi/Documents","Permissions":"7","Location":"/rfolioassets/fendi/"}}],"selectedIndexes":["0"]}, null, null, $get("RadFileExplorer1_tree")); |