Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
74 views
When exporting with the RadGrid to excel, is it possible to retain the sort of the RadGrid in excel when exporting data only?
Daniel
Telerik team
 answered on 28 May 2009
2 answers
80 views
Hello, I have a grid bound to an xml file and I am using a GridEditCommandColumn to edit the record. But when I click this button, I am getting a js error "Problem extracting DataKeyValues from DataSource" and I do not see the edit form. The edit works for the MasterTableView, but not on the DetailTable.

Below is my grid followed by how I populate the second level details table:

<telerik:RadGrid ID="RadGrid1" DataSourceID="XmlDataSource1" runat="server" ShowStatusBar="true" 
            AutoGenerateColumns="False" PageSize="3" AllowSorting="True" AllowMultiRowSelection="False" 
            AllowPaging="True" GridLines="None" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" 
            AllowAutomaticUpdates="True" OnItemUpdated="RadGrid1_ItemUpdated" 
            OnInsertCommand="RadGrid1_InsertCommand" OnItemCommand="RadGrid1_ItemCommand"
            <PagerStyle Mode="NumericPages"></PagerStyle> 
            <MasterTableView DataSourceID="XmlDataSource1" DataKeyNames="ServerID" AllowMultiColumnSorting="True" 
                Width="100%" CommandItemDisplay="Top" Name="Servers" AutoGenerateColumns="false"
                <DetailTables> 
                    <telerik:GridTableView DataKeyNames="SystemID" DataSourceID="XmlDataSource2" Width="100%" 
                        runat="server"  CommandItemDisplay="Top" Name="Systems" AutoGenerateColumns="false"
                         
                        <Columns> 
                            <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn2"
                                <HeaderStyle Width="20px" /> 
                                <ItemStyle CssClass="MyImageButton" /> 
                            </telerik:GridEditCommandColumn> 
                            
                            <telerik:GridBoundColumn SortExpression="LoginUrl" HeaderText="Login URL" HeaderButtonType="TextButton" 
                                DataField="LoginUrl" UniqueName="LoginUrl"
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn SortExpression="LogoutUrl" HeaderText="LogoutUrl" 
                                HeaderButtonType="TextButton" DataField="LogoutUrl" UniqueName="LogoutUrl"
                            </telerik:GridBoundColumn> 
                             
                        </Columns> 
                        
                    </telerik:GridTableView> 
                </DetailTables> 
                <Columns> 
                    <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn"
                        <HeaderStyle Width="20px" /> 
                        <ItemStyle CssClass="MyImageButton" /> 
                    </telerik:GridEditCommandColumn> 
                    <telerik:GridBoundColumn SortExpression="ServerID" HeaderText="ServerID" HeaderButtonType="TextButton" 
                        DataField="ServerID" UniqueName="ServerID" ReadOnly="true"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn SortExpression="Name" HeaderText="Name" HeaderButtonType="TextButton" 
                        DataField="Name" UniqueName="Name"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn SortExpression="Group" HeaderText="Group" HeaderButtonType="TextButton" 
                        DataField="Group" UniqueName="Group"
                    </telerik:GridBoundColumn> 
                    
                </Columns> 
                
            </MasterTableView> 
        </telerik:RadGrid> 

how i populate the second level grid:

protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e) 
        { 
            if (e.CommandName == RadGrid.ExpandCollapseCommandName ) 
            { 
                XmlDataSource2.XPath = String.Format("Servers/Server[@ServerID='{0}']/System", ((GridDataItem)e.Item).GetDataKeyValue("ServerID")); 
            } 
        } 

Any help would be appreciated.
Thanks





marcos
Top achievements
Rank 1
 answered on 28 May 2009
6 answers
174 views
This seems like the simplest thing and maybe I am missing something.

My Rotator is in slideshow mode and it is not looping and I see no propery to set for loop or repeat.

I had an older version of this component on another site and it looped automatically.

My rotator is in a user control embedded in a raddockzone, if that makes any differene
Fiko
Telerik team
 answered on 28 May 2009
1 answer
78 views
I use Radcontrols Q3 2008, On the grid if a field value is 35.60, but on excel export, it becomes 35.6 instead of 35.60. Is there anyway I can keep this field value 35.6 still?
Daniel
Telerik team
 answered on 28 May 2009
1 answer
129 views
I can not get any controls to appear in a RadAjaxManager GUI.  I have used this control for over a year now without a problem.  I have just upgraded my controls to May 27th release

I have put together a very simple example.  If I try to use the ajax manager, the button on the content page does not appear in the GUI.

MASTER PAGE:

<%

@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site1.master.cs" Inherits="AMTest35.Site1" %>

 

<%

@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

 

<!

 

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

 

<

 

html xmlns="http://www.w3.org/1999/xhtml" >

 

<

 

head runat="server">

 

 

<title>Untitled Page</title>

 

 

<asp:ContentPlaceHolder ID="head" runat="server">

 

 

</asp:ContentPlaceHolder>

 

</

 

head>

 

<

 

body>

 

 

<form id="form1" runat="server">

 

 

<telerik:RadScriptManager ID="RadScriptManager1" Runat="server">

 

 

</telerik:RadScriptManager>

 

 

<div>

 

 

<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">

 

 

 

</asp:ContentPlaceHolder>

 

 

</div>

 

 

</form>

 

</

 

body>

 

</

 

html>


CONTENT PAGE

 

<%

@ Page Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="AMTest35.WebForm1" Title="Untitled Page" %>

 

<%

@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

 

 

 

<

 

asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

 

</

 

asp:Content>

 

<

 

asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

 

 

 

 

 

<asp:Button ID="Button1" runat="server" Text="Button" />

 

<

 

br />

 

 

 

 

 

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

 

 

 

 

 

</telerik:RadAjaxManager>

 

</

 

asp:Content>


Any help would be greatly appreciated.

Matthew..

 

Iana Tsolova
Telerik team
 answered on 28 May 2009
11 answers
396 views
Hi,

I am adding a crapload of items to a RadMenu from javascript.

A few issues show up, and kill my efforts.

Consider the following piece of javascript, from your NavigationScripts.js:

_createChildListElement: function() 
    throw Error.notImplemeneted(); 
}, 
_createDomElement: function() 
    throw Error.notImplemented(); 
}, 

Issue 1
Why are both of these functions not implemented? (Mind you, they have not been implemented, as far as i can go back, since the Q1 2008 release.)

Issue 2
_createChildListElement, unimplemented as it is, has a typo in it, throwing a nice 'Element does not support...' error message instead of the intended not implemented message. Slight detail being that in the very next function, it is not misspelled. This too has been the case since at least Q1 2008.

That about wraps up the issues within the Telerik code.

My problem is as follows, I am adding a load of menu items, from client-side (and only client-side), using a for-next loop which retrieves its information from an already defined menu structure in a RadTreeView.

function MenuEditorUpdatePreviewMenu() 
    // Get the preview menu. 
    var editorTestMenu = $find($telerik.$("[ID$='MenuEditorTestRadMenu']")[0].id); 
 
    // Get the treeview 
    var editorTreeView = $find($telerik.$("[ID$='MenuEditorRadTreeView']")[0].id); 
 
    // Get all nodes from the tree. 
    var nodes = editorTreeView.get_allNodes(); 
 
    // Start tracking changes to the menu. 
    editorTestMenu.trackChanges(); 
     
    // Iterate through all the nodes. 
    for (var index = 0; index < nodes.length; index++) 
    { 
        // Determine if it is a root node. 
bo         if (nodes[index].get_level() == 0)
mb         { 
bo
            menuItem = new Telerik.Web.UI.RadMenuItem(); 
mb  
bo             menuItem.set_text(nodes[index].get_text()); 
mb             menuItem.set_value(nodes[index].get_value()); 
bo             menuItem.set_navigateUrl(nodes[index].get_navigateUrl()); 
mb  
bo             editorTestMenu.get_items().add(menuItem); 
mb         } 
    } 
 
    // Commit the changes to the menu. 
    editorTestMenu.commitChanges(); 

The above code bombs out with that 'not implemented' for the _createChildListElement function in NavigateScripts.js (well, it shows the 'Element does not support...' error message due to the typo, which confused me for about three seconds or so).

I know it is not the for-next or the if-then statement, even if i simply try to insert a single item (eg, without the for and if code around it), it bombs out. I went as far as removing everything except getting the menu control, trackchanges, adding a single RadMenuItem with a text of "TEST" and, commitchanges, even that bombs out with the same error. I even directly copied code from your demos (where it works fine) to do this adding of items, with, you guessed it, the same error.

Both the RadMenu and the RadTreeView controls are found correctly as well. The get_allNodes() does indeed return all the nodes in the RadTreeView.

The issue originates from the following Telerik javascript (NavigationScripts.js):

_notifyPropertyChanged: function(_72, _73)  What's with the empty function?
 
},   
   
_childInserting: function(_74, _75, _76)  Ditto.
 
},   
   
_childInserted: function(_77, _78, _79)   
 
    if(!_79._childControlsCreated)   
    {   
        return  
    }   
   
    if(!_79.get_element())   
    {   
        return  
    }   
   
    var _7a = _78._createDomElement();   
   
    var _7b = _79.get_childListElement();  This always returns 'null'.
   
    if(!_7b)  So, this evaluates to 'false' per default.
    {   
        _7b = _79._createChildListElement();  Causing it to call the function that is not implemented.
    }   
   
    var _7c = _78.get_nextSibling();   
   
    var _7d = _7c ? _7c.get_element() : null  
   
    _79.get_childListElement().insertBefore(_7a, _7d);   
   
    if(!_78.get_element())   
    {   
        _78.set_element(_7a);   
        _78._initializeRenderedItem();   
    }   
    else   
    {   
        _78.set_element(_7a);   
    }   
},   

I should note, ALL of the other code works 100%, just adding information from tree nodes (text, value, url) to a new RadMenuItem and adding the item to a RadMenu bombs out in this manner (heck, everything i try to add to that RadMenu bombs out in this manner).

I'd love to know why, since at least Q1 2008, this _clientCreateListElement (and _createDomElement right below it, for that matter) has not been implemented, and, way more importantly, why is my code blowing up on that fact, while your demos WORK? (And i am keeping in mind that i have noticed in the past that some of your demo stuff (webmail demo anyone?) use MODIFIED Telerik assemblies (in the case of the webmail demo, you commented out the background color for RadPanes in the Hay skin, and i can see why, you owe me new eyes now, while it is not commented out in ANY of the release assemblies.)

Regards,

Mike
T. Tsonev
Telerik team
 answered on 28 May 2009
0 answers
92 views
Is an example exist for a Drag-And-Drop Scheduler WITHOUT Sessions

Same as this one : Scheduler / Drag-And-Drop

But without sessions for the datas,

Thanks
MARQUES
Top achievements
Rank 1
 asked on 28 May 2009
7 answers
1.8K+ views
Hey, I have downloaded and installed Q1 release of ASP.NET AJAX, but I dont know how to install the Visual Studio Extensions.

Any help would be much appreciated, i.e. Could someone point me to the download page.
Erjan Gavalji
Telerik team
 answered on 28 May 2009
1 answer
153 views
Hi,

Please check the following link:


I need to remove the frame scroll bars and when a user clicks on the filter icon just after "Action" column and enable columns, it should get width of their page and they should get the main horizontal bar of the browser and not like frame.

I am getting the following issues in Mac OS safari:

1)  Even if I don't have the columns ticked in hide/show columns filter, it is showing me all the columns


2) This is the hide/show column. Still I am getting all the columns


3) When I untick all the columns in hide/show columns, I am still getting all the columns:



4) When I click on something, then I get the following:


Please help!

Thanks,
Dhananjay
Pavel
Telerik team
 answered on 28 May 2009
16 answers
336 views
After install 2009 Q1 and download VS extension, I received an error during VS extension installation without any indication except some of program is missing. What should I do to fix this?
Erjan Gavalji
Telerik team
 answered on 28 May 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
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
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?