Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
113 views
Hi All
Is there a paste function for RAdInput controls(Textbox) which is similar to the pasteHtml for the Editor. 

set_value is removing the old text and replace with new text.

Regards

Omlac
Top achievements
Rank 1
 answered on 12 Nov 2008
3 answers
212 views
Hi,

I want to show timespan values in chart and datatable with format like hh:mm:ss. How can I do this?
Ves
Telerik team
 answered on 12 Nov 2008
1 answer
120 views
i have a grid that has autocolumn set to true. now after this i want to hide the very first column. could you please tell me the syntax for that? i don't want to display that because i have used that column as a groupbyfield .so now that i already have it on the group i don't need to display the column on the grid anymore. could you help please thank you.
Vlad
Telerik team
 answered on 12 Nov 2008
1 answer
183 views
Is there a property to automatically collapse the menu when an item has been selected? I'm using an item template, so I'm assuming this might not be built in... If not, what is the best way to go about this?

Thanks,
Levi
Princy
Top achievements
Rank 2
 answered on 12 Nov 2008
2 answers
129 views
Hi all,
In paging of radgrid i got a javascript error
"Error: Sys.InvalidOperationException: A Control is already associated with the element.
Code : 0
"
in IE but the paging works, but works with paging.
Why this error is occured
Any suggestions please!
John Yu
Top achievements
Rank 1
 answered on 12 Nov 2008
1 answer
105 views
I have many items in my rad menu. Is there any way i can optimize its performance?
Thank you.
Paul
Telerik team
 answered on 12 Nov 2008
1 answer
102 views
Hi.

I need to have a menu that expands sub-items inline as the left menu on  Telerik's own demo pages (http://demos.telerik.com/ASPNET/Prometheus/Menu/Examples/Overview/DefaultCS.aspx). How do I set the Meny parameters to achive this?

(I'm going to use it in SharePoint 2007 to replace the Quick Lauanch menu)

Best regards,
Frode

Shinu
Top achievements
Rank 2
 answered on 12 Nov 2008
3 answers
101 views
I wanted to know if there is a way to convert an existing instance of the RadProgressArea to a template as a starting point for a custom template.  I would like to use the default skin and customize it not to have the borders/box around the the progress area. 

Is there a way to convert an instance of the control to a template (similar to how Microsoft's Login control can be converted to a template) as a starting point?
Erjan Gavalji
Telerik team
 answered on 12 Nov 2008
2 answers
121 views

I have added an Expand / Collapse All button to my RadGrid, which uses a 3-level hierarchy. Each level uses load mode ServerOnDemand. But the problem is that only the first level gets expanded.

I have adapted the CodeLibrary example http://www.telerik.com/community/code-library/aspnet-ajax/grid/expand-collapse-hierarchy-client-side-on-external-control-click.aspx

See below my adapted page - can anyone see why only the first level gets expanded? Even if I hard code item.Expanded = True it still doesn't work. 

Steve

 

<%@ Page EnableViewState="True" Language="VB" %> 
<%@ 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"> 
 
<script runat="server">  
      
    Protected Sub ExpandCollapseButton_Click(ByVal sender As Object, ByVal e As EventArgs)  
        '-----------------------------------------------------------------------  
        ' Expand or Collapse all items in the grid  
        '-----------------------------------------------------------------------  
        For Each item As GridDataItem In RadGrid1.Items  
            item.Expanded = Not item.Expanded  
        Next  
    End Sub  
 
</script> 
 
<html xmlns="http://www.w3.org/1999/xhtml">  
<head id="Head1" runat="server">  
    <title>Untitled Page</title> 
</head> 
<body style="margin: 0px;">  
    <form id="form1" runat="server">  
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager> 
        <div> 
 
            <asp:Button ID="ExpandCollapseButton" runat="server"   
                Text="Expand/Collapse All"   
                OnClick="ExpandCollapseButton_Click" /> 
 
            <telerik:RadGrid ID="RadGrid1" DataSourceID="AccessDataSource1" runat="server" Skin="WebBlue" 
                Width="95%" AutoGenerateColumns="False" PageSize="5" AllowSorting="True" AllowPaging="True" 
                GridLines="None">  
                <PagerStyle Mode="NumericPages"></PagerStyle> 
                <MasterTableView DataSourceID="AccessDataSource1" DataKeyNames="CustomerID" Width="100%" 
                    HierarchyLoadMode="ServerOnDemand">  
                    <DetailTables> 
                        <telerik:GridTableView DataKeyNames="OrderID" DataSourceID="AccessDataSource2" Width="100%" 
                            runat="server" HierarchyLoadMode="ServerOnDemand">  
                            <ParentTableRelation> 
                                <telerik:GridRelationFields DetailKeyField="CustomerID" MasterKeyField="CustomerID" /> 
                            </ParentTableRelation> 
                            <DetailTables> 
                                <telerik:GridTableView DataKeyNames="OrderID" DataSourceID="AccessDataSource3" Width="100%" 
                                    runat="server" HierarchyLoadMode="ServerOnDemand">  
                                    <ParentTableRelation> 
                                        <telerik:GridRelationFields DetailKeyField="OrderID" MasterKeyField="OrderID" /> 
                                    </ParentTableRelation> 
                                    <Columns> 
                                        <telerik:GridBoundColumn SortExpression="UnitPrice" HeaderText="Unit Price" HeaderButtonType="TextButton" 
                                            DataField="UnitPrice" UniqueName="UnitPrice">  
                                        </telerik:GridBoundColumn> 
                                        <telerik:GridBoundColumn SortExpression="Quantity" HeaderText="Quantity" HeaderButtonType="TextButton" 
                                            DataField="Quantity" UniqueName="Quantity">  
                                        </telerik:GridBoundColumn> 
                                        <telerik:GridBoundColumn SortExpression="Discount" HeaderText="Discount" HeaderButtonType="TextButton" 
                                            DataField="Discount" UniqueName="Discount">  
                                        </telerik:GridBoundColumn> 
                                    </Columns> 
                                </telerik:GridTableView> 
                            </DetailTables> 
                            <Columns> 
                                <telerik:GridBoundColumn SortExpression="OrderID" HeaderText="OrderID" HeaderButtonType="TextButton" 
                                    DataField="OrderID" UniqueName="OrderID">  
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn SortExpression="OrderDate" HeaderText="Date Ordered" HeaderButtonType="TextButton" 
                                    DataField="OrderDate" UniqueName="OrderDate">  
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn SortExpression="EmployeeID" HeaderText="EmployeeID" HeaderButtonType="TextButton" 
                                    DataField="EmployeeID" UniqueName="EmployeeID">  
                                </telerik:GridBoundColumn> 
                            </Columns> 
                        </telerik:GridTableView> 
                    </DetailTables> 
                    <Columns> 
                        <telerik:GridBoundColumn SortExpression="CustomerID" HeaderText="CustomerID" HeaderButtonType="TextButton" 
                            DataField="CustomerID" UniqueName="CustomerID">  
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn SortExpression="ContactName" HeaderText="Contact Name" HeaderButtonType="TextButton" 
                            DataField="ContactName" UniqueName="ContactName">  
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn SortExpression="CompanyName" HeaderText="Company" HeaderButtonType="TextButton" 
                            DataField="CompanyName" UniqueName="CompanyName">  
                        </telerik:GridBoundColumn> 
                    </Columns> 
                </MasterTableView> 
                <ClientSettings AllowExpandCollapse="true">  
                </ClientSettings> 
            </telerik:RadGrid> 
            <asp:AccessDataSource ID="AccessDataSource1" DataFile="~/Grid/Data/Access/Nwind.mdb" 
                SelectCommand="SELECT * FROM Customers" runat="server"></asp:AccessDataSource> 
            <asp:AccessDataSource ID="AccessDataSource2" DataFile="~/Grid/Data/Access/Nwind.mdb" 
                SelectCommand="SELECT * FROM Orders Where CustomerID = ?" runat="server">  
                <SelectParameters> 
                    <asp:SessionParameter Name="CustomerID" SessionField="CustomerID" Type="string" /> 
                </SelectParameters> 
            </asp:AccessDataSource> 
            <asp:AccessDataSource ID="AccessDataSource3" DataFile="~/Grid/Data/Access/Nwind.mdb" 
                SelectCommand="SELECT * FROM [Order Details] where OrderID = ?" runat="server">  
                <SelectParameters> 
                    <asp:SessionParameter Name="OrderID" SessionField="OrderID" Type="Int32" /> 
                </SelectParameters> 
            </asp:AccessDataSource> 
        </div> 
    </form> 
</body> 
</html> 
 
Yavor
Telerik team
 answered on 12 Nov 2008
3 answers
142 views
I have a tree that is dynamically built on page load along with context menus. Initially the context menus fires the ContextMenuItemClick(on server side) event successfully. I then clear the tree RadTreeView.Nodes.Clear() and then rebuild the tree including the root node and the context menus. The tree and the context menus load and display, however when I click on a context menu the ContextMenuItemClick event does not fire. Any suggestions? Thanks
Erjan Gavalji
Telerik team
 answered on 12 Nov 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?