or
Partial Public Class _Default Inherits System.Web.UI.Page Protected Sub Page_Load(sender As Object, e As EventArgs) Dim viewPaths As String() = New String() {"C:\01-Admin", "\\Telerik.com\Path\SharedDir"} Dim uploadPaths As String() = New String() {"C:\01-Admin", "\\Telerik.com\Path\SharedDir"} Dim deletePaths As String() = New String() {"C:\01-Admin", "\\Telerik.com\Path\SharedDir"} RadFileExplorer1.Configuration.ViewPaths = viewPaths RadFileExplorer1.Configuration.UploadPaths = uploadPaths RadFileExplorer1.Configuration.DeletePaths = deletePaths RadFileExplorer1.Configuration.SearchPatterns = New () {"*.*"} RadFileExplorer1.Configuration.ContentProviderTypeName = GetType(CustomFileSystemProvider).AssemblyQualifiedName End Sub End Class<?xml version="1.0" encoding="utf-8" ?> <CustomFileBrowserProvider> <Paths> <genericHandlerPath>FileSystemHandler.ashx</genericHandlerPath> </Paths> <Mappings> <Mapping> <PhysicalPath> <![CDATA[C:\01-Admin]]> </PhysicalPath> <VirtualPath><![CDATA[MyCusomRootDir 1/]]></VirtualPath> </Mapping> <Mapping> <PhysicalPath> <![CDATA[\\Telerik.com\Path\SharedDir]]> </PhysicalPath> <VirtualPath><![CDATA[MySharedRootDir/]]></VirtualPath> </Mapping> </Mappings> </CustomFileBrowserProvider><script type="text/javascript"> function OpenMap(URL) { var wnd = window.radopen(URL, null); wnd.setSize(520, 520); wnd.center(); return false; } </script><telerik:RadWindowManager ID="RadWindowManager1" runat="server" Modal="True" KeepInScreenBounds="True" Skin="Windows7" EnableViewState="False" Behaviors="Close, Move"> </telerik:RadWindowManager><a href="#" onclick="return OpenDealerMap('http://maps.google.com/?q=1600%20Fedex%20Way%20%20Landover,%20Maryland%2020785&zoom=20&size=512x512&maptype=roadmap')">Map It</a>
I have a repeater control in which I hava 2 labels and a radcombo box. I am able to populate the labels and the radcombobox.
The way it should work is I need to map a label text to the value in the radcombo box . The problem is even though the value in the combo is selected it keeps reseting to the first item in the drop down list.
Can someone help me to keep the selected value of the radcombo box selected.See attached jpg.
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server"> </telerik:RadStyleSheetManager> <h2>Server Request Dynamic Reports Creation</h2> <p> <telerik:RadScriptManager ID="rsmDynamicReports" Runat="server"> </telerik:RadScriptManager> </p> <telerik:RadAjaxPanel ID="RadDynamicRpt" runat="server" HorizontalAlign="NotSet" > <table id="telerikTable" > <tr valign = "top"> <td > <asp:Label ID="lblRptServer" runat="server" Text="Report Server :" Font-Size="Small"></asp:Label></td> <td colspan= "2" > <asp:DropDownList ID="ddlDynamicRpt" runat="server" AutoPostBack="True" ForeColor="#3366FF" Font-Size="Small"> <asp:ListItem Value="0">--Select One--</asp:ListItem> </asp:DropDownList></td> </tr> <tr valign="top"> <td colspan="3" ><asp:Label ID="lblReportName" runat="server" Text="Select Report :" Font-Size="Small"></asp:Label></td> </tr> <tr valign="top"> <td ></td> <td colspan="2"> <div style="width: 396px"> <asp:Panel ID="panel1" Width="400px" BorderStyle="Solid" BorderWidth ="1pt" ScrollBars="Vertical" runat="server"> <asp:TreeView ID="tvCatalog" runat="server" AutoGenerateDataBindings="true" BorderStyle= "none" Height="100px" Font-Size="Small" > </asp:TreeView> </asp:Panel> </div></td> </tr> <tr valign="top"> <td ><asp:Label ID="label1" runat="server" Text="Report Path :" Font-Size="Small"></asp:Label></td> <td colspan="2"><telerik:RadTextBox ID="RadPath" runat="server" Width=398px ForeColor="#3366FF" BorderStyle="Solid" BorderWidth="1pt" Enabled="False" Font-Size="Small"></telerik:RadTextBox></td> </tr> <tr valign="top"> <td></td> <td colspan="2"> <table> <asp:Repeater ID="rptFields" runat="server" > <HeaderTemplate> <tr> <td width="150px"> <asp:Label ID="lblReportParam" runat="server" ForeColor="Blue" Text="Report Parameter" Font-Bold="true"></asp:Label> </td> <td> <asp:Label ID="lblServeRequest" runat="server" ForeColor="Blue" Text="Server Request Field" Font-Bold="true"></asp:Label> </td> </tr> </HeaderTemplate> <ItemTemplate> <tr> <td> <asp:Label ID="lblReportParamField" runat="server" Text='<%# Bind("RptParam") %>'></asp:Label> </td> <td> <telerik:RadComboBox ID="rcbServerRequest" runat="server" OnItemDataBound="rptFields_ItemDataBound" > </telerik:RadComboBox> </td> </tr> </ItemTemplate> </asp:Repeater> </table> </td> </tr> <tr valign = "top"> <td > </td> <td colspan= "2" > <asp:Button ID="btnrpt" runat="server" Text="Submit" /></td> </tr> </table> </telerik:RadAjaxPanel> </asp:Content>