Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
182 views
Hello,

I'm encountering an exception using RadGrid's NestedViewTemplate feature.
If I set HierarchyDefaultExpanded="true" RadGrid, NestedViewTemplate is rendering correctly but all rows are expanded which is not very interesting. So i leave HierarchyDefaultExpanded to false so rows are initially collapsed when i expand a row following exception is raised

[System.InvalidOperationException: Collection was modified; enumeration operation may not execute.]
System.Web.UI.ControlCollectionEnumerator.MoveNext() +8672514
   Telerik.Web.UI.RadFormDecorator.FindAndDecorateControls(Control parent) +639
   Telerik.Web.UI.RadFormDecorator.FindAndDecorateControls(Control parent) +630
   Telerik.Web.UI.RadFormDecorator.FindAndDecorateControls(Control parent) +630
   Telerik.Web.UI.RadFormDecorator.FindAndDecorateControls(Control parent) +630
   Telerik.Web.UI.RadFormDecorator.FindAndDecorateControls(Control parent) +630
   Telerik.Web.UI.RadFormDecorator.FindAndDecorateControls(Control parent) +630
   Telerik.Web.UI.RadFormDecorator.FindAndDecorateControls(Control parent) +630
   Telerik.Web.UI.RadFormDecorator.FindAndDecorateControls(Control parent) +630
   Telerik.Web.UI.RadFormDecorator.FindAndDecorateControls(Control parent) +630
   Telerik.Web.UI.RadFormDecorator.FindAndDecorateControls(Control parent) +630
   Telerik.Web.UI.RadFormDecorator.FindAndDecorateControls(Control parent) +630
   Telerik.Web.UI.RadFormDecorator.FindAndDecorateControls(Control parent) +630
   Telerik.Web.UI.RadFormDecorator.FindAndDecorateControls(Control parent) +630
   Telerik.Web.UI.RadFormDecorator.DecorateAspNetControls() +68
   Telerik.Web.UI.RadFormDecorator.ControlPreRender() +834
   Telerik.Web.UI.RadWebControl.OnPreRender(EventArgs e) +47
   System.Web.UI.Control.PreRenderRecursiveInternal() +80
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842
 
I have tested a lot of scenarios with no success. RadGrids are both initialized programmatically (ItemCommand, ItemCreated, PreRender, NeedDataSource for NHibernate list).

After testing, exception raise when system tries to render manual columns (GridDateTimeColumn, GridBoundColumn) as  AutoGenerateColumns="False". If i remove manual columns, expand/collapse is working.
Eyup
Telerik team
 answered on 25 Dec 2012
1 answer
705 views
Hi, we're using the FormDecorator and I notice on the front end the dropdownlist renders as a div with spans instead of a traditional html select list.

When I try to use jquery to set the selected value after the control renders it doesn't change. I'm guessing because this is technically not a select list anymore.

Is there any work around to this?
Marin Bratanov
Telerik team
 answered on 25 Dec 2012
8 answers
600 views
I was wondering how to go about hiding several column's in a child of a Hierarchical RadGrid if there is no data found for those columns. It would be quite nice to be able to do the same on the parent as well.

I've had a good search on the forums but can't find a good example to follow..

can anyone suggest a way to do this..

many thanks
Eyup
Telerik team
 answered on 25 Dec 2012
1 answer
80 views
Hi Telerik Team,

I created a RadEditor ( radEditor ) in my webpage. I set :

radEditor.TableLayoutCssFile = myCustimizedTableCssFile;
radEditor.CssFiles.Add ( myCustimizedCssFile );

In the editor iframe, it will automatic load myCustimizedTableCssFile first then load myCustimizedCssFile. Is there have way to switch them?

Thanks,
 
Rumen
Telerik team
 answered on 25 Dec 2012
3 answers
216 views
Deat Telerik-Team

I would be nice to have a property to show or hide the content and title icon.

Regards,
Christian
Marin Bratanov
Telerik team
 answered on 25 Dec 2012
1 answer
131 views
Hey Friends,

   I'm using RadAjaxManager in my asp.net form but not working. Problem is that i have 3 dropdown in my page at page load only want to
enable true first dropdown and rest of dropdown want to enable false and when i select first dropdown the second one want to enable true
and first one enable false and when i select value from the second dropdown third want to enable true and reset of the dropdown enable false. i write code for it also put the ids of dropdown RadAjaxManager and Update Panel but not worked...........any idea about it....


Eyup
Telerik team
 answered on 25 Dec 2012
1 answer
193 views
Hi i  have a raddrig and it has 3 collumns
1.Descr
2.CategoryId (List id,Descr)
3.ModelId. (List id ,Descr)
I want to add a new row but when i select CategoryId from the select list i want to update the modelid,descr on the second
so as to bring the modelids for this category.Is this possible
I have teleriks  ver 2010. secons quorter
Thanks a lot.
Eyup
Telerik team
 answered on 25 Dec 2012
1 answer
83 views

How to get the node click value in server side , client side.

Thanks Advance,
Mohamed.
Eyup
Telerik team
 answered on 25 Dec 2012
1 answer
143 views
As per the Page life cycle in ASP.net, under the Unload event of Page Life cycle all the controls should be disposed. But it's not true when we have used FileStream Objects in the same class. We have to dispose it manually to manage memory.

Query - When using the teleric controls, is it necessary to dispose it manually or during the execution of Unload event, it's object will be disposed?

Query - Teleric control is Managed or Un-Managed?
Vasil
Telerik team
 answered on 25 Dec 2012
2 answers
2.6K+ views
Hello,
I am using telerik controls in my web-application (asp.net, C#).
When I upload published files on server I am getting foll. errors in browser and telerik controls are not working.
Mozilla-
1.  ASP.NET Ajax client-side framework failed to load.
2.  Sys is not defined

Chrome-
1.  Uncaught SyntaxError: Unexpected token < 
2.  Uncaught Error: ASP.NET Ajax client-side framework failed to load.  
3.  Uncaught ReferenceError: Sys is not defined  

Please see attached images for more details.

I have referred foll. site but still its not resolved.
http://www.telerik.com/help/aspnet-ajax/introduction-troubleshooting.html 

Telerik DLL version - 2010.3.1215.35
AjaxControlToolkit.dll  version - 3.0.20820.0
My web.config file -

<?xml version="1.0"?>
<configuration>
  <configSections>
    <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
      <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
        <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
        <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
          <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>
          <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
          <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
          <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
        </sectionGroup>
      </sectionGroup>
    </sectionGroup>
  </configSections>
     
  <appSettings>
  </appSettings>
  <connectionStrings>   
  </connectionStrings>
  <system.web>
    <!--
            Set compilation debug="true" to insert debugging
            symbols into the compiled page. Because this
            affects performance, set this value to true only
            during development.
        -->
    <httpRuntime maxRequestLength="51200" executionTimeout="3600" />
      <compilation debug="true">
          <assemblies>
              <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
              <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
              <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
              <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
 
              <add assembly="System.Runtime.Serialization, Version=3.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
              <add assembly="System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
              <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
              <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
              <add assembly="System.Speech, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
              <add assembly="System.ServiceModel.Web, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
          </assemblies>
      </compilation>
    <!--
            The <authentication> section enables configuration
            of the security authentication mode used by
            ASP.NET to identify an incoming user.
        -->
      <machineKey validationKey="F9D1A2D3E1D3E2F7B3D9F90FF3965ABDAC304902" decryptionKey="F9D1A2D3E1D3E2F7B3D9F90FF3965ABDAC304902F8D923AC" validation="SHA1"></machineKey>
    <authentication mode="Forms">
      <forms name=".SSOAuth" loginUrl="login.aspx" defaultUrl="Redirect.aspx" protection="Validation" timeout="30000"/>
    </authentication>
       
    <customErrors mode="Off"/>
    <membership defaultProvider="MysueMembershipProvider">
      <providers>
        <clear/>
        <add name="MyMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="My_testConnectionString"  minRequiredPasswordLength="3" minRequiredNonalphanumericCharacters="0" requiresQuestionAndAnswer="false" requiresUniqueEmail="false"  passwordFormat="Clear" applicationName="Mysue" maxInvalidPasswordAttempts="2147483647"/>
      </providers>
    </membership>
    <anonymousIdentification enabled="true"/>
    <profile defaultProvider="MysueProfileProvider" enabled="true">
      <providers>
        <clear/>
        <add name="MyProfileProvider" connectionStringName="My_testConnectionString" applicationName="Mysue" type="System.Web.Profile.SqlProfileProvider"/>
      </providers>
      <properties>
        <add name="UserName" type="String"/>
        <add name="UserRole" type="String"/>
        <add name="UserId" type="long"/>
        <add name="UserEmail" type="String"/>
      </properties>
    </profile>
 
    <roleManager enabled="true" cacheRolesInCookie="true" defaultProvider="MysueRoleProvider" cookieName=".ASPXROLES" cookiePath="/" cookieTimeout="30" cookieRequireSSL="false" cookieSlidingExpiration="true" createPersistentCookie="false" cookieProtection="All">
      <providers>
        <clear/>
        <add name="MyRoleProvider" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="Mysue_testConnectionString" applicationName="MyTest"/>
      </providers>
    </roleManager>
      <healthMonitoring enabled="true">
          <eventMappings>
              <clear/>
              <!-- Log ALL error events -->
              <add name="All Errors" type="System.Web.Management.WebBaseErrorEvent" startEventCode="0" endEventCode="2147483647"/>
          </eventMappings>
          <providers>
              <clear/>
              <!-- Provide any customized SqlWebEventProvider information here (such as a different connection string name value -->
              <add connectionStringName="My_testConnectionString" maxEventDetailsLength="1073741823" buffer="false" name="SqlWebEventProvider" type="System.Web.Management.SqlWebEventProvider"/>
          </providers>
          <rules>
              <clear/>
              <add name="All Errors Default" eventName="All Errors" provider="SqlWebEventProvider" profile="Default" minInstances="1" maxLimit="Infinite" minInterval="00:00:00"/>
          </rules>
      </healthMonitoring>
    <!--
            The <customErrors> section enables configuration
            of what to do if/when an unhandled error occurs
            during the execution of a request. Specifically,
            it enables developers to configure html error pages
            to be displayed in place of a error stack trace.
 
        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
            <error statusCode="403" redirect="NoAccess.htm" />
            <error statusCode="404" redirect="FileNotFound.htm" />
        </customErrors>
        -->
      <pages>
          <controls>
              <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>
              <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
              <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
              <add tagPrefix="asp" namespace="System.Web.UI.DataVisualization.Charting" assembly="System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
              <add tagPrefix="telerik" namespace="Telerik.Charting" assembly="Telerik.Web.UI"/>
          </controls>
      </pages>
      <httpHandlers>
          <remove verb="*" path="*.asmx"/>
          <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
          <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
          <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
          <add path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Version=2010.3.1215.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/>
          <add path="ChartImg.axd" verb="GET,HEAD,POST" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
          <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
           
      </httpHandlers>
      <httpModules>
          <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
           
      </httpModules>
  </system.web>
  <system.codedom>
    <compilers>
      <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
        <providerOption name="CompilerVersion" value="v3.5"/>
        <providerOption name="WarnAsError" value="false"/>
      </compiler>
    </compilers>
  </system.codedom>
  <!--
        The system.webServer section is required for running ASP.NET AJAX under Internet
        Information Services 7.0.  It is not necessary for previous version of IIS.
    -->
  <system.webServer>
    <validation validateIntegratedModeConfiguration="false"/>
    <modules>
       
      <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
         
    </modules>
      <handlers>
          <remove name="ChartImage_axd" />
          <remove name="WebServiceHandlerFactory-Integrated" />
          <remove name="ScriptHandlerFactory" />
          <remove name="ScriptHandlerFactoryAppServices" />
          <remove name="ScriptResource" />
          <remove name="Telerik_Web_UI_WebResource_axd" />
          <remove name="ChartImageHandler" />
          <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
          <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
          <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.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=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
          <add name="ChartImageHandler" preCondition="integratedMode" verb="GET,HEAD" path="ChartImg.axd" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
          <add name="ChartImg" verb="*" path="ChartImg.axd"  type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"  />
          <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResourceSession" />
      </handlers>
      <rewrite>
          <rules>
              <rule name="RewriteASPX">
                  <match url="(.*)" />
                  <conditions logicalGrouping="MatchAll">
                      <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                      <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
                  </conditions>
                  <action type="Rewrite" url="login.aspx?id={R:0}" />
              </rule>
          </rules>
      </rewrite>
  </system.webServer>
  <location path="Admin">
    <system.web>
      <authorization>
        <allow roles="Admin"/>
        <deny users="*"/>
      </authorization>
    </system.web>
  </location>
  <location path="Member">
    <system.web>
      <authorization>
        <allow roles="Member"/>
        <deny users="*"/>
      </authorization>
    </system.web>
  </location>
    <location path="Telerik.Web.UI.WebResource.axd">
        <system.web>
            <authorization>
                <allow users="*"/>
            </authorization>
        </system.web>
    </location>
    <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
        <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
        <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
    <system.web.extensions>
        <scripting>
            <webServices>
                 
            </webServices>
              
        </scripting>
    </system.web.extensions>
</configuration>


Telerik DLL version - 2010.3.1215.35
AjaxControlToolkit.dll  version - 3.0.20820.0 

Please see attached images.

Please let me know if there is any error in config file.
Thanks


Vasil
Telerik team
 answered on 25 Dec 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?