Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
25 views
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="products.aspx.cs" Inherits="products"%>
 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head>
    <title><%Response.Write(ConfigurationManager.AppSettings["AdminTitle"]); %></title>
    <link href="aStyleSheet.css" rel="stylesheet" type="text/css" />
    <link href="aMenuStyle.css" rel="stylesheet" type="text/css" />
    <link href="aPageDesign.css" rel="stylesheet" type="text/css"/>
    <link href="webworld_calendar.css" rel="stylesheet" type="text/css" />
    <script language="javascript" type="text/javascript" src="jscripts/webworld_calendar.js"></script>
    <script language="javascript" type="text/javascript">
        function confirmMsg(msg){
            if(!confirm(msg)){
                return false;
 
            } else {
                return true;
            }
        }
        function GetFileName() {
            var upload = $find("<%= RUCatImage.ClientID %>")
            var filePath = upload.getFileInputs()[0].value;
            var fileName = filePath.substring(filePath.lastIndexOf("\\") + 1);
            document.getElementById("<%= Txt_CatImage.ClientID %>").value = fileName;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server">
    </telerik:RadStyleSheetManager>
     <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
 
  <telerik:RadImageEditor ID="RadCatImgEdit" runat="server" ToolsFile="~/App_Data/ImageEditor.xml">
                                                    </telerik:RadImageEditor>
 
</form>
</body>
</html>

This is the source.
Would you please tell me why i did not get the tool dialog with properties. Just i see empty dialog
Annie
Top achievements
Rank 1
 asked on 11 Dec 2012
1 answer
131 views
Strange one here. I am using Combobox dll 2.8.4 (I know its old, its legacy stuff). On my Windows 2008 server here it works fine as expected. On a Windows 2003 server it misbehaves. We have narrowed it down to a class on the div created around the drop down being changed. On our 2K8 server the following line stays as is and all works well:

<div class="ComboBoxItem_Default" id="ctl00_cphBarCol_ddlFolder_Input" style="display:inline; white-space: nowrap;">

But on the client's 2003 server when the drop down is clicked in to it changes the class to "ComboBoxItemHover" and blows out the styling which results in us not being able to select anything in the drop down box.

<div class="ComboBoxItemHover_Default" id="cphBarCol_ddlFolder" style="display:inline; white-space: nowrap;">

I have attached two images. Dropdown_good.jpg shows the expected and correct behaviour. Dropdown_bad.jpg shows how the dropdown box turns out on 2k3 server.

How do I stop the js targeting the div? Please help before my head explodes.
Kalina
Telerik team
 answered on 11 Dec 2012
1 answer
103 views
Dear All!
I am working on a telerik report Q3 2010.I want to change the size the size of control by using stylesheet .I am familier with stylerules of telerik . now my question is 
"it is possible to change the size of the textfield/textbox using style sheet in telerik? if yes then how ?"

Please i need your guidance , if you have another idea to set the size of the control mentioned above dynamically then please do share with me.


Best Regards
Shinu
Top achievements
Rank 2
 answered on 11 Dec 2012
0 answers
1.1K+ views
Hello Community,

Recently lots of the developers reported that their sites are not working in IE10. Depending on what controls they have on the page, the errors can be:
  • "Unable to get property 'PageRequestManager' of undefined or null reference"
  • "__doPostBack" is undefined or not an object.
  • "'$get' is undefined"

If you have some of these errors only on IE10, and your site is working in other browser, it is most probably that the MicrosoftAjaxWebForms.js fails to be included in the scripts for your page. This is known to be caused by bug in the browser definition files in .NET 4.0 and .NET 2.0 used by the ASP.NET.

Since the RadControls are made on top of the AjaxWebForms,if the Microsoft's scripts are not loaded properly, the RadControls will not work as well. For example if you have RadAjaxManager in your page, it's initialization will fail, when PageRequestManager is requested, you might think at first that the problem is in the RadAjaxManager, but on later look you see that the PageRequestManager is defined inside the MicrosoftAjaxWebForms.js where is the actual problem.

You have several options to confirm that this is the issue:

  • Open the developer tools of IE10, capture the network traffic and see if the bot Microsoft scripts (MicrosoftAjax and MicrosoftAjaxWebForms) are included.
  • Run the sample web page attached to this post, click the "TestPostBack", if you get JavaScript error then the MicrosoftAjaxWebForms is not loaded properly.
  • Run your site in other browsers like IE9, Firefox, Chrome, Opera. If it works on all of them and not on IE10, then the problem is the definition files.

Luckily there is solution for the problem: .NET fix for your server released by Microsoft.
For .NET 4.0 check this one: http://support.microsoft.com/kb/2600088
For .NET 2.0:
http://support.microsoft.com/kb/2600100 for Win7 SP1/Windows Server 2008 R2 SP1, Windows Vista/Server 2008, Windows XP/Server 2003
http://support.microsoft.com/kb/2608565 for Win7/Windows Server 2008 R2 RTM

Since the problem is not particularity in the RadControls, you might find usable information out in the web, see this blog post by Scott Hanselman for more information:
Bug and Fix: ASP.NET fails to detect IE10 causing _doPostBack is undefined JavaScript error or maintain FF5 scrollbar position

All the best,
Vasil,
the Telerik team

Telerik Admin
Top achievements
Rank 1
Iron
 asked on 11 Dec 2012
2 answers
538 views
Hello,

Telerik radgrid is failling to import excel with 20000 thousand record.

can you please give me little demo or example or code for IMPORT Excel TO RADGRID 

Thanks in advance

Amit
Amit
Top achievements
Rank 1
 answered on 11 Dec 2012
2 answers
205 views
Hi,

I have a RadGrid with a Template column which has a checkbox in the header and a checkbox in the Item area.



Here's the Form Decorator in the Master Page:
<telerik:RadFormDecorator ID="FormDecorator1" runat="server"  Skin="Metro" DecoratedControls="Default" ControlsToSkip="Buttons" />


<
telerik:GridTemplateColumn UniqueName="TemplateSelect">
    <ItemTemplate>
        <asp:CheckBox ID="chkSelected" runat="server" OnCheckedChanged="RowCheckedChanged" />
    </ItemTemplate>
 
    <HeaderTemplate>
        <asp:CheckBox ID="CheckBoxHeader" runat="server" OnCheckedChanged="CheckBoxHeader_CheckedChanged" />
    </HeaderTemplate>
</telerik:GridTemplateColumn>


When I enable the FormDecorator, if I try to click on the Checkboxes (chkSelected) the Checkboxes are not selectable
but if I disable the form decorator everything works fine, I noticed that this only happens in the Checkbox
that is inside the <ItemTemplate> but not with the one that's inside the <HeaderTemplate>

Is there a fix or workaround to this issue?

Thank you.
Danail Vasilev
Telerik team
 answered on 11 Dec 2012
1 answer
103 views
I have TreeListTemplateColumn column in my treelist. I would like to show dynamic tooltip when the user hover the template column. For example, I have 2 progress bar within my template column. I would like to show different tooltip for each progress bar depending on data on that row.

Is there an event on client or server side to faciliate this?
Shinu
Top achievements
Rank 2
 answered on 11 Dec 2012
1 answer
61 views
Hi,
 We have an application that's been in production for over a year. Basically, it manages open tickets.
 Apparently this is the first time we've had more than 20 open tickets where tickets appearing on the 2nd page had child tickets.

The problem is that - when the page is changed the Self Hierarchy breaks down and the grid does not recognize a ticket as a parent ticket, and therefore it's child tickets are unavailable.

I use a recursive function that is passed a GridTableView that grabs an array of nestedVieItems and determines whether they have any children, and if so it will add the button to allow them to be visible and it changes the styling.

basically the problem is that the MasterTableView does not contain nestedviewitems for items that aren't on the first page.
If I set the PageSize = aNumber > numberOfTickets, then everything works as expected, its when the pagesize is set to a number less than the number of tickets and a ticket on the second page has children, that we have an issue.

Oh - and if I change the code to have the expand/collapse button always visible, when I click it next to an item on the 2nd page that I know has children - it says: "No child records to display". So I guess the issue isn't with either of the 2 below subroutines, its that the RadGrid doesn't think that any of my items on a Page that is not the first page has any children.

Below is the code i use to hide/show the ExpandCollapse button and set the style of the row.

public void Page_PreRenderComplete(object sender, EventArgs e)
{
      
    if(btnToggleHierarchy.Checked)
        HideExpandColumnRecursive(RadGrid1.MasterTableView);
       
}
/// <summary>
/// Create buttons on items that have children
/// </summary>
/// <param name="tableView"></param>
public void HideExpandColumnRecursive(GridTableView tableView)
{
    GridItem[] nestedViewItems = tableView.GetItems(GridItemType.NestedView);
    foreach (GridNestedViewItem nestedViewItem in nestedViewItems)
    {
        foreach (GridTableView nestedView in nestedViewItem.NestedTableViews)
        {
            nestedView.Style["border"] = "0";
            Button MyExpandCollapseButton = (Button)nestedView.ParentItem.FindControl("MyExpandCollapseButton");
            if (nestedView.Items.Count == 0)
            {
                if (MyExpandCollapseButton != null)
                {
                    MyExpandCollapseButton.Style["visibility"] = "hidden";
                    ((TableCell)MyExpandCollapseButton.Parent).BackColor = System.Drawing.Color.White;
                }
                nestedViewItem.Visible = false;
            }
            else
            {
                if (MyExpandCollapseButton != null)
                {
                    //Only set the background if we are the Highest Parent... otherwise leave it to the
                    //alternating styles
                    if (nestedView.ParentItem.OwnerTableView == RadGrid1.MasterTableView)
                        ((TableCell)MyExpandCollapseButton.Parent).CssClass = "ExpandCollapseBackground" ;
                      
                    MyExpandCollapseButton.Style.Remove("visibility");
                }
            }
            if (nestedView.HasDetailTables)
            {
                HideExpandColumnRecursive(nestedView);
            }
        }
    }
}
Kostadin
Telerik team
 answered on 11 Dec 2012
1 answer
73 views
Hi,

I'm trying to use the Scheduler control using a database as appointments storage.
I followed the steps to add the control, add a data-source and connect them. 
The control appears in the website and the data entered by hand in the data-source
also appears in the web page. Moving around (week-view, day view and so on) is OK,
but I cannot interact with the control when trying to add / insert / edit. The allow insert
is enabled. Nothing is changed from the default properties. 

Plamen
Telerik team
 answered on 11 Dec 2012
1 answer
129 views
I am populating my scheduler with appointments pulled from a database and bound server-side.  I would like to be able to filter my data-set based on when the user changes views or current day, month, etc.  However, I need the aforementioned java-script event to fire in order to do so.  Why doesn't this event fire when using server-side data binding, and is there a workaround?
Plamen
Telerik team
 answered on 11 Dec 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?