Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
191 views
When using a skin like WebBlue, setting the GridLines property does nothing to display the column dividers in the header. How do I make it some there is a visible divider for a user to grab, rather than just relying on them waiting for the cursor to change shape?

--
Stuart
Stuart Hemming
Top achievements
Rank 2
 answered on 17 Sep 2009
1 answer
126 views

In this thread I asked about displaying gridlines when using skins.

Dimo posted an answer that also included information about the almost obsolete GridLines attribute of the RadGrid.

Can I suggest that Dimo's suggestion, or a variant of it, is included in the docs for other users as it is both generic and generally relevant, especially given the rather obscure and outdated css mechnism that the GridLines attribute relies on?

--
Stuart

Iana Tsolova
Telerik team
 answered on 17 Sep 2009
7 answers
155 views
Hi,

I have a treeview loading dynamically from a web service which is all working fine. I have enabled server side drag n drop with a AjaxManager linked to the treeview.

It all works fine, but if you drag a node to a currently collapsed node, it will show the new node just dragged to it (as if it is expanded) but wont show the existing nodes until you manually click on it (where it loads from the webservice) Once it has done the load from the webservice it will then have a duplicate node of the one you have just added.

This issue sort of makes sences as in the drag n drop function it is adding the node from the serverside and then when the node is clicked it loads all the nodes from the database which will included the node that has just been moved - so will result in a duplicate.
private void PerformDragAndDrop(RadTreeViewDropPosition dropPosition, RadTreeNode sourceNode, 
         RadTreeNode destNode) 
        { 
            if (sourceNode.Equals(destNode) || sourceNode.IsAncestorOf(destNode))             
                return
             
            sourceNode.Owner.Nodes.Remove(sourceNode); 
             
            int iSourceNodeParentId = -1; 
            int iSourceNodeId = Convert.ToInt32(sourceNode.Value); 
            int iDestinationNodeId = Convert.ToInt32(destNode.Value); 
            if (sourceNode.ParentNode != null
                iSourceNodeParentId = Convert.ToInt32(sourceNode.ParentNode.Value); 
            else 
                iSourceNodeParentId = -1; 
 
            int iGroupViewId = Convert.ToInt32(sourceNode.Attributes["GROUPVIEWID"]); 
             
            WebSession webSess = (WebSession)Session["WebSession"]; 
 
            switch (dropPosition) 
            { 
                case RadTreeViewDropPosition.Over: 
                    // child 
                    if (!sourceNode.IsAncestorOf(destNode)) 
                    { 
                        destNode.Nodes.Add(sourceNode); 
                        // update db                         
                        webSess.MasterSystem.GroupsSystem.MoveNode(sourceNode.Value, destNode.Value); 
                    } 
                    break
 
                case RadTreeViewDropPosition.Above: 
                    // sibling - above                     
                    destNode.InsertBefore(sourceNode); 
                    // update db                         
                    webSess.MasterSystem.GroupsSystem.MoveNodeOrder(iSourceNodeId, iSourceNodeParentId, iGroupViewId, ConfigurationConsts.NodeOrderDirection.nodUp); 
                    break
 
                case RadTreeViewDropPosition.Below: 
                    // sibling - below 
                    destNode.InsertAfter(sourceNode); 
                    // update db                         
                    webSess.MasterSystem.GroupsSystem.MoveNodeOrder(iSourceNodeId, iSourceNodeParentId, iGroupViewId, ConfigurationConsts.NodeOrderDirection.nodDown); 
                    break
            }             
        } 

is there anyway rather than adding the node in this function - to just cause a reload from the webservice of the parent node where the node has just been dragged to - so instead of adding the node in manually - it can just load the information from the webservice.

Unless theres something else i should be doing?

thanks
Toby

Toby
Top achievements
Rank 1
 answered on 17 Sep 2009
3 answers
125 views
hi,
im creating my raddocks and everything else server side, which is working fine apart from one thing...

i'd like to be able to cancel a dock move in it's 'DockPositionChanged' event...
any way to do this?

i look at the dock control and it is in the original spot in this event and all page lifecycle (including PreRender)....

cheers,
dan

Pero
Telerik team
 answered on 17 Sep 2009
2 answers
70 views
Hi,

    I have a issue when MultiRowEdit is made true. Actually I have to show all the rows in my grid in edit mode and when i press Add New record i should get the new row , but the insert/Cancel buttons will be invisible. I am facing problem in capturing the controls and their values of adding row . I have to capture those controls on a single Save button click in my page. So that i can add as well as modify edited rows and finally Save alltogether on a single save click. So in my Save button click i should capture the controls of adding row which i am unable to do. I can access the controls in edit mode as 

 

for (int pageitem = 0; pageitem < RgdDomainValues.Items.Count; pageitem++)

 

{


'RgdDomainValues.Items[myitemIndex].Controls[colindex].Controls[UIConstants.ZERO]' .......

}

 Can u please suggest me how can i get the controls of inserting row .

Thanks,
Satya.
satya
Top achievements
Rank 1
 answered on 17 Sep 2009
1 answer
115 views
Hi,

I have implemented a RadGrid in my application, In RadGrid I have a textbox and combobox and I also have a submit button. When user clicks on Submit button a confirmation will be shown to user (through javascript confirmation is being displayed)

On click of Ok I need to focus the textbox inside radgrid.
On Click of Cancel I need to focus Combobox inside radgrid.

How to do the above two things programatically?

Regards,
Medac
Princy
Top achievements
Rank 2
 answered on 17 Sep 2009
3 answers
142 views
Can I add headings with html text & images to the exported document(pdf/excel) at the time of exporting.
Princy
Top achievements
Rank 2
 answered on 17 Sep 2009
1 answer
148 views
Hello,

This is very annoying because I need to have the keys for each row and these values must not be presented to users (Guid, int), and I remark that with the parameters
       <telerik:RadGrid ID="Grid1" runat="server" AllowPaging="True" 
            AllowSorting="True" ShowStatusBar="true"  PageSize="20" GridLines="None" AutoGenerateColumns='false'>  
            <PagerStyle Mode="NextPrevAndNumeric" /> 
            <ClientSettings > 
                    <Resizing AllowColumnResize="True"  ResizeGridOnColumnResize="true" ClipCellContentOnResize="true"/>  
                    <Scrolling AllowScroll="True" ScrollHeight='500px' UseStaticHeaders="True" SaveScrollPosition="True" /> 
                <Selecting AllowRowSelect="True" /> 
            </ClientSettings> 
            <MasterTableView DataKeyNames="Type,CrmId,FieldId" TableLayout="Fixed" > 
            <Columns> ...  
            </Columns> 
            <EditFormSettings> 
              <EditColumn ButtonType="ImageButton" /> 
            </EditFormSettings> 
        </MasterTableView> 
        </telerik:RadGrid> 
  

If I have the CrmId column visible but not diplayed, I am unable to resize columns without having everything moving around, totally crazy ! Even worse, the columns won't get their initial size fixed by header normally.
When I turn display on, everything works normally: colummn are display with correct header size and I am able to resize one column without having the others changed.

very easy to reproduce under FireFox.

Thanks for help.

CS
Martin
Telerik team
 answered on 17 Sep 2009
2 answers
105 views
Hi: I am getting error on the page when datasource in empty for datail table. I am assigning the datasource in

RadGrid2_DetailTableDataBind. 

 I have set HierarchyDefaultExpanded="true" inside MasterTableView. If it is set to false I am not getting the error but I want all complete hierarchy to be expanded by default.

Any help is much appreciated.

Thanks!

 

 

 

 

 

Yavor
Telerik team
 answered on 17 Sep 2009
3 answers
207 views
Hi,

I have a rad grid in which I display some data. There is a coloumn (which is not shown in the grid itself) which I need to use to colour the background of the row. So if it has a certain value then I need to make the background for that record to be red when the data is exported to excel.

I have searched through the forums and I have searched online and seen the demo's. However I woudl appreciate if someone could give me some pointers on this.
Daniel
Telerik team
 answered on 17 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?