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

RadContextMenu and radwindows not working in sharepoint

1 Answer 76 Views
Grid
This is a migrated thread and some comments may be shown as answers.
sankara
Top achievements
Rank 1
sankara asked on 22 Dec 2010, 05:15 AM
Hi everybody,

I need solution very badly and very very quickly,

I used radcontrols in my dotnet application, those are working fine, But i placed same page in sharepoint webpart those are not working.

My senario is, i used RadGrid, RadButtons, RadWindows, RadMenuContext and other controls in my application, those are working fine. after that i had taken this page and placed in my sharepoint site and also taken dll of that page in "bin" folder of my site. Finally i had taken changes of web.config file form telerik site. 

I had taken pageviewerWebpart and placed my page in that webpart, but HierarchicalGrid woriking fine but ContextMenu not comming. And radwinds not working. I got the error "Sys is Undefine".
function RowContextMenu(sender, eventArgs) {
                //alert("RowContextMenu Method");
                var menu;
                var ownerTable = eventArgs.get_tableView();
  
                if (ownerTable.get_name() == "DELIVERYDETAILS") {
                    menu = $find("<%= RadMenu1.ClientID %>");
                }
                else if (ownerTable.get_name() == "TASKS") {
                    menu = $find("<%= RadMenu2.ClientID %>");
                }
  
                document.getElementById("radGridClickedRowIndex").value = eventArgs.get_itemIndexHierarchical();
                document.getElementById("radGridClickedTableId").value = ownerTable._data.UniqueID;
  
                menu.show(eventArgs.get_domEvent());
  
            }
 
The above code i used for ContextMenu.
function OpenWindowAddNewTask() {
            Sys.Application.add_load(addNewTaskWindow);
        }
  
        function addNewTaskWindow() {
            var WSID = document.getElementById("hidWSID").value;
            var url = "AddNewTask.aspx?WS_ID=" + WSID + "&TaskID=0";
            var oWnd = radopen(url, 'RadWindow1');
            Sys.Application.remove_load(addNewTaskWindow);
        }
Above code i used to open radwindow.

Those two are working fine in my dotnet application, but not sharepoint site.

Please give me the quick solution.

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 27 Dec 2010, 01:07 PM
Hello sankara,

Note that you need to install/configure ASP.NET Ajax 1.0 or 3.5 prior to deploying RadControls for ASP.NET Ajax to your SharePoint 2007 site. Can you confirm this is already done? You can check the below articles for more information:

http://www.telerik.com/help/aspnet-ajax/moss-overview.html
http://www.telerik.com/help/aspnet-ajax/moss-install-aspnet-ajax.html
http://www.telerik.com/help/aspnet-ajax/moss-install-aspnet-ajax-35.html

Kind regards,
Iana
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Grid
Asked by
sankara
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or