Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
190 views

Hi I am using radscheduler on my .net application,

I wanted to apply different color on my appointments depending upon the customized status field ,
RadScheduler_ AppointmentDataBound is applying same color on all the appointmets.

Below is my code:

protected

void RadScheduler1_AppointmentDataBound(object sender, SchedulerEventArgs e)

 

{

appointment = GetAppointments();

foreach (DataRow row in appointment.Rows)

{

statusValue = row["Status"].ToString();

switch (statusValue)

{

    case "1"
        
e.Appointment.BackColor = Color.Blue;

    break;

    case "2"
        e.Appointment.BorderColor = Color.Black;
    break;

    case "3":
        
e.Appointment.ForeColor = Color.DarkKhaki;

    break;

    default:
   break;

}

}

}


Can you please help me on that ?
Thanks.


Plamen
Telerik team
 answered on 15 Mar 2012
1 answer
64 views
Dear Support,

I try to attach a second events to the AjaxManager by using jQuery:

$('<%= this.AjaxManager.ClientID %>').on('OnRequestStart', function(sender, args)
{                   
   //Do something
});

 or (I thinks it's 'RequestStart')
$('<%= this.AjaxManager.ClientID %>').on('RequestStart', function(sender, args)
{                   
   //Do something
});

but the addition event will not be fired?

Why?

Thanks in advance!

Christian
Richard
Top achievements
Rank 1
 answered on 15 Mar 2012
2 answers
1.8K+ views
Hello,

Is it possible to count the number of child nodes of a node and display it on the parent node?

I tried this: http://www.telerik.com/help/aspnet/treeview/tree_show_child_count.html, but it only counts the number of the first level child nodes… What I need is to count all level nodes and display it next to the parent node text. Somehing like this:
-root (8)
---node_1 (4)
------node_1.1 (2)
----------node_1.1.1 (0)
----------node1.1.2 (0)
------node_1.2 (0)
---node_2 (4)
------node_2.1 (0)
------node_2.2 (1)
----------node_2.2.1 (0)
------node_2.3 (0)

How can I make this?

Thanks
Borralis
Top achievements
Rank 1
 answered on 15 Mar 2012
6 answers
315 views
Is there anything special that needs to be done behind the scenes or with a datasource in order to get the "Starts With" filtering working?  I can use the Contains fine with no problems, but when I try "Starts With" and "O" (upper or lower case) it just won't find the results.

Am I missing something simple here?
Richard
Top achievements
Rank 1
 answered on 15 Mar 2012
7 answers
894 views
I'm getting the error below when I try to publish my project to my development server.  I've checked all of the permissions but I can't find anything that would restrict the copying of this file.

Error   56   Copying file bin\Telerik.Web.UI.xml to obj\Debug\Package\PackageTmp\bin\Telerik.Web.UI.xml failed. Access to the path 'bin\Telerik.Web.UI.xml' is denied.
Rumen
Telerik team
 answered on 15 Mar 2012
1 answer
225 views
Hello,

We are currently using the Telerik RadGrid as part of our web application. Our application goes through Section 508 testing and one of the issues that came up was the fact that the pagination buttons are still enabled even if they don't have a function. For example, if there is only 1 page of results the "Next" and "Previous" type of buttons are selectable and still look enabled, yet they have no function. This is confusing for a screen reader user.

Is there an attribute or event handler that the pagination has to let us know when the pagination buttons have no functionality? We would like to detect if the buttons won't have an action and then programmatically disable them so that they are no longer selectable.

Thank you!

Lauren Jones
Andrey
Telerik team
 answered on 15 Mar 2012
1 answer
112 views
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="ReportMaster.aspx.vb" Inherits="Master_ReportMaster" %>
  
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
  
<%@ Register src="../Header/footer.ascx" tagname="footer" tagprefix="uc1" %>
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  
<head id="Head1" runat="server">
    <title>Report Master</title>
       <script language="javascript" type="text/javascript">
         function disable() {
             if (event.button == 2) {
                 alert("Sorry no rightclick on this page.");
             }
             //  setInterval("window.clipboardData.setData('text','')",5);
         }
         String.prototype.trim = function() {
             return this.replace(/^\s*/, "").replace(/\s*$/, "");
         }
    </script>
    <style type="text/css">
  
  
.RadGrid_Outlook
{
    font:12px/16px "segoe ui",arial,sans-serif;
}
  
.RadGrid_Outlook
{
    border:1px solid #002d96;
    background:#fff;
    color:#000;
}
  
.RadGrid_Outlook .rgMasterTable
{
    font:12px/16px "segoe ui",arial,sans-serif;
}
  
.RadGrid .rgMasterTable
{
    border-collapse:separate;
}
  
.RadGrid_Outlook .rgCommandRow
{
    background:#043199 0 -2100px repeat-x url('mvwres://Telerik.Web.UI, Version=2011.2.712.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4/Telerik.Web.UI.Skins.Outlook.Grid.sprite.gif');
    color:#fff;
}
  
.RadGrid_Outlook thead .rgCommandCell
{
    border-bottom:1px solid #002d96;
}
  
.RadGrid_Outlook .rgCommandCell
{
    border:0;
    padding:0;
}
  
.RadGrid_Outlook .rgCommandRow table
{
    font:12px/16px "segoe ui",arial,sans-serif;
}
  
.RadGrid_Outlook .rgCommandTable
{
    border:0;
    border-bottom:1px solid #6797d1;
}
  
.RadGrid_Outlook .rgCommandTable td
{
    border:0;
    padding:2px 7px;
}
  
.RadGrid_Outlook .rgAdd
{
    margin-right:3px;
    background-position:0 -1650px;
}
  
.RadGrid_Outlook .rgAdd
{
    background-image:url('mvwres://Telerik.Web.UI, Version=2011.2.712.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4/Telerik.Web.UI.Skins.Outlook.Grid.sprite.gif');
}
  
.RadGrid .rgAdd
{
    width:18px;
    height:18px;
    vertical-align:bottom;
}
  
.RadGrid .rgAdd
{
    width:16px;
    height:16px;
    border:0;
    margin:0;
    padding:0;
    background-color:transparent;
    background-repeat:no-repeat;
    vertical-align:middle;
    font-size:1px;
    cursor:pointer;
}
  
.RadGrid_Outlook .rgCommandRow a
{
    color:#fff;
    text-decoration:none;
}
  
.RadGrid_Outlook .rgRefresh
{
    margin-right:3px;
    background-position:0 -1600px;
}
  
.RadGrid_Outlook .rgRefresh
{
    background-image:url('mvwres://Telerik.Web.UI, Version=2011.2.712.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4/Telerik.Web.UI.Skins.Outlook.Grid.sprite.gif');
}
  
.RadGrid .rgRefresh
{
    width:18px;
    height:18px;
    vertical-align:bottom;
}
  
.RadGrid .rgRefresh
{
    width:16px;
    height:16px;
    border:0;
    margin:0;
    padding:0;
    background-color:transparent;
    background-repeat:no-repeat;
    vertical-align:middle;
    font-size:1px;
    cursor:pointer;
}
  
.RadGrid_Outlook .rgHeader
{
    color:#000;
}
  
.RadGrid_Outlook .rgHeader
{
    border:0;
    border-left:1px solid #89aee5;
    border-bottom:1px solid #5d8cc9;
    background:0 -2300px repeat-x #7da5e0 url('mvwres://Telerik.Web.UI, Version=2011.2.712.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4/Telerik.Web.UI.Skins.Outlook.Grid.sprite.gif');
}
  
.RadGrid .rgHeader
{
    padding-top:5px;
    padding-bottom:4px;
    text-align:left;
    font-weight:normal;
}
  
.RadGrid .rgHeader
{
    padding-left:7px;
    padding-right:7px;
}
  
.RadGrid .rgHeader
{
    cursor:default;
}
  
.RadGrid_Outlook .rgPager
{
    background:#d6e5f3;
}
  
.RadGrid .rgPager
{
    cursor:default;
}
  
.RadGrid .rgPager td
{
    padding:0;
}
  
.RadGrid_Outlook .rgPager table
{
    font:12px/16px "segoe ui",arial,sans-serif;
}
  
.RadGrid_Outlook .rgPager .rgStatus
{
    border:1px solid;
    border-width:1px 1px 0 0;
    border-color:#5d8cc9 #9cb9dc;
}
  
.RadGrid .rgPager .rgStatus
{
    width:35px;
    padding:3px 0 2px;
}
  
.RadGrid_Outlook td.rgPagerCell
{
    border:0;
    border-top:1px solid #5d8cc9;
    border-left:1px solid #fff;
}
  
.RadGrid td.rgPagerCell
{
    border:0;
    padding:5px 0 4px;
}
  
.RadGrid .rgArrPart1
{
    padding-right:0;
}
  
.RadGrid .rgWrap
{
    float:left;
    padding:0 10px;
    line-height:22px;
    white-space:nowrap;
}
  
.RadGrid_Outlook .rgPageFirst
{
    margin:0 3px 0 0;
    background-position:0 -550px;
}
  
.RadGrid_Outlook .rgPageFirst
{
    background-image:url('mvwres://Telerik.Web.UI, Version=2011.2.712.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4/Telerik.Web.UI.Skins.Outlook.Grid.sprite.gif');
}
  
.RadGrid .rgPageFirst
{
    margin-right:1px;
}
  
.RadGrid .rgPageFirst
{
    width:22px;
    height:22px;
    vertical-align:top;
}
  
.RadGrid .rgPageFirst
{
    width:16px;
    height:16px;
    border:0;
    margin:0;
    padding:0;
    background-color:transparent;
    background-repeat:no-repeat;
    vertical-align:middle;
    font-size:1px;
    cursor:pointer;
}
  
.RadGrid_Outlook .rgPagePrev
{
    margin:0 3px 0 0;
    background-position:0 -700px;
}
  
.RadGrid_Outlook .rgPagePrev
{
    background-image:url('mvwres://Telerik.Web.UI, Version=2011.2.712.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4/Telerik.Web.UI.Skins.Outlook.Grid.sprite.gif');
}
  
.RadGrid .rgPagePrev
{
    margin-right:1px;
}
  
.RadGrid .rgPagePrev
{
    width:22px;
    height:22px;
    vertical-align:top;
}
  
.RadGrid .rgPagePrev
{
    width:16px;
    height:16px;
    border:0;
    margin:0;
    padding:0;
    background-color:transparent;
    background-repeat:no-repeat;
    vertical-align:middle;
    font-size:1px;
    cursor:pointer;
}
  
.RadGrid .rgNumPart
{
    padding:0;
}
  
.RadGrid_Outlook .rgNumPart a.rgCurrentPage
{
    background-position:100% -1450px;
}
  
.RadGrid_Outlook .rgNumPart a.rgCurrentPage
{
    background:no-repeat url('mvwres://Telerik.Web.UI, Version=2011.2.712.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4/Telerik.Web.UI.Skins.Outlook.Grid.sprite.gif');
}
  
.RadGrid .rgNumPart a.rgCurrentPage
{
    cursor:default;
}
  
.RadGrid_Outlook .rgNumPart a
{
    color:#000;
}
  
.RadGrid .rgNumPart a
{
    float:left;
    line-height:22px;
    margin:0;
    padding:0 5px 0 0;
    text-decoration:none;
}
  
.RadGrid_Outlook .rgNumPart a.rgCurrentPage span
{
    background-position:0 -1350px;
}
  
.RadGrid_Outlook .rgNumPart a.rgCurrentPage span
{
    background:no-repeat url('mvwres://Telerik.Web.UI, Version=2011.2.712.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4/Telerik.Web.UI.Skins.Outlook.Grid.sprite.gif');
}
  
.RadGrid .rgNumPart a.rgCurrentPage span
{
    cursor:default;
}
  
.RadGrid .rgNumPart span
{
    float:left;
    padding:0 0 0 5px;
}
  
.RadGrid .rgArrPart2
{
    padding-left:0;
}
  
.RadGrid_Outlook .rgPageNext
{
    margin:0 0 0 3px;
    background-position:0 -850px;
}
  
.RadGrid_Outlook .rgPageNext
{
    background-image:url('mvwres://Telerik.Web.UI, Version=2011.2.712.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4/Telerik.Web.UI.Skins.Outlook.Grid.sprite.gif');
}
  
.RadGrid .rgPageNext
{
    margin-left:1px;
}
  
.RadGrid .rgPageNext
{
    width:22px;
    height:22px;
    vertical-align:top;
}
  
.RadGrid .rgPageNext
{
    width:16px;
    height:16px;
    border:0;
    margin:0;
    padding:0;
    background-color:transparent;
    background-repeat:no-repeat;
    vertical-align:middle;
    font-size:1px;
    cursor:pointer;
}
  
.RadGrid_Outlook .rgPageLast
{
    margin:0 0 0 3px;
    background-position:0 -1000px;
}
  
.RadGrid_Outlook .rgPageLast
{
    background-image:url('mvwres://Telerik.Web.UI, Version=2011.2.712.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4/Telerik.Web.UI.Skins.Outlook.Grid.sprite.gif');
}
  
.RadGrid .rgPageLast
{
    margin-left:1px;
}
  
.RadGrid .rgPageLast
{
    width:22px;
    height:22px;
    vertical-align:top;
}
  
.RadGrid .rgPageLast
{
    width:16px;
    height:16px;
    border:0;
    margin:0;
    padding:0;
    background-color:transparent;
    background-repeat:no-repeat;
    vertical-align:middle;
    font-size:1px;
    cursor:pointer;
}
  
.RadGrid .rgPagerLabel
{
    margin:0 4px 0 0;
    vertical-align:middle;
}
  
.RadGrid .rgPager .RadComboBox
{
    margin:0 4px 0 0;
    vertical-align:middle;
}
  
.RadComboBox_Default
{
    font: 12px "Segoe UI", Arial, sans-serif;
    color: #333;
}
  
.RadComboBox
{
    vertical-align: middle;
    display: -moz-inline-stack;
    display: inline-block;
}
  
.RadComboBox
{
    text-align: left;
}
  
.RadComboBox *
{
    margin: 0;
    padding: 0;
}
  
.RadComboBox table
{
    border: 0;
    border-collapse: collapse;
}
  
.RadComboBox table td.rcbInputCell
{
    padding-left: 2px;
}
  
.RadComboBox table td.rcbInputCell
{
    width: 100%;
    height: 20px;
    line-height: 20px;
    vertical-align: middle;
    padding: 0;
    border: 0;
}
  
.RadComboBox_Default td.rcbInputCellLeft { background-position: 0 0; }
  
.RadComboBox_Default .rcbInputCellLeft
{
    background-image: url('mvwres://Telerik.Web.UI, Version=2011.2.712.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4/Telerik.Web.UI.Skins.Default.ComboBox.rcbSprite.png');
}
  
.RadComboBox .rcbInputCellLeft
{
    background-color: transparent;
    background-repeat: no-repeat;
}
  
.RadComboBox .rcbInputCell .rcbInput
{
    padding-left: 2px;
}
  
.RadComboBox .rcbReadOnly .rcbInput
{
    cursor: default;
}
  
.RadComboBox .rcbInputCell .rcbInput
{
    width: 100%;
    background: transparent;
    border: 0;
    vertical-align: middle;
    padding: 2px 0 1px;
    outline: 0;
    -webkit-appearance: none; /* iOS renders an additional shadow on the input */
}
  
.RadComboBox_Default .rcbInput
{
    font: 12px "Segoe UI", Arial, sans-serif;
    color: #333;
}
  
.RadComboBox .rcbInput
{
    text-align: left;
}
  
.RadComboBox_Default .rcbReadOnly td.rcbArrowCellRight { background-position: -2px -88px; }
  
.RadComboBox .rcbReadOnly td.rcbArrowCell { width: 16px; }
  
.RadComboBox table td.rcbArrowCell
{
    width: 18px;
    padding: 0;
    border: 0;
}
  
.RadComboBox_Default td.rcbArrowCellRight { background-position: 0 -88px; }
  
.RadComboBox_Default .rcbArrowCellRight
{
    background-image: url('mvwres://Telerik.Web.UI, Version=2011.2.712.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4/Telerik.Web.UI.Skins.Default.ComboBox.rcbSprite.png');
}
  
.RadComboBox .rcbArrowCellRight
{
    background-color: transparent;
    background-repeat: no-repeat;
}
  
.RadComboBox .rcbReadOnly td.rcbArrowCell a { width: 16px; }
  
.RadComboBox .rcbArrowCell a
{
    position: relative;
    outline: 0;
    overflow: hidden;
    display: block;
    width: 18px;
    height: 22px;
    cursor: default;
    text-decoration: none;
    text-indent: 9999px;
    font-size: 0;
    line-height: 1px;
}
  
.RadGrid_Outlook .rgInfoPart
{
    color:#333;
}
  
.RadGrid .rgInfoPart
{
    float:right;
}
  
.RadGrid_Outlook .rgInfoPart strong
{
    color:#000;
}
  
.RadGrid .rgInfoPart strong
{
    font-weight:normal;
}
  
    </style>
<script type="text/javascript" language="javascript">
  
    function DelRecord() {
        var ddlReportNo = document.getElementById('ddlReportNo');
        var cnt
        if (ddlReportNo.value.trim() == '') {
            //var cnt = confirm("Are you sure you want to delete this record?");
            alert("Report No Should Not Be Empty");
            var comboBox = $find('ddlReportNo');
            var input = comboBox.get_inputDomElement();
            input.focus();
            return false;
        }
        else {
            cnt = confirm("Are you sure you want to delete this record?");
        }
        if (cnt == true) {
            // var ddlCurrCode=document.getElementById('ddlCurrCode');
  
            if (ddlReportNo.value.trim() == '') {
                //var cnt = confirm("Are you sure you want to delete this record?");
                //alert("Currency Should Not Be Empty")
                //document.getElementById('ddlCurrCode').focus();
                return false;
            }
            else {
  
                return true;
            }
        }
        else {
            return false;
        }
    }
  
  
    function ValidateLoginID() {
        var txtsMode = document.getElementById('txtSpeNo');
        if (txtsMode.value == 'E') {
            var ddlRegNo = document.getElementById('ddlReportNo');
            if (ddlRegNo.value == '') {
                alert("Report No should not be empty.");
                var comboBox = $find('ddlReportNo');
                var input = comboBox.get_inputDomElement();
                input.focus();
                // document.getElementById('ddlCurrCode').focus();
                return false;
            }
  
        }
        else {
            var txtRegNo = document.getElementById('txtReportNo');
            if (txtRegNo.value == '') {
                alert("Report No should not be empty.");
                document.getElementById('txtReportNo').focus();
                return false;
            }
        }
        var ddlInvName = document.getElementById('ddlInvName');
        if (ddlInvName.value == '') {
            alert("Investigation Name should not be empty.");
            var comboBox = $find('ddlInvName');
            var input = comboBox.get_inputDomElement();
            input.focus();
            // document.getElementById('ddlCurrCode').focus();
            return false;
        }
  
//        var editor = $find('radEditorReport'); //get a reference to RadEditor client object
//        //then you can use:
  
//        if (editor.get_html(true) == '') {
//            alert("Report should not be empty.");
//            return false;
//        }
    }
  
</script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
     
  
       <table  bgcolor="white" width="98%">
        <tr>
        <!--#include file="../Menus/MenuPage.aspx"--> 
        </tr>
            <tr>
                <td  colspan="8" align="center">
                    </td>
            </tr>
            <tr>
                <td colspan="8">
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server"><ContentTemplate>
                    <table align="center">
                        <tr>
                            <td>
                            </td>
                            <td align="center" colspan="4">
                    <asp:HyperLink ID="HyperLink1" runat="server" Font-Bold="True" Font-Names="Arial" Font-Size="Large" ForeColor="White" style="color:SteelBlue;font-family:Verdana;font-size:14pt;font-weight:bold;text-decoration:underline;">Report Master</asp:HyperLink></td>
                            <td></td>
                        </tr>
                        <tr>
                            <td>
                                 </td>
                            <td align="center" colspan="4">
                                 </td>
                            <td>
                                 </td>
                        </tr>
                        <tr>
                            <td colspan="6" align="center">
                                 <asp:Button ID="btnAdd" runat="server" Text="Add" Width="87px" AccessKey="A"  
                                     ToolTip="Alt+a" TabIndex="14" BackColor="SteelBlue" Font-Names="Verdana" 
                                     Font-Size="8.5pt" ForeColor="White" Height="19px" /> 
                   <asp:Button ID="BtnSave" runat="server"  Text="Save"  Width="87px" AccessKey="S" ToolTip="Alt+s"  style="color:White;background-color:SteelBlue;font-family:Verdana;font-size:8.5pt; height: 21px;"  TabIndex="15"/> 
                 <asp:Button ID="btnEdit" runat="server" Text="Edit" Width="83px" AccessKey="E" ToolTip="Alt+e"  style="color:White;background-color:SteelBlue;font-family:Verdana;font-size:8.5pt;"  TabIndex="16"/> 
                  <asp:Button ID="btnDel" runat="server" Text="Delete" Width="83px" AccessKey="L"  ToolTip="Alt+l"  style="color:White;background-color:SteelBlue;font-family:Verdana;font-size:8.5pt;"  TabIndex="17"/> 
                   <asp:Button ID="btnClear" runat="server" Text="Clear" Width="83px" AccessKey="C" ToolTip="Alt+c"  style="color:White;background-color:SteelBlue;font-family:Verdana;font-size:8.5pt;"  TabIndex="18"/></td>
                        </tr>
                        <tr>
                            <td align="center" colspan="6">
                                <asp:Label ID="lblResult" runat="server" Font-Bold="True" Font-Names="Verdana" Font-Size="8.5pt"
                                    ForeColor="Maroon" Width="448px"></asp:Label></td>
                        </tr>
                        <tr>
                            <td>
                                 </td>
                            <td align="center" colspan="2">
                                 </td>
                            <td>
                                 </td>
                                <td>
                                 </td>
                                 <td>
                                 </td>
                        </tr>
                        <tr
                          
              <td> <asp:Label ID="Label2" runat="server" Text="Report No:" Width="98px"  Font-Names="Verdana" Font-Size="8.5pt" ForeColor="Maroon" Height="16px"></asp:Label></td>
              <td
                  <asp:TextBox ID="txtReportNo" runat="server" style="color:Black;background-color:White;font-family:Verdana;font-size:8.5pt;" Enabled="False" TabIndex="1"></asp:TextBox>
                    
                  <telerik:RadComboBox ID="ddlReportNo" runat="server"  AutoPostBack="True"  TabIndex="1" EnableViewState="false" EmptyMessage="Select a ReportNo"  EnableLoadOnDemand="True"  AllowCustomText="True"   MarkFirstMatch="True"  style="color:Black;background-color:White;font-family:Verdana;font-size:8pt;" Skin="Sunset" DropDownCssClass="RadComboBox_Sunset" EnableEmbeddedSkins="False" BorderColor="#999999" BorderStyle="Solid" BorderWidth="2px" Font-Names="verdana" Font-Size="8.5pt" EnableVirtualScrolling="True" ShowMoreResultsBox="True">
                  </telerik:RadComboBox>
                        
                      <span style="font-size: 8pt; color: maroon">*</span>
                </td>
              <td> <asp:Label ID="Label3" runat="server" Text="Investigation Name:" Width="120px"  Font-Names="Verdana" Font-Size="8.5pt" ForeColor="Maroon" Height="16px"></asp:Label></td>
              <td
                  <telerik:RadComboBox ID="ddlInvName" runat="server" AutoPostBack="True"  TabIndex="2" EnableViewState="false" EmptyMessage="Select a Investigation"  EnableLoadOnDemand="True"  AllowCustomText="True"   MarkFirstMatch="True"  style="color:Black;background-color:White;font-family:Verdana;font-size:8pt;" Skin="Sunset" DropDownCssClass="RadComboBox_Sunset" EnableEmbeddedSkins="False" BorderColor="#999999" BorderStyle="Solid" BorderWidth="2px" Font-Names="verdana" Font-Size="8.5pt" EnableVirtualScrolling="True" ShowMoreResultsBox="True">
                  </telerik:RadComboBox>
                  <span style="font-size: 8pt; color: maroon">*</span>
                </td>
                <td><asp:Label ID="Label20" runat="server" Text="Department:" Width="80px"  Font-Names="Verdana" Font-Size="8.5pt" ForeColor="Maroon" Height="16px"></asp:Label></td>
                <td>
                 <asp:TextBox ID="txtDept" runat="server" style="color:Black;background-color:White;font-family:Verdana;font-size:8.5pt;" Enabled="False" TabIndex="3"></asp:TextBox>
                </td>
              
            </tr>
                         
                        <tr>
                            <td>
                                 </td>
                            <td>
                                <asp:Button ID="btnReport" runat="server" Text="Report" 
                                    style="color:White;background-color:SteelBlue;font-family:Verdana;font-size:8.5pt;" 
                                    Visible="False"/></td>
                            <td>
                                 </td>
                            <td>
                                 </td>
                            <td>
                                 </td>
                            <td>
                                 </td>
                        </tr>
                         
                        
                        <tr>
                            <td colspan="6">
                             
                            <table align="center" width="100%">
                          <tr>
                          <td align="center">
                         
  
                              <telerik:RadEditor ID="radEditorReport"  runat="server" SkinID="DefaultSetOfTools" Height="600" Width="750">
               
              <Tools>
                <telerik:EditorToolGroup Tag="MainToolbar">
                    <telerik:EditorTool Name="FindAndReplace" />
                    <telerik:EditorSeparator />
                    <telerik:EditorTool Name="Cut" />
                    <telerik:EditorTool Name="Copy" />
                    <telerik:EditorTool Name="Paste" ShortCut="CTRL+V" />
                </telerik:EditorToolGroup>
                <telerik:EditorToolGroup Tag="Formatting">
                    <telerik:EditorTool Name="Bold" />
                    <telerik:EditorTool Name="Italic" />
                    <telerik:EditorTool Name="Underline" />
                    <telerik:EditorSeparator />
                    <telerik:EditorTool Name="ForeColor" />
                    <telerik:EditorTool Name="BackColor" />
                    <telerik:EditorSeparator />
                    <telerik:EditorTool Name="FontName" />
                    <telerik:EditorTool Name="RealFontSize" />
                      
                </telerik:EditorToolGroup>
                <telerik:EditorToolGroup Tag="Image">
                 <telerik:EditorTool Name="ImageManager" />
                </telerik:EditorToolGroup>
            </Tools>
               
             <ImageManager ViewPaths="~/Editor/Img/UserDir/Marketing,~/Editor/Img/UserDir/PublicRelations" UploadPaths="~/Editor/Img/UserDir/Marketing,~/Editor/Img/UserDir/PublicRelations" DeletePaths="~/Editor/Img/UserDir/Marketing,~/Editor/Img/UserDir/PublicRelations">
                            </ImageManager>
                              
            
            <FlashManager ViewPaths="~/Editor/Img/UserDir/Marketing,~/Editor/Img/UserDir/PublicRelations" UploadPaths="~/Editor/Img/UserDir/Marketing,~/Editor/Img/UserDir/PublicRelations" DeletePaths="~/Editor/Img/UserDir/Marketing,~/Editor/Img/UserDir/PublicRelations" />
            <MediaManager ViewPaths="~/Editor/Img/UserDir/Marketing,~/Editor/Img/UserDir/PublicRelations" UploadPaths="~/Editor/Img/UserDir/Marketing,~/Editor/Img/UserDir/PublicRelations" DeletePaths="~/Editor/Img/UserDir/Marketing,~/Editor/Img/UserDir/PublicRelations" />
            <DocumentManager ViewPaths="~/Editor/Img/UserDir/Marketing,~/Editor/Img/UserDir/PublicRelations" UploadPaths="~/Editor/Img/UserDir/Marketing,~/Editor/Img/UserDir/PublicRelations" DeletePaths="~/Editor/Img/UserDir/Marketing,~/Editor/Img/UserDir/PublicRelations" />
            <TemplateManager ViewPaths="~/Editor/Img/UserDir/Marketing,~/Editor/Img/UserDir/PublicRelations" UploadPaths="~/Editor/Img/UserDir/Marketing,~/Editor/Img/UserDir/PublicRelations" DeletePaths="~/Editor/Img/UserDir/Marketing,~/Editor/Img/UserDir/PublicRelations"/>
                              </telerik:RadEditor
                              
                              </td>
                          </tr>
                            </table>
                              
                           
                                </td>
                        </tr>
                         
                        <tr>
                            <td colspan="6">
                                 
                                
                                
                            </td>
                        </tr>
                         
                          
                        </tr>
                         
                        <tr>
                            <td align="center" colspan="6">
                                  
                                <asp:TextBox ID="txtSpeNo" runat="server" BorderStyle="None" ForeColor="White" Height="10px"
                                    Width="100px"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td align="center" colspan="3">
                                 </td>
                        </tr>
                        
                    </table>
                    </ContentTemplate>
                    </asp:UpdatePanel>
                    </td>
                    </tr>
                      <tr>
                            <td align="center" colspan="6">
       <uc1:footer ID="footer1" runat="server" />
                      </td>
                        </tr>
    </div>
    </form>
     
     
</body>
</html>

hi sir,
i am sending Editer controls,these control one problam created sir, insert sucessfully,but edit mode is enter combox text ofter error comeing .i am attach file .plz sir this soluetion tell me .

thanks

Rathan kumar.k 

Richard
Top achievements
Rank 1
 answered on 15 Mar 2012
2 answers
83 views
Hello Hello!

Help me please with the easiest way to approach Trimming of long filenames to fit given Width of Control.

http://imm.io/iTgT

Can be that edited via js e.g. in FileSelected event or restricted by css, text is rendered to span, so I haven't found obvious solution yet. Thanks.
Max
Top achievements
Rank 1
 answered on 15 Mar 2012
11 answers
288 views
I'm sure someone has figured this out by now. I'm at my wits end trying to get it to work. Very little help in the documentation and forums on how to do this.

I have a Grid with about 4 nested tables:


I've tried this but it will not work on any nested DetailTables:

Public Sub HideExpandColumnRecursive(ByVal tableView As GridTableView)
        Dim test As String = Nothing
        Dim nestedViewItems As GridItem() = tableView.GetItems(GridItemType.NestedView)
        For Each nestedViewItem As GridNestedViewItem In nestedViewItems
            For Each nestedView As GridTableView In nestedViewItem.NestedTableViews
                If nestedView.Items.Count = 0 Then
                    Dim cell As TableCell = nestedView.ParentItem("ExpandColumn")
                    cell.Controls(0).Visible = False
                    nestedViewItem.Visible = False
                End If
                If nestedView.HasDetailTables Then
                    HideExpandColumnRecursive(nestedView)
                End If
            Next
        Next
    End Sub

I understand the I have to do a recursive search and set visible to false for all the detailTables as above but I cant figure out how to do this. I read the online help and still cant get it to work. Does anyone have an example on how to hide the expand/collapse image in a multi nested table scenario?

Thank you for your help. Shouldn't this be built in???



<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSourceParent"
            GridLines="None" Skin="Telerik" ShowGroupPanel="True">
            <MasterTableView AutoGenerateColumns="False" DataSourceID="SqlDataSourceParent" DataKeyNames="PART_ID" NoDetailRecordsText="" HierarchyLoadMode="ServerBind">
                <DetailTables>
                    <telerik:GridTableView runat="server" DataKeyNames="PART_ID" DataSourceID="sqlDataSourceSub"
                        GridLines="Both" NoDetailRecordsText="">
                        <RowIndicatorColumn>
                            <HeaderStyle Width="20px" />
                        </RowIndicatorColumn>
                        <DetailTables>
                            <telerik:GridTableView runat="server" DataSourceID="sqlDataSourceSub0"
                                DataKeyNames="PART_ID" NoDetailRecordsText="">
                                <DetailTables>
                                    <telerik:GridTableView runat="server" DataSourceID="sqlDataSourceSub1"
                                        DataKeyNames="PART_ID" NoDetailRecordsText="">
                                        <DetailTables>
                                            <telerik:GridTableView runat="server" DataKeyNames="PART_ID"
                                                DataSourceID="SqlDataSourceSub2">
                                                <ParentTableRelation>
                                                    <telerik:GridRelationFields DetailKeyField="PART_ID" MasterKeyField="PART_ID" />
                                                </ParentTableRelation>
                                                <RowIndicatorColumn>
                                                    <HeaderStyle Width="20px" />
                                                </RowIndicatorColumn>
                                                <ExpandCollapseColumn>
                                                    <HeaderStyle Width="20px" />
                                                </ExpandCollapseColumn>
                                            </telerik:GridTableView>
                                        </DetailTables>
                                        <ParentTableRelation>
                                            <telerik:GridRelationFields DetailKeyField="PART_ID" MasterKeyField="PART_ID" />
                                        </ParentTableRelation>
                                        <RowIndicatorColumn>
                                            <HeaderStyle Width="20px" />
                                        </RowIndicatorColumn>
                                        <ExpandCollapseColumn Visible="True">
                                        </ExpandCollapseColumn>
                                    </telerik:GridTableView>
                                </DetailTables>
                                <ParentTableRelation>
                                    <telerik:GridRelationFields DetailKeyField="PART_ID" MasterKeyField="PART_ID" />
                                </ParentTableRelation>
                                <RowIndicatorColumn>
                                    <HeaderStyle Width="20px" />
                                </RowIndicatorColumn>
                                <ExpandCollapseColumn Visible="True">
                                    <HeaderStyle Width="20px" />
                                </ExpandCollapseColumn>
                            </telerik:GridTableView>
                        </DetailTables>
                        <ParentTableRelation>
                            <telerik:GridRelationFields DetailKeyField="PART_ID" MasterKeyField="PART_ID" />
                        </ParentTableRelation>
                        <ExpandCollapseColumn Visible="True">
                        </ExpandCollapseColumn>
                    </telerik:GridTableView>
                </DetailTables>
                <ExpandCollapseColumn Visible="True">
                </ExpandCollapseColumn>
                <Columns>
                    <telerik:GridBoundColumn DataField="PART_ID" HeaderText="PART_ID" SortExpression="PART_ID"
                        UniqueName="PART_ID">
                    </telerik:GridBoundColumn>
                    
                    <telerik:GridBoundColumn DataField="BASE_ID" HeaderText="BASE_ID" SortExpression="BASE_ID"
                        UniqueName="BASE_ID">
                    </telerik:GridBoundColumn>
                    
                    <telerik:GridBoundColumn DataField="DESCRIPTION" HeaderText="DESCRIPTION" SortExpression="DESCRIPTION"
                        UniqueName="DESCRIPTION">
                    </telerik:GridBoundColumn>
                    
                     <telerik:GridBoundColumn DataField="QTY_ON_HAND" HeaderText="QTY_ON_HAND" SortExpression="QTY_ON_HAND"
                        UniqueName="QTY_ON_HAND">
                    </telerik:GridBoundColumn>
                    
                </Columns>
            </MasterTableView>
            <ClientSettings AllowColumnsReorder="True" AllowDragToGroup="True"
                ReorderColumnsOnClient="True">
            </ClientSettings>
        </telerik:RadGrid>
Princy
Top achievements
Rank 2
 answered on 15 Mar 2012
3 answers
286 views
I noticed that on my menu dropdowns and split button dropdowns certain icons/images seem to get cut off if they have anything in their bottom area.  The images are 16x16 as specified in documentation and to Microsoft standards.  You can see it in the attached images. I'll attach the original icons/images as well so you can see their size. Is this as designed? Bug? What should I do?
Kate
Telerik team
 answered on 15 Mar 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?