Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
127 views
I have a fixed and scrollable menu.  I want on page load (or on client side) scroll to specified item.
Help please how can I do it??? ....

Vakhtang.
Ron
Top achievements
Rank 1
 asked on 17 Jun 2009
2 answers
123 views
Hello,

I have a question regarding placing the Update Panel on a Treeview control when a button is clicked. I want to load the treeview when a button is clicked. As of now when I click the button, the update panel is working on the button instead of the treeview control. Can you guide me to get this?
Sri
Top achievements
Rank 1
 answered on 17 Jun 2009
4 answers
217 views
Hi,

I am trying to create a button where I can delete something from a table in my database.
I need to know the contentID of the item that was clicked so that I can use it as a parameter (@idconteudo) in my delete statement.
The column in question in called "Remover".

Here is my grid:

            <telerik:RadGrid ID="MeusFavoritos" runat="server" AllowPaging="True" AllowSorting="True" DataSourceID="GET_MEUS_FAVORITOS" GridLines="None" AutoGenerateColumns="False" PageSize="5"  ClientSettings-EnableRowHoverStyle="True" PagerStyle-Mode="NumericPages" PagerStyle-ShowPagerText="false" >
                <MasterTableView CellSpacing="-1" DataSourceID="GET_MEUS_FAVORITOS">
                    <Columns>
                        <telerik:GridHyperLinkColumn DataNavigateUrlFormatString="/lms_bd/FichaConteudo.aspx?conteudo={0}" DataTextField="Titulo" Target="_self" DataNavigateUrlFields="IDConteudo" UniqueName="Titulo" HeaderText="T&#237;tulo" SortExpression="Titulo" />
                        <telerik:GridHyperLinkColumn DataNavigateUrlFormatString="/lms_bd/conteudosTema.aspx?tema={0}" DataTextField="Tema" Target="_self" DataNavigateUrlFields="IDTema" UniqueName="Tema" HeaderText="Tema" SortExpression="Tema" />
                        <telerik:GridButtonColumn ConfirmText="Tem a certeza que quer remover este conteúdo dos seus favoritos?" ConfirmDialogType="RadWindow"
                        ConfirmTitle="Remover" ButtonType="ImageButton" CommandName="Delete" Text="Remover"
                        UniqueName="RemoverFav" ImageUrl="~/imagens/bt_apagar.gif" HeaderText="Remover" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"  />
                    </Columns>
                </MasterTableView>
                <PagerStyle Mode="NumericPages" ShowPagerText="False" />
                <ClientSettings EnableRowHoverStyle="True" />
            </telerik:RadGrid>

My radgrid is populated by this datasource, and the problem I am having is with the delete part. I don't understand how to use the id of the content clicked for my where clause in the delete. The datasource is:

<asp:SqlDataSource ID="GET_MEUS_FAVORITOS" runat="server" ConnectionString="<%$ ConnectionStrings:lms_bibliotecaConnectionString1 %>"
                      SelectCommand="SELECT * FROM ([NL_LMS_BIB_conteudos] INNER JOIN NL_LMS_BIB_temas ON NL_LMS_BIB_conteudos.IDTema = NL_LMS_BIB_temas.IDTema)
                      INNER JOIN NL_LMS_BIB_favoritos on NL_LMS_BIB_conteudos.IDConteudo = NL_LMS_BIB_favoritos.IDConteudo
                      WHERE NL_LMS_BIB_favoritos.IDUser = @UserID" DeleteCommand="DELETE FROM [NL_LMS_BIB_favoritos] WHERE IDUser = @UserID AND IDConteudo = @idconteudo" >
    <SelectParameters>
        <asp:SessionParameter Name="UserID" SessionField="UserID" />
    </SelectParameters>
    <DeleteParameters>
        <asp:SessionParameter Name="UserID" SessionField="UserID" />
        <asp:Parameter Name="idconteudo" />
    </DeleteParameters>

</asp:SqlDataSource>

Can anyone please help?
Thank you.

Pavlina
Telerik team
 answered on 17 Jun 2009
2 answers
144 views
Hi,

I'm trying to incorporate RadUpload into our application but am coming across an infuriating issue when trying to upload using a BlackBerry. The BlackBerry client has been written by me and uses its internal HTTP connection objects to achieve this.

If I post the request to an application that doesn't have the RadUpload handlers and just uses Request.Files, the upload is successful.

The error occurs before the request has reached my code. The error I am getting (viewed in event viewer) is:

Event code: 3005
Event message: An unhandled exception has occurred.
Exception information:
    Exception type: NullReferenceException
    Exception message: Object reference not set to an instance of an object.

Stack trace:    at Telerik.Web.UI.Upload.ProgressWorkerRequest..ctor(HttpWorkerRequest wr, HttpRequest request)
   at Telerik.Web.UI.RadUploadHttpModule.CaptureWorkerRequest(Object sender, EventArgs e)
   at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
 
I've examined the packets and compared it to a successful request from our Windows Mobile device and the only potential issue I can see is that BlackBerry doesn't support keep-alive. Is this a show stopper as far as implementing RadUpload goes?

Is there a way of bypassing the RadUpload HTTP handlers without putting the BlackBerry uploader in a separate application with its own web.config?

Thanks for any assistance.
Phil
Top achievements
Rank 1
 answered on 17 Jun 2009
3 answers
409 views
I am trying to edit an existing site and I am getting this error

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load file or assembly 'Telerik.Web.UI, Version=2008.1.415.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Source Error:

Line 1:  <%@ Master Language="VB" AutoEventWireup="false" Codebehind="MasterPage.master.vb"
Line 2:      Inherits="devOrthman.MasterPage" %>
Line 3:  <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

Source File: /MasterPage.Master    Line: 1

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Telerik.Web.UI, Version=2008.1.415.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4' could not be loaded.


This site already existed and I am just trying to open it in visual studio to fix some problems. I have posted my master page and web.config file

<%@ Master Language="VB" AutoEventWireup="false" Codebehind="MasterPage.master.vb"
    Inherits="devOrthman.MasterPage" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/tr/xhtml11/dtd/xhtml11.dtd">
<html style="height: 100%">
<head id="Head1" runat="server">
    <link href="App_Themes/MainTheme/MySkin/TreeView.MySkin.css" rel="stylesheet" type="text/css" />
    <link href="App_Themes/MainTheme/MainStyles.css" rel="stylesheet" type="text/css" />
</head>

<telerik:radscriptmanager runat="server"></telerik:radscriptmanager>
<body style="margin: 0px; height: 100%; overflow: hidden;" scroll="no">
    <form id="Form1" method="post" runat="server" style="height: 100%">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <telerik:radgrid runat="server"></telerik:radgrid>
        <telerik:RadSplitter ID="RadSplitter1" runat="server" Orientation="Vertical" Width="100%"
            Height="100%">
            <telerik:RadPane ID="LeftRadPane1" runat="server" Width="180px" MinWidth="180" Scrolling="Both"
                BackColor="#004416" CssClass="MainMenuRepeater">
                <div class="TopMenu">
                    &nbsp;&nbsp;<br />
                    &nbsp; &nbsp;
                    <br />
                    &nbsp;&nbsp; Select a Product
                </div>
                <div>
                    <asp:Image ID="LeftBarTopImage" runat="server" ImageUrl="~/App_Themes/Images/MasterMenuImage.jpg" />
                </div>
                <div>
                    <telerik:RadTreeView ID="RadTreeView1" runat="server" EnableEmbeddedSkins="False"
                         Skin="MySkin" ShowLineImages="False"
                        LoadingStatusPosition="BelowNodeText" DataSourceID ="SqlDataSource1" DataFieldID ="NodeId" DataFieldParentID = "NodeParentId"  DataTextField ="NodeText" DataValueField = "NodeId">
                        <CollapseAnimation Duration="100" Type="OutQuint" />
                        <ExpandAnimation Duration="100" />
                    </telerik:RadTreeView>
                    <asp:SqlDataSource ID="SqlDataSource1" runat="server"  ConnectionString="<%$ ConnectionStrings:orthmanConnectionString %>"
                     SelectCommandType = "StoredProcedure"  SelectCommand ="getAllItems">
                    </asp:SqlDataSource>
                </div>
            </telerik:RadPane>
            <telerik:RadSplitBar runat="server" ID="RadSplitBar2" CollapseMode="Forward" />
            <telerik:RadPane ID="RightRadPane1" runat="server" BackColor="#b1caba" CssClass="RightPanelPadding"
                Scrolling="Both">
                <div id="MasterPageHeading">
                    <table width="817" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td width="223" valign="top" align="right">
                         <a href="http://orthman.com/" target="_blank">  <asp:Image ID="Orthman" runat="server" ImageUrl="~/App_Themes/Images/OrthmanHomeLink.png" /></a>
</td>
                            <td valign="bottom" align="right">
                                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br />
                                &nbsp; &nbsp;
                                <asp:HyperLink ID="HyperLink1" runat="server" CssClass="MaterPageHeadingLinks" NavigateUrl="~/Cart/viewCart.aspx" >View Cart</asp:HyperLink><asp:HyperLink
                                    ID="HyperLink3" runat="server" CssClass="MaterPageHeadingLinks" NavigateUrl ="~/admin/editProfile.aspx">Edit Profile</asp:HyperLink>&nbsp;
                                <asp:LoginStatus ID="LoginStatus1" runat="server" CssClass="MaterPageHeadingLinks"
                                   />
                                <asp:HyperLink ID="HyperLink4" runat="server" CssClass="MaterPageHeadingLinks" NavigateUrl="~/default.aspx">Home</asp:HyperLink>
                                &nbsp;&nbsp; &nbsp;</td>
                            <td align="right" valign="bottom">
                            </td>
                        </tr>
                    </table>
                </div>
                <table width="806" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td>
                            <div id="ContentTop">
                                <table width="800" border="0" cellspacing="0" cellpadding="10">
                                    <tr>
                                        <td width="349" valign="middle">
                                            <asp:Label ID="TitleLabel" runat="server" CssClass="H2"></asp:Label></td>
                                        <td width="431" valign="middle" align="right">
                                            <span class="H2">Search by Part Number:</span>&nbsp;&nbsp;&nbsp;
                                            <telerik:RadComboBox ID="RadSearchComboBox" runat="server" Width="200px" Height="150px"
                                                AllowCustomText="True" ShowToggleImage="False" ShowMoreResultsBox="true"
                                                EnableLoadOnDemand="True" Skin ="Telerik"
                                                MarkFirstMatch="False" OnItemsRequested="loadSearch"
                                                EnableVirtualScrolling="true" EmptyMessage="Enter Part Number"  >
                                                <CollapseAnimation Duration="200" Type="OutQuint" />
                                            </telerik:RadComboBox>
                                            
                                        <td>
                                        <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
                                            <asp:Button ID="GoButton" runat="server" Text="Go" CssClass="GoBtn" OnClick ="goSearchClick" UseSubmitBehavior = "false" CausesValidation ="false"  />
                                            </telerik:RadAjaxPanel>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="ContentRepeat">
                            <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
                            </asp:ContentPlaceHolder>
                            <asp:Label ID="msgLabel" runat="server" Text=""></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Image ID="FooterImage" runat="server" ImageUrl="~/App_Themes/Images/ContentHolderBottom.jpg" />
                        </td>
                    </tr>
                </table>
                <table width="90%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td>
                            <div class="Footer" align="center">
                                &#65533; 2008 Orthman Manufacturing Incorporated</div>
                        </td>
                    </tr>
                </table>
            </telerik:RadPane>
        </telerik:RadSplitter>
    </form>
</body>
</html>

<?xml version="1.0"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
    <configSections>
        <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
            <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
                <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
                <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
                    <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere"/>
                    <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
                    <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
                </sectionGroup>
            </sectionGroup>
        </sectionGroup>
    </configSections>
    <appSettings>
        <add key="connectOrthman" value="Data Source=connectioninput/>
    <add key="sendfrom" value="orders@orthman.com"/>
    <add key="sendfromname" value="Orthman"/>
    <add key="replyto" value="orders@orthman.com"/>
    <add key="sentToAdmin" value="bhoulden@orthman.com"/>
  </appSettings>
    <connectionStrings>
        <add name="connectOrthman" connectionString="Data Source=connectioninput;" providerName="System.Data.SqlClient"/>
        <add name="orthmanConnectionString" connectionString="Data Source=connectioninput;" providerName="System.Data.SqlClient"/>
    </connectionStrings>
    <system.net>
        <mailSettings>
            <smtp>
                <network host="smtpserver" port="25"/>
            </smtp>
        </mailSettings>
    </system.net>
    <system.web>
        <httpHandlers>
            <remove path="*.asmx" verb="*"/>
            <add path="*.asmx" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
            <add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Version=2008.1.415.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/>
            <add path="*_AppService.axd" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
            <add path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
            <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" validate="false"/>
            <add path="Telerik.RadUploadProgressHandler.ashx" verb="*" type="Telerik.Web.UI.RadUploadProgressHandler, Telerik.Web.UI"/>
            <add path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Version=2008.1.415.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/>
        </httpHandlers>
        <httpModules>
            <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
            <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI"/>
        </httpModules>
        <customErrors mode="Off"/>
        <compilation debug="true">
   <assemblies>
    <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
    <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
    <add assembly="System.Configuration.Install, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
    <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    <add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    <add assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
    <add assembly="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
    <add assembly="System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
    <add assembly="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
    <add assembly="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
    <add assembly="System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
    <add assembly="System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
    <add assembly="System.DirectoryServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
    <add assembly="System.DirectoryServices.Protocols, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
    <add assembly="System.EnterpriseServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
    <add assembly="System.ServiceProcess, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
    <add assembly="System.Web.RegularExpressions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
    <add assembly="Telerik.Charting, Version=2.0.0.0, Culture=neutral, PublicKeyToken=D14F3DCC8E3E8763" />
   </assemblies>
  </compilation>
        <pages>
            <namespaces>
                <clear/>
                <add namespace="System"/>
                <add namespace="System.Collections"/>
                <add namespace="System.Collections.Specialized"/>
                <add namespace="System.Configuration"/>
                <add namespace="System.Text"/>
                <add namespace="System.Text.RegularExpressions"/>
                <add namespace="System.Web"/>
                <add namespace="System.Web.Caching"/>
                <add namespace="System.Web.SessionState"/>
                <add namespace="System.Web.Security"/>
                <add namespace="System.Web.Profile"/>
                <add namespace="System.Web.UI"/>
                <add namespace="System.Web.UI.WebControls"/>
                <add namespace="System.Web.UI.WebControls.WebParts"/>
                <add namespace="System.Web.UI.HtmlControls"/>
            </namespaces>
            <controls>
                <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
                <add namespace="AjaxControlToolkit" assembly="AjaxControlToolkit" tagPrefix="ajaxToolkit"/>
            </controls>
        </pages>
        <!--
            The <authentication> section enables configuration
            of the security authentication mode used by
            ASP.NET to identify an incoming user.
        -->
        <authentication mode="Forms">
            <forms name="appNameAuth" path="/" loginUrl="login.aspx" protection="All" timeout="1000">
            </forms>
        </authentication>
        <roleManager enabled="true" defaultProvider="CustomizedRoleProvider">
            <providers>
                <remove name="AspNetSqlRoleProvider"/>
                <add name="CustomizedRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="orthmanConnectionString" applicationName="orthman"/>
            </providers>
        </roleManager>
        <httpRuntime maxRequestLength="8192" executionTimeout="180"/>
        <membership defaultProvider="CustomizedMembershipProvider">
            <providers>
                <remove name="AspNetSqlMembershipProvider"/>
                <add name="CustomizedMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="orthmanConnectionString" applicationName="orthman" commandTimeout="30" enablePasswordRetrieval="false" enablePasswordReset="True" requiresQuestionAndAnswer="true" requiresUniqueEmail="true" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" passwordAttemptWindow="10" minRequiredPasswordLength="5" minRequiredNonalphanumericCharacters="1"/>
            </providers>
        </membership>
        <profile defaultProvider="CustomProfileProvider" enabled="true">
            <providers>
                <remove name="AspNetSqlProfileProvider"/>
                <add name="CustomProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="orthmanConnectionString" applicationName="ORTHMAN"/>
            </providers>
            <properties>
                <add name="FirstName" type="String" defaultValue="[null]" customProviderData="FirstName;nvarchar"/>
                <add name="LastName" type="String" defaultValue="[null]" customProviderData="LastName;nvarchar"/>
                <add name="Phone" type="String" defaultValue="[null]" customProviderData="Phone;nvarchar"/>
                <add name="Fax" type="String" defaultValue="[null]" customProviderData="Fax;nvarchar"/>
            </properties>
        </profile>
    </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="WebServiceHandlerFactory-Integrated"/>
            <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"/>
            <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
        </handlers>
    </system.webServer>
    <location path="Telerik.RadUploadProgressHandler.aspx">
        <system.web>
            <authorization>
                <allow users="*"/>
            </authorization>
        </system.web>
    </location>
</configuration>
Any help is appriciated
Atanas Korchev
Telerik team
 answered on 17 Jun 2009
3 answers
277 views
Hi all
I am using the RadComboBox in an ASP.NET MVC enviroment.
When I let run the RadCombobox within a <form id="form1" runat="server">  all works fine.
But the goal of MVC is to work without a ViewState in order to avoid any overhead, so I try to use the RadComboBox without the ViewState, means use Html.Begin() and Html.EndForm() instead of  <form id="form1" runat="server">.

When I do so, the following runtime error occurs:

Runtime error in Microsoft JScript: 'attributes' is Null or not an object

at Line 1900 in Telerik.Web.Ui.Webresource_1.axd

if(_2e["attributes"]){
this.get_attributes()._load(_2e["attributes"]);
}

 
I assume now, that RadComboBox is only useable when a ViewState is available. If yes, can you tell me which other controls are dependent of the ViewState? And if no, can you tell me what I am doing wrong? Here is my code:

In the MasterPage:
<% using(Html.BeginForm()) { %>

 

 

<telerik:RadScriptManager ID="mainRadScriptManager" runat="server" EnableTheming="True" />

 

......

 

 

In the View:

 

<%

categoryRadComboBox.DataSource = ViewData[

 

ProductController.Identifiers.DataSources.Categories];

 

categoryRadComboBox.DataBind();

%>

 

 

<telerik:RadComboBox ID="categoryRadComboBox" Runat="server"

 

AutoPostBack="True" DataTextField="Name"

 

 

 

DataValueField="ProductCategoryID" Height="66px" Width="250px" Skin="Default" MaxHeight="400px">

 

 

 

 

</telerik:RadComboBox>

And in the Controller:

 

 

 

string categoryValue = RadControlHelper.ExtractComboBoxValue(Request, Identifiers.Controls.CategoriesComboBox);

 

AdventureWorksDataContext context = new AdventureWorksDataContext();

 

 

 

var categories = from category in context.ProductCategories

 

 

 

orderby category.Name

 

 

 

select new { category.Name, category.ProductCategoryID };

 

 

 

ViewData[

Identifiers.DataSources.Categories] = categories.ToList();

 

 

 

 

 

 

 


Thanks for your help and best regards.
Hans

 

 

 

 

 

Atanas Korchev
Telerik team
 answered on 17 Jun 2009
1 answer
95 views
Hi

When using the page size drop down on the grid it vanishes leaving me unable to change the page size again. Is it possible to keep the page size drop down visiable at all times? It seems to vanish when you select a number that is between  the top and bottom range of that page size. 
e.g. I have 15 records and select a page size of 20, loses page size drop down.

Thanks
Pavlina
Telerik team
 answered on 17 Jun 2009
1 answer
415 views
Hi there,

I am having a problem trying to databind to a RadComboBox in the codebehind.  I have two RadComboBoxes, and when I select something from the first, I want to update the available list in the second.  To do this, I am catching the SelectedIndexChanged event for the first combobox and want to set the DataSource property for the second combobox but when I do the DataBind, the following error appears: "Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control."

Here is my sub in the codebehind where I am doing this DataBind.  When I step through it, the 'found.Factors' list is populated as expected, but the DataBind still does not work.

 

protected void FactorTypeList_SelectedIndexChanged(object source, RadComboBoxSelectedIndexChangedEventArgs e)

 

{

 

//Identify the Factor Type Column/ComboBox.

 

 

GridTemplateColumn FactorTypeColumn = (GridTemplateColumn)CRFGrid.Columns.FindByDataField("FactorType.Name");

 

 

RadComboBox FactorTypeComboBox = (RadComboBox)FactorTypeColumn.CurrentColumnEditor.ContainerControl.FindControl("FactorTypeList");

 

 

//Identify the Factor Column/ComboBox.

 

 

GridTemplateColumn FactorColumn = (GridTemplateColumn)CRFGrid.Columns.FindByDataField("Factor.Name");

 

 

RadComboBox FactorComboBox = (RadComboBox)FactorColumn.CurrentColumnEditor.ContainerControl.FindControl("FactorList");

 

 

////Check on the currently selected item.

 

 

if (FactorTypeComboBox.SelectedIndex == 0)

 

{

 

//The User has deselected the item so all Factors should be available.

 

FactorComboBox.DataSource = FactorDataSource;

FactorComboBox.DataBind();

}

 

else

 

{

 

//Update the Factor ComboBox with the Factors for the selected Factor Type.

 

 

SustainmentDataClassesDataContext ctx = new SustainmentDataClassesDataContext();

 

 

var FactType = from p in ctx.FactorTypes

 

 

where p.Name == FactorTypeComboBox.Text

 

 

select p;

 

 

if (FactType != null)

 

{

 

FactorType found = FactType.First<FactorType>();

 

FactorComboBox.DataSource = found.Factors;

FactorComboBox.DataBind();

}

}

}

Here is my GridTemplateColumn in the markup:

 

<%

-- Factor Column--%>

 

 

<telerik:GridTemplateColumn

 

 

DataField="Factor.Name"

 

 

HeaderText="<%$ Resources:Sustain, Factor %>">

 

 

<headerstyle width="120" />

 

 

<EditItemTemplate>

 

 

<telerik:RadComboBox

 

 

id="FactorList"

 

 

runat="server"

 

 

skin="Vista"

 

 

allowcustomtext="false"

 

 

datasourceid="FactorDataSource"

 

 

datavaluefield="Id"

 

 

datatextfield="Name"

 

 

SelectedValue='<%# Bind("FactorId") %>'

 

 

AppendDataBoundItems="True"

 

 

AutoPostBack="True"

 

 

OnSelectedIndexChanged="FactorList_SelectedIndexChanged"

 

 

CausesValidation="false">

 

 

<Items>

 

 

<telerik:RadComboBoxItem

 

 

runat="server"

 

 

Text="<%$ Resources:Grid, EmptyListItemText%>"

 

 

Value="-1" />

 

 

</Items>

 

 

</telerik:RadComboBox>

 

 

<span style="color: Red">*</span>

 

 

<asp:CompareValidator

 

 

ID="CompareValidatorFactor"

 

 

ValueToCompare="<%$ Resources:Grid, EmptyListItemText%>"

 

 

Operator="NotEqual"

 

 

ControlToValidate="FactorList"

 

 

ErrorMessage="<%$ Resources:Sustain, ValidationText_MandatoryField%>"

 

 

runat="server"/>

 

 

</asp:CompareValidator>

 

 

</EditItemTemplate>

 

 

<ItemTemplate>

 

 

<asp:Label

 

 

id="lblFact"

 

 

runat="server"

 

 

Text='<%# Eval("FactorName") %>'>

 

 

</asp:Label>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn >

 

 

 

I am in a bit of a rush to get this done and its really frustrating so any help would be greatly appreciated.

Thanks,

Martin

Veli
Telerik team
 answered on 17 Jun 2009
4 answers
659 views

I am using
Q3 - 2008.3.1125.35

for Rad Upload i need only certain file types
i tried 2 methods
1) 

string

 

[] allowedFileExtensions = new string[2] { ".zip", ".doc" };

 

RadUpload1.AllowedFileExtensions = allowedFileExtensions;

 

 
2)

<

 

telerik:RadUpload ID="RadUpload1" runat="server" AllowedFileExtensions=".zip,.doc">

 

 

 

</telerik:RadUpload>

still not working, it is still showing the default one.
Please help

 

 

Atanas Korchev
Telerik team
 answered on 17 Jun 2009
1 answer
62 views
Hi,

I have set the option for multilanguage spell checking in RadSpell control. I am getting German and french in the dropdown. However, even if i select German or French in Dropdown and click on spell check it alwys shows English dictionary. Please let me know why this is happenning and what to do. Please do reply ASAP.

Thanks in advance.
Kripa
Rumen
Telerik team
 answered on 17 Jun 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?