Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
82 views
Hi all:

I am working with the grid drag-and-drop example:

http://demos.telerik.com/aspnet-ajax/grid/examples/programming/draganddrop/defaultcs.aspx

and am wondering if anyone has an example of also enabling column sorting with the drag-and-drop? The sorting example loads the data via a datatable, but the drag-and-drop example uses ILists and sessions....not sure how to combine the 2...

Thanks.

John.
Iana Tsolova
Telerik team
 answered on 20 Aug 2009
5 answers
175 views
Hi,

I have RadPanelBar with multi check box's in it, i need to read the checkbox status when user click a button.,

Please help.

Omar
Paul
Telerik team
 answered on 20 Aug 2009
3 answers
259 views
Hi,

Is it possible to apply security trimming to the RadMenu in ASP.NET MVC?

Thanks,
Nick

Paul
Telerik team
 answered on 20 Aug 2009
3 answers
121 views
I am currently using serveral RadDock objects inside RadDockZones, and several RadDockZone objects inside a only one RadDockLayout.  I'm also using a gmail-like loading indicator that is positioned in the top right corner of the page.  The problem i am facing is that when the user scrolls down the page and causes some action that shows the loading indicator, the structure of the RadDock overlaps the indicator.  I have read several posts over the internet, but i have not found a solution.  I wish to know if there's some kind of property or trick on the Rad Controls that can help me on this.  Thanks in advance.
Wveimar
Top achievements
Rank 1
 answered on 20 Aug 2009
1 answer
109 views
Hi everybody

I'm trying export selected items from grid without group titles, but I have not success

This is my code:

if (this.rgFacturas.SelectedItems.Count > 0) 
            { 
                GridGroupByExpressionCollection Coll = this.rgFacturas.MasterTableView.GroupByExpressions; 
                this.rgFacturas.MasterTableView.GroupByExpressions.Clear(); 
                                
 
                foreach (GridDataItem item in this.rgFacturas.MasterTableView.Items) 
                { 
                    item.Visible = item.Selected; 
                } 
 
                 
                this.rgFacturas.Rebind(); 
                this.rgFacturas.ExportSettings.ExportOnlyData = true; 
                this.rgFacturas.ExportSettings.OpenInNewWindow = true; 
                this.rgFacturas.MasterTableView.ExportToExcel(); 
 
                this.rgFacturas.MasterTableView.GroupByExpressions.AddRange(Coll); 
                this.rgFacturas.Rebind(); 
 
            } 


The first Rebind() is "clearing"  the selected items and the selected items are unselected, when ExportToExcel() is calling, all items are exported.

I need help, please
Some idea?

Thanks.



Mira
Telerik team
 answered on 20 Aug 2009
4 answers
156 views
Hi,

It seems that i ran into a bug in de scheduler control.
We are using the schedulat control with webservices and with the advanced form.

When i create a new recurring appointment the image which indicate that the appointment is recurring is not visible on the first appointment in the recurrence serie. This also means that when i double click the first appointment to edit, i won't get the message that i'm editing a recurring appointment. The same happens when i'm deleting the first appointment.

Please let me know if this is a bug and if you can fix it?
Peter
Telerik team
 answered on 20 Aug 2009
1 answer
128 views
I have two RadTreeview and was wondering after drag drop one node to the other can I still keep that nope available after the drop.  Every time it gets removed even if I dont add .Owner.Nodes.Remove.  

Also, is there a way to validate (customvalidator) to make sure that the node getting brought over is not the same as another node that is already in the node list?



 
Veselin Vasilev
Telerik team
 answered on 20 Aug 2009
10 answers
179 views
Hi,

I have a Treeview which is loading from a webserver, which works perfectly. I currently have it connected to a AJAX manager. For renameing of nodes it works perfectly.

For drag and drop I have connected the relevant events up to update my database, which works fine. I can only get the treeview to update by doing a full page refresh.

I have used the methods on the server as described in this thread ( http://www.telerik.com/community/forums/aspnet-ajax/treeview/radtreeview-drag-drop-serverside.aspx ) but after moving a node - it does not reflect its new position until i force a full page refresh.

here is the markup for the treeview

<telerik:RadTreeView runat="server" ID="Treeview" AllowNodeEditing="True"  
                            EnableDragAndDrop="True" EnableDragAndDropBetweenNodes="True" OnClientNodeClicking="onNodeClicking" 
                            onnodedrop="Treeview_NodeDrop" onnodeedit="Treeview_NodeEdit"  
                    CheckBoxes="False">                      
                            <WebServiceSettings Path="WebServices/GroupsDataSource.asmx" Method="GetGroupNodes" />                         
                        </telerik:RadTreeView>          

page load

protected void Page_Load(object sender, EventArgs e) 
        { 
            if (Request.Browser.Browser == "Firefox") 
                Response.Cache.SetNoStore(); 
 
            if ((bool)Session["LoggedIn"] == false) 
                Response.Redirect("Default.aspx?referer=" + Request.FilePath); 
             
            if (!IsPostBack) 
            { 
                LoadRootNodes(Treeview, TreeNodeExpandMode.WebService); 
            } 
             
        } 
 
        private void LoadRootNodes(RadTreeView treeView, TreeNodeExpandMode expandMode) 
        { 
            WebSession webSess = (WebSession)Session["WebSession"]; 
 
            string qry = string.Format(DB.SQLSelectHeirachyMoveNull, ConfigurationConsts.ExtensionGroupViewId); 
            DataTable dtGroups = webSess.DataSource.RetrieveDataTable(qry); 
 
            foreach (DataRow aRow in dtGroups.Rows) 
            { 
                RadTreeNode newNode = new RadTreeNode(); 
                newNode.Text = aRow["NAME"].ToString(); 
                newNode.Value = aRow["ID"].ToString(); 
                newNode.Attributes.Add("GROUPVIEWID", Convert.ToString(aRow["GROUPVIEWID"])); 
                newNode.ExpandMode = TreeNodeExpandMode.WebService; 
                treeView.Nodes.Add(newNode); 
            }                             
        } 

 and the drag drop functions

        protected void Treeview_NodeDrop(object sender, RadTreeNodeDragDropEventArgs e) 
        { 
            WebSession webSess = (WebSession)Session["WebSession"]; 
            webSess.MasterSystem.GroupsSystem.MoveNode(e.SourceDragNode.Value,e.DestDragNode.Value); 
           
            RadTreeNode sourceNode = e.SourceDragNode; 
            RadTreeNode destNode = e.DestDragNode; 
            RadTreeViewDropPosition dropPosition = e.DropPosition; 
 
            if (destNode != null) //drag&drop is performed between trees 
            { 
 
                if (sourceNode.TreeView.SelectedNodes.Count <= 1) 
                { 
                    PerformDragAndDrop(dropPosition, sourceNode, destNode); 
                } 
                else if (sourceNode.TreeView.SelectedNodes.Count > 1) 
                { 
                    foreach (RadTreeNode node in sourceNode.TreeView.SelectedNodes) 
                    { 
                        PerformDragAndDrop(dropPosition, node, destNode); 
                    } 
                } 
 
                destNode.Expanded = true; 
 
            } 
             
             
        } 
 
        private void PerformDragAndDrop(RadTreeViewDropPosition dropPosition, RadTreeNode sourceNode, 
         RadTreeNode destNode) 
        { 
            if (sourceNode.Equals(destNode) || sourceNode.IsAncestorOf(destNode)) 
            { 
                return; 
            } 
            sourceNode.Owner.Nodes.Remove(sourceNode); 
 
            switch (dropPosition) 
            { 
                case RadTreeViewDropPosition.Over: 
                    // child 
                    if (!sourceNode.IsAncestorOf(destNode)) 
                    { 
                        destNode.Nodes.Add(sourceNode); 
                         
                    } 
                    break; 
 
                case RadTreeViewDropPosition.Above: 
                    // sibling - above                     
                    destNode.InsertBefore(sourceNode); 
                    break; 
 
                case RadTreeViewDropPosition.Below: 
                    // sibling - below 
                    destNode.InsertAfter(sourceNode); 
                    break; 
            }             
        } 
 

any help would be appreciated.
Toby
Top achievements
Rank 1
 answered on 20 Aug 2009
1 answer
212 views
I am unable to set focus to a control in RadPanelItem defined in a user  ascx control.

Example is given below :

Telerik.Web.UI.

RadPanelBar RP = (Telerik.Web.UI.RadPanelBar)Usercontrol.FindControl("Criteria");

 

Telerik.Web.UI.

RadPanelItem RI = (Telerik.Web.UI.RadPanelItem)RP.FindItemByValue("Name");

 

 

 

RadAjaxManager.FocusControl(RI.Items[0].FindControl(

"tb1"));

 

 

 

 

 

 

Princy
Top achievements
Rank 2
 answered on 20 Aug 2009
7 answers
146 views
How do I get rid of the extra pixels or padding at the bottom left and right corner?



Thanks,
Khanh
Svetlina Anati
Telerik team
 answered on 20 Aug 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?