| <telerik:RadComboBox ID="ddl_Regions" runat="server" Skin="WebBlue" Filter="Contains" |
| Width="200px" AutoPostBack="True" CssClass="Lists"> |
| </telerik:RadComboBox> |
| <telerik:RadComboBox ID="ddl_Places" runat="server" Skin="WebBlue" Filter="Contains" |
| Width="200px" CssClass="Lists"> |
| </telerik:RadComboBox> |
| Dim Places As New BusinessLayer.Placess |
| Places.GetByRegionID(ddl_Regions.SelectedValue) |
| ddl_Places.DataSource = Places |
| ddl_Places.DataTextField = "Name" |
| ddl_Places.DataValueField = "ID" |
| ddl_Places.DataBind() |
| <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest"> |
| <AjaxSettings> |
| <telerik:AjaxSetting AjaxControlID="RadAjaxManager1"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="ddl_Regions" /> |
| <telerik:AjaxUpdatedControl ControlID="ddl_Places" /> |
| <telerik:AjaxUpdatedControl ControlID="lbl_result" /> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| </AjaxSettings> |
| </telerik:RadAjaxManager> |
ctl00_plhBody_ctrRegistration_cbBoss_ClientState:{"logEntries":[],"value":"20","text":"Андреев","enabled":true} {"logEntries":[],"value":"20","text":"Андреев","enabled":true}<br><asp:Panel ID="pnlCancelRequestConfirmation" runat="server" style="display: none;" CssClass="CancelRequestModalPopUp"> <div style="background-color: White; border: 2 solid black; padding: 10px;"> Enter the reason for removing this SRF:<br /> <asp:TextBox ID="txtCancelReason" runat="server" Width="200px"></asp:TextBox> <br /> <asp:RequiredFieldValidator ID="rfvCancelReason" runat="server" ValidationGroup="CancelRequestConfirmationGroup" ControlToValidate="txtCancelReason" ErrorMessage="Reason is required" CssClass="SrfRedText" Display="Dynamic" /> <br /> <br /> <div style="text-align: right;"> <telerik:RadButton ID="btnCancelSrfCancelRequest" runat="server" Text="Remove SRF" OnClick="btnCancelSrfCancelRequest_Click" CausesValidation="true" ValidationGroup="CancelRequestConfirmationGroup"></telerik:RadButton> <telerik:RadButton ID="btnCloseSrfCancelRequest" runat="server" Text="Cancel" CausesValidation="false"></telerik:RadButton> </div> <br /> <div style="text-align: right;"> <asp:Button ID="btnTest" runat="server" Text="ASP.Net Button" /> </div> </div></asp:Panel>Hi,
I have a requirement where I need to have a master page and a RAD menu control on the master page. Now I need a new RAD window on click of any menu item from server side irrespective of the fact whether I am clicking same menu item or any other menu item.
I am creating a new RAD window on click event of every menu item click event from server side code and able to successfully create a new RAD window when I am clicking first time on any menu item. But whenever I clicked on any other menu item or same menu item again, my previously opened RAD window get lost and new rad window appears. I think it is a state issue, seems like page is not able to maintain RAD windows on the post back.
I have also tried creating RAD windows from client side java script as well. I am able to create multiple rad windows using java script on click of any of my menu item but all RAD windows created with java script are getting lost on click of browser’s refresh button and F5 button.
Please let me know the best way to create multiple RAD windows from server side and client side as well along with state management. Please help me out to maintain rad windows even after post back of page where these windows exist.
<telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel1" /><telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel1" LoadingPanelID="RadAjaxLoadingPanel1"><telerik:RadListBox ID="pasLead_rlb" runat="server" Height="150px" Width="250px" AllowTransfer="true" TransferToID="pasLead_rlbDestination" DataSourceID="paslead_DS" DataTextField="paslead" DataValueField="contactID"></telerik:RadListBox><telerik:RadListBox ID="pasLead_rlbDestination" runat="server" Height="150px" Width="250px" DataKeyField="contactID" AutoPostBackOnTransfer="true" AutoPostBack="true" DataSourceID="pasleadSelected_DS" DataTextField="paslead" DataValueField="contactID" AllowAutomaticUpdates="true" AutoPostBackOnDelete="true" AllowDelete="true"></telerik:RadListBox></telerik:RadAjaxPanel><asp:SqlDataSource ID="pasleadSelected_DS" runat="server" ConnectionString="<%$ ConnectionStrings:myconnection %>" SelectCommand="SELECT contacts.id AS contactID, contacts.name + ' (' + groups.short_name + ')' AS paslead FROM contacts, groups, area_contact_map acm WHERE contacts.groupID = groups.id and contacts.id = acm.contactID and areaID = @id and (acm.blnRemoved IS NULL OR acm.blnRemoved = 0) ORDER BY paslead" DeleteCommand="UPDATE area_contact_map SET update_date = getDate(), update_user = @u, blnRemoved = 1 WHERE areaID = @aid AND contactID = @contactID" InsertCommand="INSERT INTO area_contact_map (areaID, contactID, create_date, create_user, blnRemoved) VALUES (@aid, @contactID, getDate(), @u, 0)"> <SelectParameters> <asp:Parameter Name="id" Type="String" /> </SelectParameters> <DeleteParameters> <asp:Parameter Name="aid" Type="String" /> <asp:Parameter Name="contactID" Type="String" /> <asp:Parameter Name="u" Type="String" /> </DeleteParameters> <InsertParameters> <asp:Parameter Name="aid" Type="String" /> <asp:Parameter Name="contactID" Type="String" /> <asp:Parameter Name="u" Type="String" /> </InsertParameters></asp:SqlDataSource>aid = Request.QueryString("i")pasuser = Membership.GetUser.ProviderUserKey.ToString()areaDS.SelectParameters("id").DefaultValue = aidpasleadSelected_DS.SelectParameters("id").DefaultValue = aidpasleadSelected_DS.DeleteParameters("aid").DefaultValue = aidpasleadSelected_DS.DeleteParameters("u").DefaultValue = pasuserpasleadSelected_DS.InsertParameters("aid").DefaultValue = aidpasleadSelected_DS.InsertParameters("u").DefaultValue = pasuser<%@ Page Title="" Language="C#" MasterPageFile="~/Masters/EPSDev3.master" AutoEventWireup="true" CodeFile="PetitionInfo.aspx.cs" Inherits="PetitionInfo" %><asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"><style type="text/css"> .VerticalAlign1 { padding-top: 6px; } .rgHeaderDiv { width: 100%; }</style> </asp:Content><asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <telerik:RadScriptManager ID="RadScriptManager1" runat="server" /> <!-- content start --> <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="SignersGrid"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="SignersGrid" LoadingPanelID="RadAjaxLoadingPanel1" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManager> <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" /> <div style="width: 800px;"> <div style="float: left; background-color: White; padding: 0px;"> <table cellpadding="1" cellspacing="0" border="0" > <tr> <td colspan="5" align="center" > <h2> <asp:Label ID="VoterAuthenticationLabel" runat="server" Text="<%$ Resources:Resource, PetitionInformationLabel %>"></asp:Label> </h2> </td> </tr> <tr> <td width="2%"> </td> <td width="47%" valign="top"> <table > <tr> <td colspan="2" align="left" style="font-weight: normal; height: 12px;"> <asp:Label ID="Label6" runat="server" Font-Bold="true" Text="<%$ Resources:Resource, CandidateInformationLabel%>"></asp:Label> </td> </tr> <tr> <td align="left"> <asp:Label ID="CycleLabel" runat="server" Text="<%$ Resources:Resource, CycleLabel %>"></asp:Label> </td> <td align="left"> <asp:Label ID="ElectionCycleList" runat="server" Text=""></asp:Label> </td> </tr> <tr> <td align="left"> <asp:Label ID="Label1" runat="server" Text="<%$ Resources:Resource, RaceLabel %>"></asp:Label> </td> <td align="left"> <asp:Label ID="PoliticalRaceList" runat="server" Text=""></asp:Label> </td> </tr> <tr> <td align="left"> <asp:Label ID="Label2" runat="server" Text="<%$ Resources:Resource, NameLabel %>"></asp:Label> </td> <td align="left"> <asp:Label ID="CandidateName" runat="server" Text=""></asp:Label> </td> </tr> <tr> <td align="left"> <asp:Label ID="Label3" runat="server" Text="<%$ Resources:Resource, AddressLabel %>"></asp:Label> </td> <td align="left"> <asp:Label ID="CandidateAddress" runat="server" Text=""></asp:Label> </td> </tr> <tr> <td align="left"> <asp:Label ID="Label4" runat="server" Text="<%$ Resources:Resource, CityStZipLabel %>"></asp:Label> </td> <td align="left"> <asp:Label ID="CandidateCity" runat="server" Text=""></asp:Label> <asp:Label ID="CandidateState" runat="server" Text=""></asp:Label> <asp:Label ID="CandidateZipCode" runat="server" Text=""></asp:Label> </td> </tr> <tr> <td align="left"> <asp:Label ID="Label5" runat="server" Text="<%$ Resources:Resource, CountyLabel %>"></asp:Label> </td> <td align="left"> <asp:Label ID="CandidateCountyList" runat="server" Text=""></asp:Label> </td> </tr> </table> </td> <td width="2%"> </td> <td width="47%" valign="top"> <table width="100%"> <tr> <td colspan="2" align="left" style="font-weight: normal; height: 12px;"> <asp:Label ID="Label7" runat="server" Font-Bold="true" Text="<%$ Resources:Resource, ContactInformationLabel%>"></asp:Label> </td> </tr> <tr> <td align="left"> <asp:Label ID="Label8" runat="server" Text="<%$ Resources:Resource, NameLabel %>"></asp:Label> </td> <td align="left"> <asp:Label ID="ContactName" runat="server" Text=""></asp:Label> </td> </tr> <tr> <td align="left"> <asp:Label ID="Label9" runat="server" Text="<%$ Resources:Resource, PhoneLabel %>"></asp:Label> </td> <td align="left"> <asp:Label ID="ContactPhone" runat="server" Text=""></asp:Label> </td> </tr> <tr> <td align="left"> <asp:Label ID="Label10" runat="server" Text="<%$ Resources:Resource, EmailLabel %>"></asp:Label> </td> <td align="left"> <asp:Label ID="ContactEmailAddress" runat="server" Text=""></asp:Label> </td> </tr> <tr> <td align="left"> <asp:Label ID="Label11" runat="server" Text="<%$ Resources:Resource, WebSiteLabel %>"></asp:Label> </td> <td align="left"> <asp:Label ID="ContactWebSiteURL" runat="server" Text=""></asp:Label> </td> </tr> <tr> <td align="left"> <asp:Label ID="Label16" runat="server" Text="<%$ Resources:Resource, LinkToLabel %>"></asp:Label> </td> <td align="left"> <asp:Label ID="LinkToURL" runat="server" Text=""></asp:Label> </td> </tr> </table> </td> <td width="2%"> </td> </tr> <tr> <td colspan="5"> </td> </tr> <tr > <td> </td> <td align="center" valign="middle" colspan="3" > <asp:Label CssClass="VerticalAlign1" ID="PetitionsListTitle" Font-Size="16px" Width="100%" BackColor="#565A43" Height="24px" ForeColor="#ffffff" Font-Bold="true" runat="server" Text="<%$ Resources:Resource, PetitionSignersLabel %>"></asp:Label> </td> <td> </td> </tr> <tr> <td width="2%"> </td> <td colspan="3" valign="middle"> <telerik:RadGrid AutoGenerateColumns="false" ID="SignersGrid" runat="server" Width="99.7%" AllowSorting="true" AllowFilteringByColumn="true" EnableLinqExpressions="false" AllowPaging="false" PageSize="15" BorderWidth="1px" BorderColor="#999999" EnableEmbeddedSkins="true" Skin="Default" DataSourceID="SQLDataSource1" ShowFooter="True" GridLines="None" > <PagerStyle Mode="NextPrevAndNumeric" /> <GroupingSettings CaseSensitive="false" /> <MasterTableView AutoGenerateColumns="false" EditMode="InPlace" AllowFilteringByColumn="True" ShowFooter="True" TableLayout="Auto"> <Columns> <telerik:GridBoundColumn FilterControlWidth="50px" HeaderText="First Name" UniqueName="FirstName" DataField="FirstName" SortExpression="FirstName" > </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="LastName" HeaderText="Last Name" DataField="LastName" SortExpression="LastName" > </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="VoterAddress" HeaderText="Address" DataField="Address" SortExpression="Address" > </telerik:GridBoundColumn > <telerik:GridBoundColumn UniqueName="RemoveSignature" HeaderText="Remove" DataField="CountyId" SortExpression="CountyId" > </telerik:GridBoundColumn> </Columns> </MasterTableView> <ClientSettings> <Scrolling AllowScroll="true" UseStaticHeaders="true" /> </ClientSettings> </telerik:RadGrid> </td> <td width="2%"> </td> </tr> <tr> <td colspan="5" align="center" > <asp:Label ID="Label17" runat="server" Text=""></asp:Label> </td> </tr> <tr> <td colspan="5" align="center" > <asp:Label ID="SignatureCountMessage" runat="server" Text=""></asp:Label> </td> </tr> <tr> <td colspan="5" align="center" > <asp:Label ID="Label18" runat="server" Text=""></asp:Label> </td> </tr> <tr> <td colspan="5" align="center" > </td> </tr> <tr> <td colspan="5" align="center" > </td> </tr> <tr> <td colspan="5" align="center" > </td> </tr> <tr > <td> </td> <td align="center" valign="middle" colspan="3" > <asp:Label CssClass="VerticalAlign1" ID="Label12" Font-Size="16px" Width="100%" BackColor="#565A43" Height="24px" ForeColor="#ffffff" Font-Bold="true" runat="server" Text="<%$ Resources:Resource, SearchPetitionSignersLabel %>"></asp:Label> </td> <td> </td> </tr> <tr> <td colspan="5" align="center" > </td> </tr> <tr> <td colspan="5" align="center" > <asp:Label ID="Label15" runat="server" Text="<%$ Resources:Resource, FirstLastNameLabel %>"></asp:Label> <asp:TextBox ID="SearchFirstName" Width="80px" runat="server" TabIndex="1"></asp:TextBox> <asp:TextBox ID="SearchLastName" Width="80px" runat="server" TabIndex="2"></asp:TextBox> <asp:Label ID="Label13" runat="server" Text="<%$ Resources:Resource, AddressLabel %>"></asp:Label> <asp:TextBox ID="SearchAddress" runat="server" TabIndex="3"></asp:TextBox> </td> </tr> <tr> <td colspan="5" align="center" > <asp:RadioButtonList ID="TypeOfCompare" runat="server" CellSpacing="10" RepeatDirection="Horizontal" > <asp:ListItem Enabled="True" Selected="True" Text="Contains the value anywhere" Value="1" /> <asp:ListItem Enabled="True" Selected="False" Text="Only check the beginning of the entry" Value="2" /> </asp:RadioButtonList> <br /> <asp:Label ID="SearchInstructions" runat="server" Text="<%$ Resources:Resource, SearchInstructionsLabel %>"></asp:Label> </td> </tr> <tr> <td colspan="5" align="center" > </td> </tr> <tr> <td colspan="5" align="center" > </td> </tr> <tr > <td> </td> <td align="center" valign="middle" colspan="3" > <asp:Label CssClass="VerticalAlign1" ID="Label14" Font-Size="16px" Width="100%" BackColor="#565A43" Height="24px" ForeColor="#ffffff" Font-Bold="true" runat="server" Text="<%$ Resources:Resource, CloseAndPrintLabel %>"></asp:Label> </td> <td> </td> </tr> <tr> <td colspan="5" align="center" > </td> </tr> <tr> <td colspan="5" align="center" > <asp:Button ID="ClosePetitionButton" TabIndex="6" runat="server" Text="<%$ Resources:Resource, ClosePetitionBtn %>" /> <asp:Button ID="PrintListButton" TabIndex="7" runat="server" Text="<%$ Resources:Resource, PrintListBtn %>" /> <asp:Button ID="PrintForFilingButton" TabIndex="8" runat="server" Text="<%$ Resources:Resource, PrintForFilingBtn %>" /> </td> </tr> <tr> <td colspan="5" align="center" > </td> </tr> </table> </div> <div class="clear"> </div> </div> <asp:SqlDataSource ID="SqlDataSource1" ConnectionString="<%$ ConnectionStrings:ElectronicPetitionSystemConnectionString %>" ProviderName="System.Data.SqlClient" runat="server"> </asp:SqlDataSource></asp:Content>