Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
273 views
How do you set the width of the series line of the chart?
Like with my RadCharts I use <LineSeriesAppearance Width="1" />

Thanks
Danail Vasilev
Telerik team
 answered on 29 Mar 2013
4 answers
181 views
There seems to be a bug when a dropdownlist is placed in a RadWindow's ContentTemplate and is decorated by RadFormDecorator.

With RadFormDecorator, the RadWindow will appear with scrollbars.  Seems like RadFormDecorator screw up RadWindows AutoSize height calculation.

    <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" DecoratedControls="All" />
    <telerik:RadWindow runat="server" ID="wUserForm" VisibleOnPageLoad="true" AutoSize="true">
        <ContentTemplate>
            <table>
                <tr>
                    <td>test</td>
                    <td>
                        <asp:DropDownList ID="DropDownList1" runat="server">
                            <asp:ListItem>aaaaaaaa</asp:ListItem>
                            <asp:ListItem>bbbbbbbb</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </telerik:RadWindow>


Marin Bratanov
Telerik team
 answered on 29 Mar 2013
1 answer
61 views
Title says it all.
This would be an addendum to my other thread:
"Will there be an official Windows8 theme for ASP.Net AJAX suite?"
Genady Sergeev
Telerik team
 answered on 29 Mar 2013
3 answers
150 views
Upon some customers updating to the latest Internet Explorer (10.0.9200.16521); the RadMenu still displays as it always has, including submenus when hovering over, but when you click on an item, nothing happens.

Everything has been working just fine until the recent update of IE.

Anyone have any ideas?

Telerik.Web.UI.dll Version 2012.2.815.40

Clip from html
<table>
  <tr>
<td style="text-align:left">
<telerik:RadMenu ID="Menu1" Skin="Office2010Blue" Runat="server" EnableRoundedCorners="true">
</telerik:RadMenu>
</td>
</tr>
</table>

Behind scene loading the menu in VB
Menu1.LoadContentFile("~/App_Data/InMenu.xml")

Processing click
Protected Sub Menu1_ItemClick(sender As Object, e As Telerik.Web.UI.RadMenuEventArgs) Handles Menu1.ItemClick
    ProcessLoggedInMenu(e.Item.Text)
End Sub

Private Sub ProcessLoggedInMenu(ByVal Item As String)
    Select Case Item
        Case "Home" : Response.Redirect("~/Main.aspx")
        Case "Webinars" : Response.Redirect("~/PrivateWebinars.aspx")
        Case "My Profile" : Response.Redirect("~/UserProfile.aspx")
        Case "Logout"
            FormsAuthentication.SignOut()
            S.KillCookie()
            Response.Redirect("~/Default.aspx")
    End Select
End Sub


Sample xml file
<?xml version="1.0" encoding="utf-8" ?>
<Menu>
  <Group>
    <Item Text="Home">
    </Item>
      <Item Value="Webinars" Text="Webinars" >
      </Item>
      <Item Value="Profile" Text="My Profile" >
      </Item>
      <Item Value="Log" Text="Logout" >
      </Item>
  </Group>
</Menu>


ChuckRock
Top achievements
Rank 1
 answered on 29 Mar 2013
1 answer
300 views
I would like to keep the formatting but remove the tags from the content saved to the database.  Is there a way to do this.... As an example...

I<br />
don't<br />
want<br />
to<br />
see<br />
the<br />
a<br />


The above is displayed on another web page.  Is there some setting that I can use to remove the </br> tags, or do I manually have the strip them out...  Any suggestions would be greatly appreciated.
Rumen
Telerik team
 answered on 29 Mar 2013
6 answers
116 views
See attached screenshot.

If I add the following to my page, the drop down for the Gender field gets styled but when I change it from Male to Female, it commits the row as Male (the default selected value); I can no longer select Female and have it save.  As soon as I remove the RadFormDecorator, everything works as desired but it loses the nicer display style.


<telerik:RadFormDecorator ID="rfdUIStyler" runat="server" DecoratedControls="All" />

<telerik:GridTemplateColumn HeaderText="Gender" SortExpression="Gender" UniqueName="Gender"
    DataField="Gender" FilterControlAltText="Filter Gender column" ColumnEditorID="cmbGridEdit_Gender"
    ShowSortIcon="False">
    <ItemTemplate>
        <%# DataBinder.Eval(Container.DataItem, "Gender") %></ItemTemplate>
    <EditItemTemplate>
        <asp:DropDownList ID="ddlGender" runat="server">
            <Items>
                <asp:ListItem Text="Female" Value="Female" />
                <asp:ListItem Text="Male" Value="Male" Selected="True" />
            </Items>
        </asp:DropDownList>
    </EditItemTemplate>
    <HeaderStyle Wrap="False" HorizontalAlign="Left" Width="80px" CssClass="grid-header" />
    <ItemStyle HorizontalAlign="Left" Width="90%" VerticalAlign="Top" />
</telerik:GridTemplateColumn>

protected void grdAthletes_ItemDataBound(object sender, GridItemEventArgs e)
{
    Control ddlGenderSelector = null;
    Control ctrlFieldEditor = null;
      Control dtDoBEditor = null;
 
    try
    {
        //Some controls don't load the values into the custom editor's automatically so force the values through
        if (e.Item.IsInEditMode)
        {
            ddlGenderSelector = e.Item.FindControl("ddlGender"); //Get the gender selection control
 
            //Load the current value for Gender into the column editor control
            if (ddlGenderSelector != null)
                ((DropDownList)ddlGenderSelector).SelectedValue = ((DataRowView)e.Item.DataItem)[6].ToString();
            //((RadDropDownList)ddlGenderSelector).SelectedValue = ((DataRowView)e.Item.DataItem)[6].ToString();
 
               dtDoBEditor = ((GridEditableItem)e.Item)[grdAthletes.MasterTableView.RenderColumns[7].UniqueName].Controls[0];
 
               if ((dtDoBEditor != null) && string.Compare(_sProgramCode, "Y", true) == 0)
               {
                    ((RadDatePicker)dtDoBEditor).SelectedDate = DateTime.Now.AddYears(-20);
                    ((RadDatePicker)dtDoBEditor).MinDate = DateTime.Now.AddYears(-20);
               }
 
            //Get the editor for the first field and set focus to it
            ctrlFieldEditor = ((GridEditableItem)e.Item)[grdAthletes.MasterTableView.RenderColumns[3].UniqueName].Controls[0];
 
            if (ctrlFieldEditor != null)
                ctrlFieldEditor.Focus();
        }
    }
    catch (Exception ex)
    {
        System.Diagnostics.Debug.Print("Error: " + ex.ToString());
        Exceptions.ProcessModuleLoadException(this, ex);
    }
}


I have tried using a Rad drop down instead but then I have issues loading the existing value (if Female is already selected, it still shows Male after edit no matter what I do).

Thanks.
J
Top achievements
Rank 1
 answered on 29 Mar 2013
5 answers
244 views
I have grid like this:

<telerik:RadGrid Width="100%" ID="RadTest" runat="server" AlternatingItemStyle-BackColor="#E4EBEF"
                AllowPaging="true" AllowSorting="true" PageSize="10" ShowStatusBar="true" Skin="WebBlue" AllowAutomaticUpdates ="true" AllowAutomaticInserts ="true"
                GridLines="None" EnableViewState="false" ItemStyle-CssClass="GridText" AlternatingItemStyle-CssClass="GridText">
                <PagerStyle Mode="NextPrevAndNumeric" />
                <GroupingSettings CaseSensitive="false" />
                <MasterTableView Width="100%" AutoGenerateColumns="false" EnableColumnsViewState="false" CommandItemDisplay ="Top"
                    CommandItemSettings-AddNewRecordText = "Add New Item" CommandItemSettings-ShowRefreshButton = "false">
                    <Columns>     
                        <telerik:GridEditCommandColumn  HeaderStyle-Width  = "40px" ButtonType="ImageButton" UniqueName="EditCommandColumn">
                        </telerik:GridEditCommandColumn>
                        <telerik:GridBoundColumn DataField="Name" HeaderText ="Item">
                        </telerik:GridBoundColumn>
                        <telerik:GridButtonColumn ConfirmDialogHeight = "60" ItemStyle-Width = "70px" ConfirmText="Delete this item?" ConfirmDialogType="RadWindow"
                            ConfirmTitle="Delete" ButtonType="ImageButton"  CommandName="Delete"  Text="Delete" UniqueName="DeleteColumn">
                            <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton">
                            </ItemStyle>                                   
                        </telerik:GridButtonColumn>
                    </Columns>
                </MasterTableView>
                <ClientSettings EnableRowHoverStyle ="true" />
            </telerik:RadGrid>

On the gird, when i click the edit button, i am getting a text box with the value in it and also update and cancel links. I have 2 questions here:

1. After i click update how do i get the text box value below?
2. After i click update i want the update to be done( as shown in the code below) and the edit column(with update and cancel links) should disappear.

Dim drv As DataRowView = CType(e.Item.DataItem, DataRowView)
Dim item As GridEditFormItem = CType(e.Item, GridEditFormItem)
'code for update
RadTest.DataSource = Nothing
RadTest.Rebind()


Also, as i used CommandItemSettings-AddNewRecordText "Add New Item"
i have button on the top of the grid which says Add new Item. now when i press this i am getting a textbox to add an Item. How do i get the value of this in code behind to insert into db ?

Please  help. Thanks.

Sagar
Top achievements
Rank 1
 answered on 29 Mar 2013
1 answer
150 views
Hello friends,

i am working on telerik control and i used RadUpload control in my project everything working fine but while i select file after selected one file its not supporting.
 is there any properity for select multipal file ? if yes than please let me know. 

Thanks in advance.


Kate
Telerik team
 answered on 29 Mar 2013
3 answers
101 views
Hi Guys,

I'd like to Output Cache my menu - it is different in only 2 cases - Logged in and ClientID; I can handle these OK but what can I do about the selected item? Currently I'm using FindItemByValue and selecting it in code.

How to handle the selected Item client side please?

Cheers,
Jon
Kate
Telerik team
 answered on 29 Mar 2013
1 answer
260 views
Am getting the following error while accessing my web site

This error is captured from firebug in firefox--
"NetworkError: 403 Forbidden - http://MyServer/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ScriptManagerMaster_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a89093640-ae6b-44c3-b8ea-010c934f8924%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2010.2.929.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a15a8cff0-9e51-4282-a100-c2dcd204ecf2%3a16e4e7cd%3af7645509%3a24ee1bba%3a19620875%3a874f8ea2%3a490a9d4e%3abd8f85e4%3bAjaxControlToolkit%2c+Version%3d3.0.30930.22451%2c+Culture%3dneutral%2c+PublicKeyToken%3d28f01b0e84b6d53e%3aen-US%3a308b3473-9a10-42d7-abe0-9740a95490da%3adc2d6e36%3ab14bb7d5%3aa3e10fa2%3a13f47f54%3a701e375f%3a1d056c78%3a3c55b13e%3ade51bc8f%3aa4313c7a%3a5acd2e8e%3af8a45328"

I have gone through many online available resources but no luck.The same works on a different server b8ut not on a new one.
We are using win server 2k8 and IIS 7.0.Please help..
Here is my web config(only sys.web and sys.webserver are included)

<system.web>
				<machineKey validationKey="ValidationKey" decryptionKey="decKey" validation="SHA1" decryption="AES" />
				<customErrors mode="Off" />
				<pages validateRequest="false" controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
						<controls>
								<add tagPrefix="CustomControls" namespace="CustomControls" assembly="CustomControls" />
								<add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" />
						</controls>
				</pages>
				 
				<compilation debug="false" targetFramework="4.0">
						<assemblies>
								<add assembly="Microsoft.Build.Utilities, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
								<add assembly="Microsoft.Build.Tasks, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
								<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
								<add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
								<add assembly="System.Management, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
								<add assembly="System.Configuration.Install, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
								<add assembly="System.Drawing.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
								<add assembly="System.Transactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
								<add assembly="Microsoft.Build.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
								<add assembly="System.Data.OracleClient, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
								<add assembly="System.Workflow.ComponentModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
								<add assembly="System.Messaging, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
								<add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
								<add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
								<add assembly="System.Speech, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
							<add assembly="System.Web.Extensions,     Version=1.0.61025.0,       Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
						</assemblies>
				</compilation>
				 
				<authentication mode="Windows" />
				<identity impersonate="true" />
				
				 
				<httpHandlers>
						<add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
						<add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler" validate="false" />
						<add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false" />
						<add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false" />
						<add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false" />
					<remove verb="*" path="*.asmx"/>
					<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
					<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
					<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
				</httpHandlers>
 
			<httpModules>
				<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions,  Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
			</httpModules>
 
			<sessionState mode="StateServer" stateConnectionString="My state server"  timeout="60" stateNetworkTimeout="40" useHostingIdentity="true" compressionEnabled="true"  />
				<httpRuntime maxRequestLength="16384" executionTimeout="1800" waitChangeNotification="5" maxWaitChangeNotification="15" />
		</system.web>
<system.webServer>
				<validation validateIntegratedModeConfiguration="false" />
			<modules>
				<add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
			</modules>
				<handlers>
						<remove name="ChartImage_axd" />
						<remove name="Telerik_Web_UI_SpellCheckHandler_axd" />
						<remove name="Telerik_Web_UI_DialogHandler_aspx" />
						<remove name="Telerik_RadUploadProgressHandler_ashx" />
						<remove name="Telerik_Web_UI_WebResource_axd" />
					<remove name="WebServiceHandlerFactory-Integrated"/>
 
					<add name="handler-wa" path="*" verb="*" modules="IsapiModule" scriptProcessor="d:\Apps\Program Files\Netegrity\webagent\win64\bin\ISAPI6WebAgent.dll" resourceType="Unspecified" requireAccess="None" preCondition="bitness64" />
						<add name="Telerik.Web.UI.DialogHandler" path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI" />
						<add name="Telerik_Web_UI_DialogHandler_aspx" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" />
						<add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode,runtimeVersionv4.0" />
						<add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode,runtimeVersionv4.0" />
						<add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode,runtimeVersionv4.0" />
						<add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode,runtimeVersionv4.0" />
					<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
					<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
				 
				</handlers>
				<security>
						<requestFiltering>
								<requestLimits maxAllowedContentLength="16777216" />
						</requestFiltering>
				</security>
				<staticContent>
						<mimeMap fileExtension=".log" mimeType="application/octet-stream" />
				</staticContent>
				<defaultDocument>
						<files>
								<clear />
								<add value="default.aspx" />
								<add value="Default.htm" />
								<add value="Default.asp" />
								<add value="index.htm" />
								<add value="index.html" />
								<add value="iisstart.htm" />
						</files>
				</defaultDocument>
				<isapiFilters>
						<clear />
						<filter name="ASP.Net_2.0.50727-64" path="%windir%\Microsoft.NET\Framework64\v2.0.50727\aspnet_filter.dll" enabled="true" enableCache="true" preCondition="bitness64,runtimeVersionv2.0" />
						<filter name="ASP.Net_2.0.50727.0" path="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_filter.dll" enabled="true" enableCache="true" preCondition="bitness32,runtimeVersionv2.0" />
						<filter name="ASP.Net_2.0_for_V1.1" path="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_filter.dll" enabled="true" enableCache="true" preCondition="runtimeVersionv1.1" />
						<filter name="ASP.Net_4.0_64bit" path="C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_filter.dll" enabled="true" enableCache="true" preCondition="runtimeVersionv4.0,bitness64" />
						<filter name="ASP.Net_4.0_32bit" path="C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_filter.dll" enabled="true" enableCache="true" preCondition="runtimeVersionv4.0,bitness32" />
						<filter name="SiteminderAgent" path="d:\Apps\Program Files\Netegrity\webagent\win64\bin\ISAPI6WebAgent.dll" preCondition="bitness64" />
				</isapiFilters>
		</system.webServer>
Andrey
Telerik team
 answered on 29 Mar 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?