This is a migrated thread and some comments may be shown as answers.

[Solved] Adding Items to Radpanel

3 Answers 128 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Troy Stone
Top achievements
Rank 1
Troy Stone asked on 13 Feb 2010, 04:26 AM


Hi all,

I was attempting to add an additional item to a radpanel dropdown using this method.  After getting a Telerik not define javascript error, I found docs relating to Add/Remove RadControls to the Global Assembly Cache - indeed it references the Telerik.Web.UI. assembly which I should be able to find in a bin folder - but it is not there.  There are plenty of Telerik references in my solution, but they are there to support what is going on, not this thing I want to do. 

Do I have a different version (not sure how to determine this) than what would be appropriate with this method? 

Do I need to find which developer committed the assemblies to my solution and get the Telerik.Web.UI one?

All the methods and docs in the Telerik site seem reasonable and straight forward, I am guessing I just need to either install locally or get the dll from the other developer and add it to my solution.

Can someone help me get started?

Thanks!

Troy


function AddNewItem()
{   
 var panelbar = $find("<%= RadPanelBar1.ClientID %>");
 var panelItem
= new Telerik.Web.UI.RadPanelItem();
 panelItem.set_text(
"New Item");
 panelbar.trackChanges();
 panelbar.get_items().add(panelItem);
 panelbar.commitChanges();        
}

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 18 Feb 2010, 11:45 AM
Hi Troy,

The client API which you have used has been around for quite a while now so I doubt it is a version problem. Also, we do not employ any signing mechanisms for our assemblies which makes them useable by any developer.

In the most common cases you need to copy the Telerik.Web.UI assembly to the bin of your web site or add reference to it if you have a web application and make sure you register the assembly in the page:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
  
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

Additionally, I recommend you review the following help topics:

Adding RadControls for ASP.NET AJAX to an existing application

Using the HOTFIX (DLLs only)    

Let us know if you need further assistance.


Greetings,
Peter
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Troy Stone
Top achievements
Rank 1
answered on 18 Feb 2010, 06:59 PM
Thanks very much for the response.  Previous to your response, I added the assembly to the GAC, added it as a reference, and successfully registered it - all issues relating to those things had already been resolved.   I still have one remaining problem, which is a javascript error message on my page "Telerik is not defined", relating to this line  var panelItem = new Telerik.Web.UI.RadPanelItem();

Can't get past this problem, it seems. 

Any help appreciated immensely. 

Kind regards,  and thanks again,

Troy

0
Peter
Telerik team
answered on 23 Feb 2010, 09:31 AM
Hello Troy,

Probably a stand alone demo of the Client-side API demo could be helpful. Please, download the attached sample and use it for reference.

Let us if you need further help.

All the best,
Peter
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
General Discussions
Asked by
Troy Stone
Top achievements
Rank 1
Answers by
Peter
Telerik team
Troy Stone
Top achievements
Rank 1
Share this question
or