Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
101 views
Hello, I have a treeview with OnClientNodeChecked event, I'm unable to check or uncheck the checkboxes in the tree. I have another tree which does not have an OnClientNodeChecked event, the checkboxes on this work fine, i'm able to check or uncheck.
Here is my OnClientNodeChecked event. each time I click on the checkbox the event is fired and it does return checked nodes, but i can't see them checked or unchecked on the UI. any help please?
function clientNodeChecked(sender, eventArgs) { 
    var node = eventArgs.get_node(); 
    var tree = node.get_treeView(); 
    var checkedNodes = tree.get_checkedNodes(); 
    var radioNodes; 
    for (var i = 0; i < checkedNodes.length; i++) { 
        if (checkedNodes[i] != node) { 
            if (checkedNodes[i].get_parent() == node.get_parent()) { 
             if(checkedNodes[i].get_parent().get_attributes().getAttribute("radio")=="yes") 
                oldNode = checkedNodes[i]; 
            } 
        } 
    } 
    if (oldNode != null) { 
        if (oldNode.get_parent() == node.get_parent()) { 
            oldNode.set_checked(false); 
            oldNode.set_expanded(false); 
        } 
        } 
        node.set_checked(true); 
        node.set_expanded(true); 
        oldNode = node; 
    } 

thank you,
Phani
Yana
Telerik team
 answered on 13 Jul 2009
7 answers
94 views
Hello all.

I try to use your project silverlight radupload (http://demos.telerik.com/aspnet-ajax/upload/examples/silverlight/SilverlightUpload.zip) and when i launch it, i have a javascript error :

Erreur : $ is not a function
Fichier Source : http://localhost:2510/WebSite5/Default.aspx
Ligne : 107

i think lines of error are :
var $ = $telerik.$;
and
var downloadFile = $("<a class='download-file'></a>")

when the scrit try to make an attribute on "downloadfile" variable the error comes.

How can i do ?

Thank you, best regards.

(I'm french sorry for my bad english)


Ivo
Telerik team
 answered on 13 Jul 2009
1 answer
103 views
Hi,

I tried to set the style of the name column with the following code (I know - now validation and so on -- it's just to the functionality):

RadFileExplorer1.Grid.Columns[0].ItemStyle.CssClass =

"Label";

This works as expected - for the first 11 rows (the style changes the background color)
After this I all rows are without that style (class).

Using IE8 Devel I found that row 12 is:
<tr class="rgNoRecords" style="display: none;">
After this row the "Class" attribute for TD is no longer there.
So row 11 looks like: (that's correct)
<td class="Label" unselectable="on">
And row 13 than:
<td unselectable="on">

Regards

Manfred

Nikolay Rusev
Telerik team
 answered on 13 Jul 2009
3 answers
110 views
Is it possible to have different SharePoint sites use separate ListConfigFile.xml files?

Elizabeth
Stanimir
Telerik team
 answered on 13 Jul 2009
2 answers
164 views
Hi

I have the editor dialogs working on my development machine (Vista IIS7) but when I upload to the server, they are not working.  I get the following error:

Message: Object doesn't support this property or method
Line: 43
Char: 1
Code: 0
URI: http://test.????????.com/ScriptResource.axd?d=DU7g_wQW-tV4QeYVS_gLgXVZWW4ZL1dor0p0F187gm0dTShmzT1Tg48JMZlQmbcDDDHOCI-vFteYTWW3sq2Gop3r18kl4qiXBqPHwa-0sO41&t=633809219809160434

Message: Sys.ArgumentException:  does not derive from Sys.Component.
Parameter name: type
Line: 2825
Char: 9
Code: 0
URI: http://test.??????.com/ScriptResource.axd?d=Wf_E1GAoeCAIHDwB-ecqg0WluaIxXOle_VN2t1P7HMlFD-382Wz2QXMd88hEqBg_0&t=633790231336249871

Here is my web.config.  I can't see what is wrong with it - any ideas.

<?xml version="1.0" encoding="utf-8"?>  
<configuration> 
  <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> 
  <system.web> 
    <pages> 
      <controls> 
        <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>  
      </controls> 
    </pages> 
    <compilation debug="true">  
      <assemblies> 
        <add assembly="Eco.Handles, Version=4.0.0.0, Culture=neutral, PublicKeyToken=46a833be9e90de8c" /> 
        <add assembly="Eco.Interfaces, Version=4.0.0.0, Culture=neutral, PublicKeyToken=46a833be9e90de8c" /> 
        <add assembly="Eco.Persistence, Version=4.0.0.0, Culture=neutral, PublicKeyToken=46a833be9e90de8c" /> 
        <add assembly="Eco.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=46a833be9e90de8c" /> 
        <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>  
      </assemblies> 
    </compilation> 
 
    <customErrors mode="Off">  
    </customErrors> 
 
    <authorization> 
      <allow users="*" /> 
    </authorization> 
 
    <authentication mode="Forms">  
      <forms loginUrl="~/CMS/Login.aspx" name=".ASPXFORMSAUTH" /> 
    </authentication> 
 
    <membership defaultProvider="EcoMembershipProvider" userIsOnlineTimeWindow="15">  
      <providers> 
        <clear /> 
        <add name="EcoMembershipProvider" type="EcoCMS.Providers.EcoMembershipProvider" EcoSpaceTypeName="EcoCMS.EcoCMSEcoSpace" enablePasswordRetrieval="true" enablePasswordReset="true" requiresQuestionAndAnswer="true" requiresUniqueEmail="true" passwordFormat="Clear" /> 
      </providers> 
    </membership> 
 
    <roleManager cacheRolesInCookie="true" cookieName="MyRoles" cookiePath="/" cookieProtection="None" cookieRequireSSL="false " cookieSlidingExpiration="true" cookieTimeout="30" createPersistentCookie="true" defaultProvider="EcoRoleProvider" domain="test.com" enabled="true" maxCachedResults="100">  
      <providers> 
        <clear /> 
        <add name="EcoRoleProvider" type="EcoCMS.Providers.EcoRoleProvider" EcoSpaceTypeName="EcoCMS.EcoCMSEcoSpace" /> 
      </providers> 
    </roleManager> 
 
    <profile defaultProvider="EcoProfileProvider">  
      <properties> 
      </properties> 
      <providers> 
        <clear /> 
        <add name="EcoProfileProvider" type="EcoCMS.Providers.EcoProfileProvider" EcoSpaceTypeName="EcoCMS.EcoCMSEcoSpace" /> 
      </providers> 
    </profile> 
 
    <trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true" /> 
 
    <sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;user id=sa;password=" cookieless="false" timeout="20" /> 
 
    <globalization requestEncoding="utf-8" responseEncoding="utf-8" /> 
      
    <httpHandlers> 
      <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"/>  
      <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Version=2008.3.1125.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" verb="*" validate="false" /> 
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" /> 
      <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*"/>  
      <add path="Telerik.Web.UI.DialogHandler.axd" type="Telerik.Web.UI.DialogHandler" verb="*" 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="CMSUrlRewriter" type="EcoCMS.Pages.CMSUrlRewriter, EcoCMS.Pages" /> 
    </httpModules> 
      
    <trust level="Full" originUrl="" /> 
  </system.web> 
 
  <location path="CMS">  
    <system.web> 
      <authorization> 
        <deny users="?" /> 
      </authorization> 
    </system.web> 
  </location> 
 
  <appSettings> 
    <add key="Eco.Web.MaxPool" value="0" /> 
    <add key="Eco.Web.MaxAge" value="600" /> 
    <add key="EcoAspProvider.EcoSpaceTypeName" value="EcoCMS.EcoCMSEcoSpace" /> 
  </appSettings> 
 
  <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> 
      <add name="CMSWildCard" path="*.aspx" verb="*" modules="IsapiModule" scriptProcessor="C:\Windows\Microsoft.NET\Framework64\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" requireAccess="None" preCondition="classicMode,runtimeVersionv2.0,bitness64" /> 
      <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" /> 
      <add name="Telerik_Web_UI_SpellCheckHandler_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Version=2008.3.1125.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" /> 
      <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" /> 
      <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_DialogHandler_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.DialogHandler.axd" type="Telerik.Web.UI.DialogHandler" /> 
    </handlers> 
  </system.webServer> 
 
</configuration> 

Any ideas - thoughts.

Thanks

Nick
Nicholas
Top achievements
Rank 1
 answered on 13 Jul 2009
2 answers
81 views

Hi,

I can't seem to export the child records.  I have 3 levels of hierarchical grid.

Here is the code that I'm using:

RadGrid1.ExportSettings.ExportOnlyData = True

 

RadGrid1.ExportSettings.IgnorePaging =

True

 

RadGrid1.ExportSettings.OpenInNewWindow = True

 

 

RadGrid1.ExportSettings.FileName = "Summary_" & Now.Date.ToShortDateString.Replace("/", "")

 

RadGrid1.MasterTableView.HierarchyDefaultExpanded =

True

 

RadGrid1.MasterTableView.ExportToExcel()

I've tried using Rebind()  method as well but that didn't really solve my problem.  I'm only seeing 2 levels only.

Please help!

Tom
Top achievements
Rank 1
 answered on 13 Jul 2009
1 answer
86 views
Hi,

I want to show call tree (caller-callee nodes) in a (self-referencing) grid. The constraint is, child nodes are only fetched from the database when the root node is expanded (by clicking the the exapander of the root node). I could populate the grid statically (when NeedDataSource event is called). Can anyone please describe high level steps to do it dynamically ?



Thanks,
Atul
Veli
Telerik team
 answered on 13 Jul 2009
1 answer
185 views
Hi

I would like to share my column definitions among several different rad grids. I was thinking about using a skin file within the website theme to do this but then I remembered that i want some of the grids to be grouped and not others.

How could i achieve this? These were my thoughts

1) Add the column and grouping settings to the skin and then remove the grouping definitions programatically from the grid that doesnt need grouping. I don't know if this is possible because i know you can't override properties set in the skin file of a theme

2)  define the column definitions in the skin file and add the groupings programmatically to the grids that need to be grouped

3) perhaps i can define the column definitions in the skin file and add the groupings declaratively to the grids that need to be grouped. Not much between 2 and 3 really. Is 3 even possible?

This is all i could think of. I was hoping there might be something better than this!

many thanks
Veli
Telerik team
 answered on 13 Jul 2009
0 answers
110 views
Hello,
I am saving recurrence rule in the database in recurrence field ,  I am able to retrieving  appointments from the database by reading the recurrence rule and temporally  putting those records in  session variable . but  how to edit and delete  particular appointment   in recurrence series ?

Regards
Samir
Samir Patel
Top achievements
Rank 1
 asked on 13 Jul 2009
1 answer
122 views
We are having the null date issue with the RAD Date Picker I have read about on the forums, the example you guys have at this link "http://demos.telerik.com/aspnet-ajax/calendar/examples/datepicker/databinding/defaultcs.aspx" shows a solution for a DataTable as the source, we are using a SqlDataSource for ours can you explain how I would use this with a SqlDataSource since it doesn't have a rows property?

Protected Sub RadGrid1_UpdateCommand(ByVal source As Object, ByVal e As UI.GridCommandEventArgs) Handles RadGrid1.UpdateCommand 
        Dim picker As RadDatePicker = CType(e.Item.FindControl("picker1"), RadDatePicker) 
        Dim newDate As Object = picker.DbSelectedDate 
 
        DataSource1.Rows(e.Item.DataSetIndex)("Dates") = IIf(newDate Is Nothing, DBNull.Value, newDate) 
    End Sub 


Thanks!
Sam
Veli
Telerik team
 answered on 13 Jul 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?