Hi, I develop WebPart included RadGrid 2008 Q2. I want to use Drag&Drop in this grid and set next options:
grid.ShowGroupPanel =
true;
grid.ClientSettings.AllowDragToGroup =
true;
I build and deploy WebPart on test machine (VPC for SharePoint developer from Microsoft). It works fine. After I deploy WebPart on my work server (2003 Server SP2 + IE7). Add this WebPart on page. I see that Drag&Drop doesn't work. Mouse cursor doesn't look like as cross and I can't move a column header to group panel. What's a problem in? Thank you.
3 Answers, 1 is accepted
0
Hi Oleg,
I'm afraid that I'm not sure what may be the cause for such behavior from the given details. It will be highly appreciated if you can send us (attached to a formal ticket) a sample project in which this behavior can be reproduce or at least some code snippets and implementation details.
All the best,
Rosen
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
I'm afraid that I'm not sure what may be the cause for such behavior from the given details. It will be highly appreciated if you can send us (attached to a formal ticket) a sample project in which this behavior can be reproduce or at least some code snippets and implementation details.
All the best,
Rosen
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Oleg
Top achievements
Rank 1
answered on 24 Oct 2008, 06:16 AM
No problems. Source code:
using System; |
using System.Collections.Generic; |
using System.Runtime.InteropServices; |
using System.Web.UI; |
using System.Web.UI.WebControls; |
using System.Web.UI.WebControls.WebParts; |
using System.Xml.Serialization; |
using Microsoft.SharePoint; |
using Microsoft.SharePoint.WebControls; |
using Microsoft.SharePoint.WebPartPages; |
using Telerik.Web.UI; |
namespace GridTest |
{ |
[Guid("f2ea030d-5a11-455d-b208-88dd220f0e40")] |
public class GridTest : System.Web.UI.WebControls.WebParts.WebPart |
{ |
private RadGrid grid; |
protected override void OnInit(EventArgs e) |
{ |
base.OnInit(e); |
CheckScriptManager(); |
CheckAjaxManager(); |
grid = new RadGrid(); |
grid.Skin = "Office2007"; |
grid.ShowGroupPanel = true; |
grid.ClientSettings.AllowDragToGroup = true; |
grid.ShowStatusBar = true; |
grid.StatusBarSettings.LoadingText = "Loading..."; |
grid.StatusBarSettings.ReadyText = "Ready"; |
IList<DataItem> list = new List<DataItem>(); |
list.Add(new DataItem(1, "Hello")); |
list.Add(new DataItem(2, ",")); |
list.Add(new DataItem(3, "world")); |
list.Add(new DataItem(4, "!!!")); |
grid.DataSource = list; |
this.Controls.Add(grid); |
RadAjaxPanel ajaxPanel = new RadAjaxPanel(); |
ajaxPanel.ID = "AjaxPanel"; |
this.Controls.Add(ajaxPanel); |
ajaxPanel.Controls.Add(grid); |
} |
protected override void CreateChildControls() |
{ |
base.CreateChildControls(); |
} |
private ScriptManager CheckScriptManager() |
{ |
ScriptManager sm = ScriptManager.GetCurrent(Page); |
if (sm == null) |
{ |
if (Page.Form != null) |
{ |
sm = new ScriptManager(); |
sm.ID = Page.Form.ID + "_ScriptManager"; |
Page.Form.Controls.Add(sm); |
} |
} |
return sm; |
} |
private RadAjaxManager CheckAjaxManager() |
{ |
RadAjaxManager am = RadAjaxManager.GetCurrent(Page); |
if (am == null) |
{ |
if (Page.Form != null) |
{ |
am = new RadAjaxManager(); |
am.ID = Page.Form.ID + "_RadAjaxManager"; |
Page.Form.Controls.Add(am); |
} |
} |
return am; |
} |
} |
} |
0
Hello Oleg,
Unfortunately I'm unable to reproduce the described behavior locally. Are there any javascript errors on the page? Can you please check if the MOSS is configure correctly and has MS AJAX extensions installed?
Regards,
Rosen
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Unfortunately I'm unable to reproduce the described behavior locally. Are there any javascript errors on the page? Can you please check if the MOSS is configure correctly and has MS AJAX extensions installed?
Regards,
Rosen
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.