Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
158 views

Is there a simple example of the rotator just picking up the images from a folder and showing then as a fading display showing each image



thanks
kevin
Georgi Tunev
Telerik team
 answered on 02 Oct 2008
1 answer
113 views
Hi! I would like to disable all actions for some of the appointments, and enable them for others in the same calendar. I think of moving, deleting, clicking,..(everything). Some of the appointments should be read only, and some not. How to do that?
Thanks a lot, Ana
Peter
Telerik team
 answered on 02 Oct 2008
1 answer
132 views
Hi,
I am using ASP.NET 1.1 , could you please tell me whether i can use ASP.NET AJAX for sharepoint 2003 using ASP.NET 1.1. if so,
I am in need to know how to use the print option programatically which has the same functionality as in the below link..
http://www.telerik.com/support/kb/article/b454K-tgg-b454T-cee-b454c-cee.aspx

In my sharepoint website iam using pages uploaded in the sharepoint site, and i know the path of the file and below the file i have an option like print when the client click on this, then it has to open the client's printer configuration printer. which is same as in this site..
Please help me in this regard..
Thanks in Advance...
Paul
Telerik team
 answered on 02 Oct 2008
1 answer
242 views
Hi,

I want to select the node when I right click on the node (to show the contextmenu). Then I use the following javascript code to achieve this:

  function onClientContextMenuShowing(sender, args)
        {
            var treeNode = args.get_node();
            treeNode.set_selected(true);
        }

It works fine when I have only one contextmenu for the treeview. But when I using the code on a RadTreeView with two contextmenu, it does not work.

Could anyone tell me how to solve the problem?

Thank you!
Hank
Yana
Telerik team
 answered on 02 Oct 2008
1 answer
110 views
Hello, I am trying to play with the grid and have a few questions. I am completely new to the grid...

1)
I am trying to acheive filtering on multiple datafields. This is what I have done..
I created a custom UserControl which has a certain display and shows data for 4 datafields... I created a GridTemplateColumn that contains the customUserControl. Now I can filter on 1 datafield by setting its DATFIELD property, but what I really want is try to Filter on all 4 fields that are in the Custom UserControl.. So my condition should either Field1 or Field2 or Field3 or Field4 for the usercontrol.. Can I implement an event and get access to that datarow, if so which event?

Can I acheive this? Any help would be greatly apprecaited as I need to get this piece done..

2)
I want to show the Filtering options, but dont want to show the column headers? Can I do this.. When I set ShowHeader it also hides the filters...

Thanks
Tom
Thomas
Top achievements
Rank 1
 answered on 02 Oct 2008
1 answer
82 views
I have a menu control that is plugged on a sitemap.

I was wondering if i can, once it's loaded, add a new node at the end of my menu in the code.

I have set the property AppendDataBoundItems but i can only add the node at the beggining of my menu.  This is not nice because i want it at the end

thx in advance
Yana
Telerik team
 answered on 02 Oct 2008
1 answer
53 views

Requirements

RadControls version

2008.01.0415.20
.NET version

2.0
Visual Studio version

2005
programming language

C#, Javascript
browser support

all browsers supported by RadControls


 
PROJECT DESCRIPTION

This project illustrates how to preform Grouping/UnGrouping in RadGrid on double clicking the column header. The task is achieved by adding an OnColumnDblClick client event for the Grid and performing a PostBack from the client side. Then in the RaisePostBack event Grouping/UnGrouping can be performed.

ASPX:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head runat="server"> 
    <title>Untitled Page</title> 
</head> 
<body> 
    <form id="form1" runat="server"> 
    <script type="text/javascript" language="javascript"> 
     function OnColumnDblClick(sender, eventArgs) 
     { 
        __doPostBack("<%= RadGrid1.UniqueID %>",  "ColumnDblClicked:" + eventArgs.get_gridColumn().get_uniqueName());   
     } 
    </script> 
        <asp:ScriptManager ID="ScriptManager1" runat="server" /> 
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:NorthWindConnectionString %>" 
            SelectCommand="SELECT [ProductName], [SupplierID], [CategoryID] FROM [Products]"> 
        </asp:SqlDataSource> 
        <br /> 
        <br /> 
        <div> 
            <telerik:RadGrid ID="RadGrid1" runat="server"  ShowGroupPanel="true" DataSourceID="SqlDataSource1" GridLines="None" 
                Skin="Office2007"> 
                <MasterTableView AutoGenerateColumns="False" DataSourceID="SqlDataSource1"> 
                    <RowIndicatorColumn Visible="False"> 
                        <HeaderStyle Width="20px" /> 
                    </RowIndicatorColumn> 
                    <ExpandCollapseColumn Resizable="False" Visible="False"> 
                        <HeaderStyle Width="20px" /> 
                    </ExpandCollapseColumn> 
                    <Columns> 
                        <telerik:GridBoundColumn DataField="ProductName" HeaderText="ProductName" SortExpression="ProductName" 
                            UniqueName="ProductName"> 
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="SupplierID" DataType="System.Int32" HeaderText="SupplierID" 
                            SortExpression="SupplierID" UniqueName="SupplierID"> 
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="CategoryID" DataType="System.Int32" HeaderText="CategoryID" 
                            SortExpression="CategoryID" UniqueName="CategoryID"> 
                        </telerik:GridBoundColumn> 
                    </Columns> 
                </MasterTableView> 
                <ClientSettings > 
                  <ClientEvents  OnColumnDblClick="OnColumnDblClick" /> 
                </ClientSettings> 
            </telerik:RadGrid></div> 
    </form> 
</body> 
</html> 
 


CS:
 
using System; 
using System.Data; 
using System.Configuration; 
using System.Collections; 
using System.Web; 
using System.Web.Security; 
using System.Web.UI; 
using System.Web.UI.WebControls; 
using System.Web.UI.WebControls.WebParts; 
using System.Web.UI.HtmlControls; 
using Telerik.Web.UI; 
 
 
public partial class _Default : System.Web.UI.Page  
{ 
    protected void Page_Load(object sender, EventArgs e) 
    { 
 
    } 
    protected override void RaisePostBackEvent(IPostBackEventHandler source, string eventArgument) 
    { 
        base.RaisePostBackEvent(source, eventArgument); 
 
        if (source == this.RadGrid1 && eventArgument.IndexOf("ColumnDblClicked") != -1) 
        { 
 
            string strUniqueName = eventArgument.Split(':')[1]; 
            ArrayList arrClickedColumn; 
            if (Session["arrClickedColumn"] == null) 
            { 
                arrClickedColumn = new ArrayList(); 
            } 
            else 
            { 
                arrClickedColumn = (ArrayList)Session["arrClickedColumn"]; 
            } 
            if (!arrClickedColumn.Contains(strUniqueName)) 
                arrClickedColumn.Add(strUniqueName); 
            Session["arrClickedColumn"] = arrClickedColumn; 
 
            if (RadGrid1.MasterTableView.GroupByExpressions.Count > 0) 
            { 
                bool newGroup = true; 
                int GroupIndex; 
 
                for (GroupIndex = 0; GroupIndex < RadGrid1.MasterTableView.GroupByExpressions.Count; GroupIndex++) 
                { 
                    if (RadGrid1.MasterTableView.GroupByExpressions[GroupIndex].Expression.Contains(strUniqueName)) 
                        newGroup = false; 
                } 
                if (Session["arrClickedColumn"] != null) 
                { 
                    ArrayList arrColumns = (ArrayList)Session["arrClickedColumn"]; 
                    int arrColumnCount; 
                    if (newGroup == true) 
                    { 
                        arrColumnCount = arrColumns.Count - 1; 
                        AddGroup(strUniqueName); 
                        strUniqueName = string.Empty; 
                    } 
                    else 
                        arrColumnCount = arrColumns.Count; 
                    int columnCount; 
                    for (columnCount = 0; columnCount < arrColumnCount; columnCount++) 
                    { 
                        if (arrColumns[columnCount].ToString() == strUniqueName) 
                        { 
                            string strGrpexp = strUniqueName + " " + "Group By" + " " + strUniqueName; 
                            RadGrid1.MasterTableView.GroupByExpressions.Remove(strGrpexp); 
                            strUniqueName = string.Empty; 
                        } 
                         
                    } 
                    
                } 
            } 
            else 
            { 
                AddGroup(strUniqueName); 
            } 
 
            RadGrid1.Rebind(); 
 
        } 
    } 
 
    private void AddGroup(string strUniqueName) 
    { 
        if (strUniqueName != String.Empty) 
        { 
            GridGroupByExpression expression = new GridGroupByExpression(); 
            GridGroupByField gridGroupByField = new GridGroupByField(); 
            gridGroupByField = new GridGroupByField(); 
            gridGroupByField.FieldName = strUniqueName; 
            gridGroupByField.HeaderText = strUniqueName; 
            expression.SelectFields.Add(gridGroupByField); 
            expression.GroupByFields.Add(gridGroupByField); 
 
            RadGrid1.MasterTableView.GroupByExpressions.Add(expression); 
            strUniqueName = string.Empty; 
        } 
    }      
 
} 

Yavor
Telerik team
 answered on 02 Oct 2008
7 answers
145 views
Hi,

I have 2 grids, one business grid and one details grid. After entering in insert mode the grid does not have any loading template. Is there a way to re-enable this loading template like in edit mode ?

Thanks,
B
Yavor
Telerik team
 answered on 02 Oct 2008
1 answer
217 views
What is the CSS tag I need to look for so I can resize an image when loaded into a treeview node? I see the .rtLI, but i am assuming that is for the entire line item. Is that the tag I should use to resize the node?

Daniel
Yana
Telerik team
 answered on 02 Oct 2008
1 answer
101 views
Hello,
on my page, I use the RadAjaxMaanger to check a server side method in a certain interval. The problem is, that this blocks the usage of my radTreeView.

An example: the ajaymanager starts the request. While this request is worked on server side the user moves a treenode to another parent. The node_drop-event is not called immediately, because the other request is not completed yet. After the first request is done the drop is executed.

If I use the fiddler http debugger, a request is set immediately after dropping the node, while the first one waits for response.
Also: I get a ClientEvent "OnResponseEnd" called, with the get_eventArgument-value used by the first request several times - more often than the onrequeststart!

Is there a way to get two or more simultaneous requests from one clients?

Regards
Maria Ilieva
Telerik team
 answered on 02 Oct 2008
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?