Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
127 views
Hi,

 I have come across a rare bug in the Rad Upload control. when the file size exceeds 5000 KB, not only the upload fails completely but it blocks the page from being posted back, and the "Internet Explorer cannot display the webpage" is shown instead.

I tried to hook the upload error event in "protected void RadUpload1_ValidatingFile(object sender, ValidateFileEventArgs e)"

But break point doesn't reach even there.

Please help me to find a solution for this.

Thanks in advance.
Edwin
Atanas Korchev
Telerik team
 answered on 26 Sep 2008
1 answer
111 views
Hi,

I need to display an image to the extreme right of the header and an image to the extreme right of the filter. This image will not be shown for each column but will be one image for the whole row and placed to the extreme right.
The columns are being dynamically created. The header, filter and item are all template columns.
Is there a way to insert an image into the header and the filter of the grid after the grid has been fully created?
Any help would be appreciated.
Thanks in advance.
Yavor
Telerik team
 answered on 26 Sep 2008
1 answer
92 views
Hi,

I have a pretty basic RadGrid sat within the RadDock. I have scrolling enabled on the RadGrid. If there are only a few record displayed in the RadGrid and I resize the columns the RadDock grows, which I don't want, it should remain fixed in size. However if there are a number of records present casuing the vertical scrolbar to appear and I resize the columns the RadDock stays fixed! Very quirky behaviour indeed!

All I want is for this the RadDock to remain fixed in size and the grid scrolls if the columns are resized!

Any help much appreciated!

Paul
Iana Tsolova
Telerik team
 answered on 26 Sep 2008
1 answer
104 views
We are using internal build 2008.2.905.35, which provided a fix for the Vista skin which was too blue in the release version of 2008.2.

In this build, in IE6 only, horizontal dividers in the menu (Vista skin) do not display properly. They render with a 1px width instead of extending the width of the menu.

It looks like this presently:

http://img99.imageshack.us/my.php?image=73022864qs8.jpg

While it should look like this:

http://img156.imageshack.us/my.php?image=21737991zv0.jpg

This is not a blocking issue, but I would hope you get it sorted out for your next release. If you do want to release another internal build with this fix, I'll open a support ticket. Thanks!
Alex Gyoshev
Telerik team
 answered on 26 Sep 2008
11 answers
367 views
I am using a Date Picker to allow the user to change the selected date but the only highlighted day showing is the current day.  Also when using the Navigation Commands to change periods the Selected Date changes but not the highlighting.  Can this be handled through CSS? Code? If so, can you give me an example?  Thanks!

Steve
Peter
Telerik team
 answered on 26 Sep 2008
1 answer
146 views
Hi all,

I want to customize my scheduler, so that the empty time slot will be colored as well.

Currently I can only color the time slot that has been booked for an appointment.

through this code

Protected Sub RadScheduler1_AppointmentCreated(ByVal sender As Object, ByVal e   As Telerik.Web.UI.AppointmentCreatedEventArgs) Handles   EquipmentScheduler.AppointmentCreated
    If e.Appointment.Attributes("ForceSaving") = "0"  Then 
        e.Appointment.BackColor =   Drawing.Color.Red
    Else
        e.Appointment.BackColor =   Drawing.Color.Orange
Sub 

but this code only applies for the time slot that already attached to an appointment, so does anybody know how do i change the time slot color for the time slot that is not attached to an appointment?
Peter
Telerik team
 answered on 26 Sep 2008
1 answer
101 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 action 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; 
                    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); 
                            arrClickedColumn.Remove(strUniqueName); 
                            strUniqueName = string.Empty; 
                        } 
                        else if (newGroup) 
                        { 
                            AddGroup(strUniqueName); 
                            arrClickedColumn.Remove(strUniqueName); 
                            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); 
        } 
    }      
 


Yavor
Telerik team
 answered on 26 Sep 2008
1 answer
82 views
If I don't use RadAjaxManager1, the page postback and saves the scroll position just fine.

    <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True">
        <Selecting AllowRowSelect="False"></Selecting>
        <Scrolling AllowScroll="True" UseStaticHeaders="False" SaveScrollPosition="true" ScrollHeight="300" />
    </ClientSettings>

If I use the RadAjaxManager1 as below - it scrolls to the top everytime i select a row on the grid via server side by clicking on the select GridButtonColumn.  The scroll position is lost.

                <telerik:AjaxSetting AjaxControlID="rgMain">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="fvDetails"></telerik:AjaxUpdatedControl>
                    </UpdatedControls>
                </telerik:AjaxSetting>   
                <telerik:AjaxSetting AjaxControlID="rgMain">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="rgMain"></telerik:AjaxUpdatedControl>
                    </UpdatedControls>
                </telerik:AjaxSetting>   
Iana Tsolova
Telerik team
 answered on 26 Sep 2008
1 answer
126 views
Hi, Im using 'Returning Values from a Dialog Demo' in my project, but i can't get asp:Image.ImageUrl and send it to radWindow.  That work fine with textarea, but not with Images. I think that problem its in javascript. There are same way to send this value?

            function showDialog() 
            {                     
                //Force reload in order to guarantee that the onload event handler of the dialog which configures it executes on every show. 
                var oWnd = window.radopen(null"DialogWindow"); 
                oWnd.setUrl(oWnd.get_navigateUrl()); 
            } 
             
            //Called when a window is being shown. Good for setting an argument to the window  
            function OnClientshow(radWindow) 
            {                     
                //Get current content of textarea 
                var oText = document.getElementById("ImageFoto1"); 
                 
                //Create a new Object to be used as an argument to the radWindow 
                var arg = new Object();                     
                //Using an Object as a argument is convenient as it allows setting many properties. 
                arg.ImageUrl = oText.ImageUrl;  // This don't work 
       
                                     
                //Set the argument object to the radWindow         
                //radWindow.Argument = arg; 
                radWindow.Argument = arg; 
            } 


Thanks for your support.
Svetlina Anati
Telerik team
 answered on 26 Sep 2008
0 answers
58 views
Hai Matt,
                      Thank you for  your Information.I solved that issue. I have one more issue.
I am Created a button inside a detailtable(hierarchialgrid),radiobutton column also in detailtable.Now I am select option button and click ModifyButton,at that time selected row is blank But information are shown in Control.How to solve this problem.Please tell me detail.

Thanks and Regards
Balaji

Balaji
Top achievements
Rank 1
 asked on 26 Sep 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?