Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
264 views
Hi, !'m building a web app that contains a Prometheus TreeView with partial loading threw ServerSideCallback.
The tree view's data source can be changed by the user threw a dropdown. The Treeview's datasource and DataBinding is done in the OnPreRender event so that the newly selected value in the dropdown are cought (so that we don't get PostBack problem returning the earlier selected value).

The TreeView control works fine the first time the page is loaded, but when the user selects a new value ( = Datasource ) in the drop down, trigging a Postback I get this error :
 
Sys.InvalidOperationException: A control is already associated with the element.
http://localhost/ScriptResource.axd?d=I_sV7_5aqsHUuZz1dlHW-RqZsi4HVpivLZbDA9G0_dLCsiXBM93DwJPASsxTuNt_QVQWDeUc-OuHZjNgQ_3i5s507ruArCU5OS77T0Ea8jM1&t=633401439743849103
Line 7278
if (typeof(element.control) != 'undefined') throw Error.invalidOperation(Sys.Res.controlAlreadyDefined);


This worked fine with the old version of the TreeView. It seems that there are some conflicts when the page is PostBack and the ScriptManager doesn't clean the control cache or something. It should be Dissposed by the AJAX.NET framework.

I've tried clearing the ScriptManagers control collection in the OnInit and PreRender events but it didn't help.

The error dissapears when I set  EnableViewState="false" for the TreeView but then I loose all references so I can't load the child nodes and so on.

The code for loading the first nodes are

Protected

Overrides Sub OnPreRender(ByVal e As
LoadNodes()
MyBase.OnPreRender(e)
End Sub


Renders the nodes at the top level

Private

Sub LoadNodes()
RadTreeView.Nodes.Clear()
RadTreeView.ContextMenus.Add(GetContextMenues())
RadTreeView.DragAndDrop = True
For Each dr As DataRow In MigEl.DAL.Dimention.GetSingleTreeLevel(SelectedDimention(), 1, Nothing, GetSelectHierarcy()).Rows
Dim node As RadTreeNode = New RadTreeNode
node.Value = dr("Id").ToString()
node.Text = dr(
"Description").ToString()
node.Attributes.Add(
"RkId", dr("RkId").ToString())
node.ExpandMode = TreeNodeExpandMode.ServerSideCallBack
node.ContextMenuID =
"MemberMenu"
RadTreeView.Nodes.Add(node)
Next
RadTreeView.DataBind()
End Sub


'''

<summary>
''' Handles the NodeExpand event of the RadTreeView control.
''' </summary>
''' <param name="o">The source of the event.</param>
''' <param name="e">The <see cref="Telerik.WebControls.RadTreeNodeEventArgs" /> instance containing the event data.</param>

Protected Sub RadTreeView_NodeExpand(ByVal o As Object, ByVal e As RadTreeNodeEventArgs) Handles RadTreeView.NodeExpand

Dim level As Integer = If(e.Node Is Nothing, 0, e.Node.Level)
For Each dr As DataRow In MigEl.DAL.Dimention.GetSingleTreeLevel(SelectedDimention(), level + 2, e.Node.Value, GetSelectHierarcy()).Rows
Dim node As RadTreeNode = New RadTreeNode
node.Value = dr("Id").ToString()
node.Text = dr(
"Description").ToString()
node.Attributes.Add(
"RkId", dr("RkId").ToString())
node.ExpandMode = TreeNodeExpandMode.ServerSideCallBack
node.ContextMenuID =
"MemberMenu"
e.Node.Nodes.Add(node)
Next

End Sub

Simon
Telerik team
 answered on 18 Jul 2008
1 answer
128 views
Getting 'The command spellcheck not implemented'. The dictionarys have been put in the App_Code/RadSpell directory and the config file has been updated with the SpellCheck handler.

<

add path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Version=2008.1.619.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4"

validate="false" />

Is there something else that needs to be set up before spellcheck will work?

Thank you

Jacques

Rumen
Telerik team
 answered on 18 Jul 2008
5 answers
96 views
Hello,

I have installed and enabled the RadEditor feature on both a Moss 2007 Environment w/o SP1 and another environment that has Moss 2007 SP1.  While the MOSS 2007 SP1 installation allows the RadEditor to be the default RTF Editor for the site to edit list items, the MOSS 2007 version w/o SP1 does not allow this.  I followed the installation procedures exactly for both, and I would like to know if SP1 is the supported requirement or if there is another install for the non-SP1 Moss Environments?

Thanks
Rumen
Telerik team
 answered on 18 Jul 2008
4 answers
162 views
I have been building this website for a while now and everything was working properly including the ToolTip

Reciently my HDD crashed and I had to reload my OS... since then, my ToolTip is not aligning as it should.  The code nor the CSS has changed, so I am unsure what is going on. 

Screenshot
Chase Florell
Top achievements
Rank 1
 answered on 18 Jul 2008
2 answers
157 views
Hi, All:

I am trying to use the RadControl for Asp.net Ajax Q1 2008 - 619 version RadChart.  I have:
         "Error loading RadChart image"
I am using VS 2005.

Before today, I was user RadChart from Q1 2008 - 415 version, and my RadCharts were working fine.

Please help.

Stanley Huang
Esperanza Ramos
Top achievements
Rank 1
 answered on 18 Jul 2008
5 answers
137 views
Hi all,

I've some troubles with the r.a.d.chart designer.
When I go down the tree to change e.g. the font-size of the labels, my whole page (HTML code) is changed. Well, I get lots of errors and even somewhere in a <table> there are chart elements flying around...

It occurs when editing via the SeriesCollection designer window.

Anyone else that had dit behaviour?

Daniel
Giuseppe
Telerik team
 answered on 18 Jul 2008
3 answers
219 views
Hi I understand this has been a problem before.

I am using Telerik.Web.UI 2008.1.619.20.

And the ASP.NET AJAX Extensions 1.0 for .NET 2.0.

Most of my pages are fine.

However, there are three pages where this error occurs:
Sys.InvalidOperationException: Handler must be a function. 
Sys$CultureInfo$_getAbbrMonthIndex("")ScriptRe...211899413 (line 5762) 
ScriptResource.axd?d=d5iptTOXMq3rekLMuo5H-_o4gDDVPzzYLEE92e7THUmpaxGPBusaIHO4rLdLU7dm0&t=633510249006508017()()ScriptRe...006508017 (line 793) 
this._upperAbbrMonths = this...s.dateTimeFormat.AbbreviatedMonthNames); 
 
 


 Firebug shows this is where it is called from:
789 Telerik.Web.BoxSide.prototype={Top:0,Right:1,Bottom:2,Left:3}; 
790 Telerik.Web.BoxSide.registerEnum("Telerik.Web.BoxSide",false); 
791 if(Sys.CultureInfo.prototype._getAbbrMonthIndex){ 
792 try{ 
793 Sys.CultureInfo.prototype._getAbbrMonthIndex(""); 
794 } 
795 catch(ex){ 
796 Sys.CultureInfo.prototype._getAbbrMonthIndex=function(_c8){ 
797 if(!this._upperAbbrMonths){ 
798 this._upperAbbrMonths=this._toUpperArray(this.dateTimeFormat.AbbreviatedMonthNames); 
799 } 
 


These three pages dynamically load a User Control. There is no codebehind for the user control as it inherits from a separate assembly I have written.

I have a base page for all pages which adds the scriptmanager and RadAjaxManager.

I have tried RadScriptManager as well as ScriptManager.

I am at a loss to solve this problem.

Please help!

Marty
Martin Sarosi
Top achievements
Rank 2
 answered on 18 Jul 2008
2 answers
108 views
Hi!

Is there a way to change the extension of the Exported excel file of the radgrid programmatically?  

I want to change the extension to .xml to avoid the problem described in:

http://www.telerik.com/help/aspnet/grid/grdexport.html

Is there a way to do it? if i change the extension, am i going to keep the compatibility with previous versions of excel (like 2003)?

Diego
Top achievements
Rank 1
 answered on 18 Jul 2008
3 answers
216 views
The online documentation states that we can add client side event handlers using client side code.   This works great for the onClientBlur and onClientFocus events.  However, I get an error when I try to do the same for the OnClientSelectedIndexChanged event, as well as some of the others.  Does the RadComboBox not support "add_<event name> " methods for all client side events?  If not, which ones does it support?

Here is what my code looks like:
<script> 
function indexChangedHandler()  
{  
    alert("changed");  
}  
 
// I'm doing it this way because the application framework is attaching this event  
// undercertain circumstances and I was trying to see if I could add multiple event  
// handlers using this mechanism  
Sys.Application.add_load(      
function () {  
var combo = $find("RadComboBox1");  
combo.add_onClientSelectedIndexChanged(indexChangedHandler);  
}      
 
);  
</script> 
 
</script> 

Thanks,
Doug Rutledge
Rosi
Telerik team
 answered on 18 Jul 2008
3 answers
142 views
When you delete a recurring appointments, a dialog box pops up asking whether to delete the series or just the individual occurrence.  How do grab which was specified?
Yana
Telerik team
 answered on 18 Jul 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?