I am using telerik:RadWindow in my aspx application for location selection.
In Location have a Country, State and City Details.. here I am Click Location Button the telerik:RadWindow window is opend. There I m first select the Country then it loaded again with State List, After I am select State, then it loaded again with City
List...
Now in form I m displayed the selection value in label on one link provide for clear..
After Click clear, I am click button location.......
Now the telerik:RadWindow showing what I am selected last... (ex amble city means showed City)..... but i want Country, because is a parent one...
I think you have some code about the rpCountryHeader control. You will bind Repeater control depend on the selected country. If you want to clear the old data you may need to remove it in the clearbutton Click event. Then you can bind the repeater with the
initial data. You may post some code about your code behind.
riyaju
Member
44 Points
118 Posts
telerik:RadWindow - Reload
Mar 09, 2012 06:16 AM|LINK
Hi there,
I am using telerik:RadWindow in my aspx application for location selection.
In Location have a Country, State and City Details.. here I am Click Location Button the telerik:RadWindow window is opend. There I m first select the Country then it loaded again with State List, After I am select State, then it loaded again with City List...
Now in form I m displayed the selection value in label on one link provide for clear..
After Click clear, I am click button location.......
Now the telerik:RadWindow showing what I am selected last... (ex amble city means showed City)..... but i want Country, because is a parent one...
Wat can I do???
<div class="FormLabel"><label for="<%= btnLocationPopup.ClientID %>"><asp:Label ID="lblbtnLocationPopup" runat="server"></asp:Label><span class="RequiredSymbol">*</span></label></div>
<div class="FormColon"><label for="<%= btnLocationPopup.ClientID %>">:</label></div>
<div class="FormInput"><asp:Button ID="btnLocationPopup" OnClick="btnLocationPopup_Click" CssClass="btn-type1" runat="server" />
<asp:LinkButton ID="lnkClearLocation" runat="server" Visible="true"
onclick="lnkClearLocation_Click" ></asp:LinkButton> <asp:Label ID="lbCountry" runat="server" Visible="false" /> <asp:Label ID="lbState" runat="server" Visible="false" /> <asp:Label ID="lbCity" runat="server" Visible="false" /> </div>
<div class="FormSpace"> </div>
<telerik:RadWindow ID="winLocation" runat="server" Width="650" EnableShadow="true" VisibleOnPageLoad="false" VisibleTitlebar="true" VisibleStatusbar="false" Modal="true" Skin="Windows7" BorderColor="#ABAF9F" BorderStyle="Solid" Height="600px" >
<ContentTemplate>
<h3><asp:Label ID="lbLocationSelect" runat="server" /></h3>
<asp:Panel ID="panelCountry" runat="server"> <h5><b>Country</b></h5>
<asp:Repeater ID="rpCountryHeader" runat="server" OnItemCommand="rpCountryHeader_ItemCommand" OnItemDataBound="rpCountryHeader_ItemDataBound">
<ItemTemplate>
<asp:LinkButton ID="lnkEditCountryInitial" runat="server" CommandName="selectedAlphabet" />
</ItemTemplate>
</asp:Repeater>
<br />
<hr />
<asp:Repeater ID="rpCountry" runat="server" OnItemCommand="rpCountry_ItemCommand">
<ItemTemplate>
<asp:LinkButton ID="lnkCountry" runat="server" CommandName="selectedCountry" CommandArgument=<%# DataBinder.Eval(Container.DataItem, "ID") %> Text=<%# DataBinder.Eval(Container.DataItem, "Name") %> /><br />
</ItemTemplate>
</asp:Repeater>
</asp:Panel>
<asp:Panel ID="panelState" runat="server">
<h5><b>State</b></h5>
<asp:Repeater ID="rpState" runat="server" OnItemCommand="rpState_ItemCommand">
<ItemTemplate>
<asp:LinkButton ID="lnkState" runat="server" CommandName="selectedState" CommandArgument=<%# DataBinder.Eval(Container.DataItem, "ID") %> Text=<%# DataBinder.Eval(Container.DataItem, "Name") %> /><br />
</ItemTemplate>
</asp:Repeater>
</asp:Panel>
<asp:Panel ID="panelCity" runat="server">
<h5><b>City</b></h5>
<asp:Repeater ID="rpCity" runat="server" OnItemCommand="rpCity_ItemCommand">
<ItemTemplate>
<asp:LinkButton ID="lnkCity" runat="server" CommandName="selectedCity" CommandArgument=<%# DataBinder.Eval(Container.DataItem, "ID") %> Text=<%# DataBinder.Eval(Container.DataItem, "Name") %> /><br />
</ItemTemplate>
</asp:Repeater>
</asp:Panel>
</ContentTemplate>
</telerik:RadWindow>
------------------------------------
telerik rad scheduler asp.net
Qi Wu - MSFT
Contributor
5794 Points
677 Posts
Re: telerik:RadWindow - Reload
Mar 13, 2012 08:07 AM|LINK
Hi,
I think you have some code about the rpCountryHeader control. You will bind Repeater control depend on the selected country. If you want to clear the old data you may need to remove it in the clearbutton Click event. Then you can bind the repeater with the initial data. You may post some code about your code behind.
Hope it can help you.
If you have any feedback about my replies, please contact msdnmg@microsoft.com
Microsoft One Code Framework