Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
619 views
I am receiving the the following error on the  rad combobox.  The combobox is contained within a tooltip.  The actual tooltip is a user control.  I am also using a master page.  The tooltip works fine without the combobox.

When ever I click the combo box, in the tooltip, you see the combo box expand behind the tooltip and the following error pops up.

Attached is the error message screenshot.

I can't seem to get any rad control to work in the tooltips without showing behind the tooltips.  The combo box is the only one that has caused an error.  The other rad controls just show behind the tooltip without errors.

I have the same rad combobox on a child page and it works fine....  except that as soon as the dropdown is shown, the textbox looses focus.

Below is the user control code that I have in the tooltip.

Please let me know what I'm doing wrong and I thank you in advance for any help.

Thanks,

-eric

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mw_ora_prnt_acct_info.ascx.cs" Inherits="Telerik.Web.Examples.ToolTip.ToolTipVersusToolTipManager.InfoCustomers" %>
 
<asp:Panel ID="cust_info_pnl" runat="server">
     
    <asp:Table ID="cust_info_tbl" runat="server" Width="500px">
        <asp:TableRow>
            <asp:TableCell ColumnSpan="2" style="font:20px Yanone Kaffeesatz;color:Black;border-bottom:1px solid Black;text-align:left;">Company Information</asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell Width="150px" Wrap="false" HorizontalAlign="Right">Company Name:</asp:TableCell>
            <asp:TableCell Wrap="false" HorizontalAlign="Left"><asp:TextBox ID="prnt_acct_name_txt" Width="300px" runat="server" CssClass="txtbox"></asp:TextBox></asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell Width="150px" Wrap="false" HorizontalAlign="Right">Account Type:</asp:TableCell>
            <asp:TableCell Wrap="false" HorizontalAlign="Left"><asp:DropDownList ID="acct_type_drp" runat="server" CssClass="txtbox">
                                                              <asp:ListItem Value="EMPLOYER">EMPLOYER</asp:ListItem>
                                                              <asp:ListItem Value="NONE">NONE</asp:ListItem>
                                                              <asp:ListItem Value="PHYSICIAN NETWORK">PHYSICIAN NETWORK</asp:ListItem>
                                                              </asp:DropDownList> </asp:TableCell>
        </asp:TableRow>       
        <asp:TableRow>
            <asp:TableCell Width="150px" Wrap="false" HorizontalAlign="Right">WW Contract Date:</asp:TableCell>
            <asp:TableCell Wrap="false" HorizontalAlign="Left"><asp:TextBox ID="acct_cntrct_date_txt" Width="75px" runat="server" ReadOnly="true" BackColor="LightSlateGray" CssClass="txtbox"></asp:TextBox></asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell Width="150px" Wrap="false" HorizontalAlign="Right">ES Follow-Up Date:</asp:TableCell>
            <asp:TableCell Wrap="false" HorizontalAlign="Left"><asp:TextBox ID="fu_date_txt" Width="75px" runat="server" CssClass="txtbox"></asp:TextBox></asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell Width="150px" Wrap="false" HorizontalAlign="Right">ES Priority:</asp:TableCell>
            <asp:TableCell Wrap="false" HorizontalAlign="Left"><asp:DropDownList ID="es_priority_drp" runat="server" CssClass="txtbox">
                                                              <asp:ListItem Value="6TH">6TH</asp:ListItem>
                                                              <asp:ListItem Value="5TH">5TH</asp:ListItem>
                                                              <asp:ListItem Value="4TH">4TH</asp:ListItem>
                                                              <asp:ListItem Value="3RD">3RD</asp:ListItem>
                                                              <asp:ListItem Value="2ND">2ND</asp:ListItem>
                                                              <asp:ListItem Value="1ST">1ST</asp:ListItem>
                                                              </asp:DropDownList></asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell ColumnSpan="2" style="font:20px Yanone Kaffeesatz;color:Black;border-bottom:1px solid Black;text-align:left;">Carrier Information</asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell Width="150px" Wrap="false" HorizontalAlign="Right"></asp:TableCell>
            <asp:TableCell Wrap="false" HorizontalAlign="Left"> </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell Width="150px" Wrap="false" HorizontalAlign="Right">Insurance Carrier:</asp:TableCell>
            <asp:TableCell Wrap="false" HorizontalAlign="Left"><asp:TextBox ID="ins_carrier_txt" Width="300px" runat="server" CssClass="txtbox"></asp:TextBox>
                                                                
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell> </asp:TableCell>
            <asp:TableCell><telerik:RadComboBox ID="ins_carrier_combo" runat="server" Height="200" Width="640"
                                                            DropDownWidth="720" EmptyMessage="Choose a Carrier" HighlightTemplatedItems="true"
                                                            EnableLoadOnDemand="true" Filter="StartsWith" OnItemsRequested="ins_carrier_combo_ItemsRequested"
                                                             OnAjaxUpdate="OnAjaxUpdate">
                                                            <HeaderTemplate>
                                                                <table style="width: 670px" cellspacing="0" cellpadding="0">
                                                                    <tr>
                                                                        <td style="width: 550px;">
                                                                            Carrier Name
                                                                        </td>
                                                                        <td style="width: 120px; text-align: left;">
                                                                            Account Number
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </HeaderTemplate>
                                                            <ItemTemplate>
                                                                <table style="width: 670px" cellspacing="0" cellpadding="0">
                                                                    <tr>                                                                                                                                       
                                                                        <td style="width: 550px;">
                                                                            <%# DataBinder.Eval(Container, "Attributes['ACCOUNT_NAME']")%>
                                                                        </td>
                                                                        <td style="width: 120px; text-align: left;">
                                                                            <%# DataBinder.Eval(Container, "Attributes['ACCOUNT_NUMBER']")%>
                                                                        </td>
                                                                    </tr>      
                                                                </table>
                                                            </ItemTemplate>
                                                        </telerik:RadComboBox></asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell Width="150px" Wrap="false" HorizontalAlign="Right">Carrier Renewal Date:</asp:TableCell>
            <asp:TableCell Wrap="false" HorizontalAlign="Left"><asp:TextBox ID="renewal_date_txt" Width="75px" runat="server" CssClass="txtbox"></asp:TextBox></asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell Width="150px" Wrap="false" HorizontalAlign="Right">Broker Code:</asp:TableCell>
            <asp:TableCell Wrap="false" HorizontalAlign="Left"><asp:TextBox ID="broker_code_txt" Width="35px" runat="server" CssClass="txtbox"></asp:TextBox></asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell Width="150px" Wrap="false" HorizontalAlign="Right"></asp:TableCell>
            <asp:TableCell Wrap="false" HorizontalAlign="Left"> </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell ColumnSpan="2" style="font:20px Yanone Kaffeesatz;color:Black;border-bottom:1px solid Black;text-align:left;">Misc Information</asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell Width="150px" Wrap="false" HorizontalAlign="Right">Ancillary Services:</asp:TableCell>
            <asp:TableCell Wrap="false" HorizontalAlign="Left"><asp:DropDownList ID="ancil_svcs_drp" runat="server" CssClass="txtbox">
                                                              <asp:ListItem Value="Y">YES</asp:ListItem>
                                                              <asp:ListItem Value="N">NO</asp:ListItem>
                                                              </asp:DropDownList></asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell Width="150px" Wrap="false" HorizontalAlign="Right">Alternate PT:</asp:TableCell>
            <asp:TableCell Wrap="false" HorizontalAlign="Left"><asp:DropDownList ID="alt_pt_drp" runat="server" CssClass="txtbox">
                                                              <asp:ListItem Value="Y">YES</asp:ListItem>
                                                              <asp:ListItem Value="N">NO</asp:ListItem>
                                                              </asp:DropDownList></asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell Width="150px" Wrap="false" HorizontalAlign="Right">Alternate RX:</asp:TableCell>
            <asp:TableCell Wrap="false" HorizontalAlign="Left"><asp:DropDownList ID="alt_rx_drp" runat="server" CssClass="txtbox">
                                                              <asp:ListItem Value="Y">YES</asp:ListItem>
                                                              <asp:ListItem Value="N">NO</asp:ListItem>
                                                              </asp:DropDownList></asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell Width="150px" Wrap="false" HorizontalAlign="Right">Alternate DX:</asp:TableCell>
            <asp:TableCell Wrap="false" HorizontalAlign="Left"><asp:DropDownList ID="alt_dx_drp" runat="server" CssClass="txtbox">
                                                              <asp:ListItem Value="Y">YES</asp:ListItem>
                                                              <asp:ListItem Value="N">NO</asp:ListItem>
                                                              </asp:DropDownList></asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell ColumnSpan="2" style="font:20px Yanone Kaffeesatz;color:Black;border-bottom:1px solid Black;text-align:left;">Account Status</asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell Width="150px" Wrap="false" HorizontalAlign="Right">Status:</asp:TableCell>
            <asp:TableCell Wrap="false" HorizontalAlign="Left"><asp:DropDownList ID="acct_status_drp" runat="server" CssClass="txtbox" OnSelectedIndexChanged="acct_status_chngd" AutoPostBack="true">
                                                              <asp:ListItem Value="A">ACTIVE</asp:ListItem>
                                                              <asp:ListItem Value="I">INACTIVE</asp:ListItem>
                                                              </asp:DropDownList></asp:TableCell>
        </asp:TableRow>
        <asp:TableRow ID="acct_inactive_row" runat="server" Visible="false">
            <asp:TableCell Width="150px" Wrap="false" HorizontalAlign="Right">Try To Get Back:</asp:TableCell>
            <asp:TableCell Wrap="false" HorizontalAlign="Left"><asp:DropDownList ID="inactive_try_to_bet_bck_drp" runat="server" CssClass="txtbox">
                                                              <asp:ListItem Value="-">  MAKE A SELECTION  </asp:ListItem>
                                                              <asp:ListItem Value="Y">YES - AT NEXT RENEWAL</asp:ListItem>
                                                              <asp:ListItem Value="N">NO</asp:ListItem>
                                                              </asp:DropDownList></asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell Width="150px" Wrap="false" HorizontalAlign="Right"></asp:TableCell>
            <asp:TableCell Wrap="false" HorizontalAlign="Right">
                    <telerik:radbutton id="submit_srch_btn" runat="server" text="UPDATE" Width="50"  OnClick="acct_update_submit"/> <telerik:radbutton id="cancel_update_btn" runat="server" text="CANCEL" Width="50" OnClick="acct_update_cancel"/>
            </asp:TableCell>
        </asp:TableRow>         
    </asp:Table>
 
     
</asp:Panel>


using System;
using System.Collections;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Oracle.DataAccess.Client;
using Telerik.Web.UI;
 
namespace Telerik.Web.Examples.ToolTip.ToolTipVersusToolTipManager
{
    public partial class InfoCustomers : System.Web.UI.UserControl
    {
        private string _party_id;
 
        public string Party_ID
        {
            get { return _party_id; }
            set { _party_id = value; }
        }
 
        protected void Page_PreRender(object sender, EventArgs e)
        {
            get_acct_info();   
 
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            cust_info_pnl.Visible = true;        
        }
 
        private OracleConnection CreateConnection()
        {
            string ora_db = "Data Source=(DESCRIPTION="
                                        + "(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=xxx.xxx.xxx.xxx)(PORT=xxxx)))"  //test server
                                        + "(CONNECT_DATA=(SERVICE_NAME=xxxx)));"
                                        + "User Id=xxxx;Password=xxxx;";
            return new OracleConnection(ora_db);
        }
 
        
 
        protected void acct_update_submit(object sender, EventArgs e)
        {
         
        }
 
        protected void acct_update_cancel(object sender, EventArgs e)
        {           
            get_acct_info();
        }
 
        protected void acct_status_chngd(object sender, EventArgs e)
        {
            if (acct_status_drp.SelectedValue == "A")
            {
                acct_inactive_row.Visible = false;
            }
            else
            {
                acct_inactive_row.Visible = true;
            }
        }
 
        protected void get_acct_info()
        {
 
            OracleConnection conn = CreateConnection();
            try
            {
                conn.Open();
 
 
                DataTable information = new DataTable();
 
                try
                {
                    string sql = "SELECT PARTY_NAME, ATTRIBUTE_CATEGORY, ATTRIBUTE1 ,ATTRIBUTE2, ATTRIBUTE3,ATTRIBUTE4 ,ATTRIBUTE5 ,ATTRIBUTE6 ,ATTRIBUTE7 ,ATTRIBUTE9 ,ATTRIBUTE10 ,ATTRIBUTE11 "
                                + " FROM AR.HZ_PARTIES "
                                + " WHERE PARTY_TYPE = 'ORGANIZATION' "
                                + "           AND ATTRIBUTE_CATEGORY = 'EMPLOYER' "
                                + "           AND PARTY_ID = " + _party_id;
 
                    OracleCommand cmd = new OracleCommand(sql, conn);
                    OracleDataReader dr3 = cmd.ExecuteReader();
 
                    if (dr3.Read())
                    {
                        prnt_acct_name_txt.Text = Convert.ToString(dr3.GetValue(0));
                        acct_type_drp.SelectedValue = Convert.ToString(dr3.GetValue(1));
                        acct_cntrct_date_txt.Text = Convert.ToDateTime(dr3.GetValue(2)).ToString("dd-MMM-yyyy");
                        fu_date_txt.Text = Convert.ToDateTime(dr3.GetValue(3)).ToString("dd-MMM-yyyy");
                        es_priority_drp.SelectedValue = Convert.ToString(dr3.GetValue(9));
                        ins_carrier_txt.Text = Convert.ToString(dr3.GetValue(10));
 
                        ins_carrier_combo.Text = Convert.ToString(dr3.GetValue(10));
 
                        renewal_date_txt.Text = Convert.ToDateTime(dr3.GetValue(4)).ToString("dd-MMM-yyyy");
                        broker_code_txt.Text = Convert.ToString(dr3.GetValue(11));
                        ancil_svcs_drp.SelectedValue = Convert.ToString(dr3.GetValue(5));
                        alt_pt_drp.SelectedValue = Convert.ToString(dr3.GetValue(6));
                        alt_rx_drp.SelectedValue = Convert.ToString(dr3.GetValue(7));
                        alt_dx_drp.SelectedValue = Convert.ToString(dr3.GetValue(8));
 
                    }
 
                    dr3.Close();
                    dr3.Dispose();
                }
                finally
                {
 
                }
            }
            finally
            {
                if (conn.State == ConnectionState.Open)
                {
                    conn.Close();
                }
            }
 
        }
 
        protected void ins_carrier_combo_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
        {
            OracleDataAdapter adapter = new OracleDataAdapter("SELECT HP.PARTY_NAME, HCA.ACCOUNT_NAME, HCA.ACCOUNT_NUMBER, HCA.CUST_ACCOUNT_ID "
                                                                + " FROM AR.HZ_CUST_ACCOUNTS HCA  "
                                                                + "      INNER JOIN AR.HZ_PARTIES HP ON HP.PARTY_ID = HCA.PARTY_ID "
                                                                + " WHERE HCA.ATTRIBUTE_CATEGORY = 'INSURANCE CARRIER' AND "
                                                                + "       HCA.STATUS = 'A' AND "
                                                                + "       HCA.ACCOUNT_NAME LIKE '" + e.Text.ToUpper() + "%' "
                                                                + " ORDER BY ACCOUNT_NUMBER ",
                ConfigurationManager.ConnectionStrings["oracle_db"].ConnectionString);
 
            DataTable dataTable = new DataTable();
            adapter.Fill(dataTable);
 
            foreach (DataRow dataRow in dataTable.Rows)
            {
                RadComboBoxItem item = new RadComboBoxItem();
 
                item.Text = (string)dataRow["ACCOUNT_NAME"];
                item.Value = dataRow["CUST_ACCOUNT_ID"].ToString();
 
                string unitPrice = (string)dataRow["ACCOUNT_NAME"];
                string unitsInStock = (string)dataRow["ACCOUNT_NUMBER"];
 
                item.Attributes.Add("ACCOUNT_NAME", unitPrice.ToString());
                item.Attributes.Add("ACCOUNT_NUMBER", unitsInStock.ToString());
 
                ins_carrier_combo.Items.Add(item);
 
                item.DataBind();
            }
        }
 
    }
}
Marin Bratanov
Telerik team
 answered on 06 Oct 2014
1 answer
227 views
Hi All,

As this control shares the design of the RadTreeView I have found that if I change the color of the text on that via CSS I also end up changing the CSS of all the text on the Drop down Trees.

I am using .RadTreeView_Black to access the normal TreeView.  What CSS should I also use to access the drop down TreeView text,  I have tried things like .rddtPopup_Black .RadTreeView .RadTreeView_Black span with no luck.,

Regards

Jon
Magdalena
Telerik team
 answered on 06 Oct 2014
1 answer
110 views
Hello team Telerik,
Can we give Selection and Deletion option on Image Editor ?

what is want is:

i added a text element on rad image editor , then i want to edit it after insertion .(suppose modify a phone number in it), so what should i do is i select only that phone number area and delete it paste a new text element on its place with new phone number and save it as an image.

can we achieve it (By any means,approach.)
if yes then please post a demo , if no then how will i edit my data after insertion in RadImageEditor.

----------------------------------------------------------------------------------------------------------------------------------- 
Vessy
Telerik team
 answered on 06 Oct 2014
1 answer
216 views
I'm trying to put two rad gauges on top of each other. If I set the labels visible = false for the top gauge, it has a completely different size than the bottom. Why does this happen?
aspx code:
<telerik:RadLinearGauge runat="server" ID="rlgOverHeadActual" Width="590px" Height="70px"
                 Skin="Windows7"
               Style="float: left; " ResolvedRenderMode="Classic" >
 
               <Pointer Shape="BarIndicator" Size="15"  Color="#D8B179"   >
                   <Track Color="#646262" Visible="true" Opacity="0.4" />
               </Pointer>     
               <Scale Vertical="false"    >
                    
                    <MajorTicks Visible="false" Size="20" Color="Black"/>
                    <MinorTicks Visible="false" Size="10" Color="Black" />
                    <Labels Visible="false"  />
 
                    <Ranges   >
                        
                     </Ranges>
               </Scale>
                
          </telerik:RadLinearGauge><telerik:RadLinearGauge runat="server" ID="rlgOverhead" Width="590px" Height="70px"
                 Skin="Windows7"
               Style="float: left;" ResolvedRenderMode="Classic" >
 
               <Pointer Shape="BarIndicator" Size="15"  Color="#566D8F"   >
                   <Track Color="#646262" Visible="true" Opacity="0.4" />
               </Pointer>     
               <Scale Vertical="false"    >
                    
                    <MajorTicks Visible="true" Size="20" Color="Black"/>
                    <MinorTicks Visible="true" Size="10" Color="Black" />
                    <Labels  />
 
                    <Ranges   >
                        
                     </Ranges>
               </Scale>
          </telerik:RadLinearGauge>
          <asp:Label ID="lbltest" runat="server"></asp:Label>
         <asp:SqlDataSource ID="sqlOverHead" runat="server"
            ConnectionString="<%$ ConnectionStrings:IntranetConnectionString %>"
            SelectCommand="USP_Intranet_Select_Overhead" SelectCommandType="StoredProcedure"></asp:SqlDataSource>

VB Code with some formatting options that I'm doing:
Private Sub OverHeadGauge()
       Dim dvOverHeadGauge As DataView
       Dim decOHBudgetAmount As Decimal = 0
       Dim decOHExpenseAmount As Decimal = 0
       Dim dtOverHeadGoodThrough As DateTime = "8/1/2014"
       dvOverHeadGauge = CType(sqlOverHead.Select(DataSourceSelectArguments.Empty), DataView)
       '        intFiscalYear = CType(dv.Table.Rows(0)(0), Integer)
       decOHBudgetAmount = CType(dvOverHeadGauge.Table.Rows(0)(0), Decimal)
       decOHBudgetAmount = Math.Round(decOHBudgetAmount / 1000000, 2)
       decOHExpenseAmount = CType(dvOverHeadGauge.Table.Rows(0)(1), Decimal)
       decOHExpenseAmount = Math.Round(decOHExpenseAmount / 1000000, 2)
       dtOverHeadGoodThrough = CType(dvOverHeadGauge.Table.Rows(0)(2), DateTime)
       Dim decMonthscale As Decimal = decOHBudgetAmount / 12
       Dim mthFY As Integer = 0
       Select Case Month(dtOverHeadGoodThrough)
           Case 1
               mthFY = 7
           Case 2
               mthFY = 8
           Case 3
               mthFY = 9
           Case 4
               mthFY = 10
           Case 5
               mthFY = 11
           Case 6
               mthFY = 12
           Case 7
               mthFY = 1
           Case 8
               mthFY = 2
           Case 9
               mthFY = 3
           Case 10
               mthFY = 4
           Case 11
               mthFY = 5
           Case 12
               mthFY = 6
       End Select
 
       decMonthscale = decMonthscale * mthFY
 
       'Set the top grid
       rlgOverHeadActual.Scale.Min = 0
       rlgOverHeadActual.Scale.Max = Math.Round(decOHBudgetAmount + 0.5, 0)
 
       rlgOverHeadActual.Pointer.Value = decOHExpenseAmount
       'rlgOverHeadActual.Scale.Labels.Visible = False
       rlgOverHeadActual.Scale.MinorTicks.Visible = False
       rlgOverHeadActual.Scale.MajorTicks.Visible = False
       rlgOverHeadActual.Scale.Labels.Format = "${0}m"
       'rlgOverHeadActual.Scale.Labels.Font = "15px 'PT Sans', sans-serif"
 
       If decOHExpenseAmount > decOHBudgetAmount Then
           rlgOverHeadActual.Pointer.Color = Drawing.Color.Red
       End If
 
 
       'decOHExpenseAmount = decOHBudgetAmount * 9
       rlgOverhead.Scale.Min = 0
       rlgOverhead.Scale.Max = Math.Round(decOHBudgetAmount + 0.5, 0)
       rlgOverhead.Scale.MajorUnit = 1
       rlgOverhead.Scale.MinorUnit = 0.1
       rlgOverhead.Pointer.Value = decMonthscale
       rlgOverhead.Scale.Labels.Format = "${0}m"
       'rlgOverhead.Scale.Labels.Font = "15px 'PT Sans', sans-serif"
 
 
       Dim gr1 As New GaugeRange()
       Dim gr2 As New GaugeRange()
 
       gr1.From = decOHBudgetAmount
       gr1.To = rlgOverhead.Scale.Max
       gr1.Color = Drawing.ColorTranslator.FromHtml("#B14747") 'Drawing.Color.Red
 
    
 
       rlgOverhead.Scale.Ranges.Add(gr1)
       'rlgOverhead.Scale.Ranges.Add(gr2)
 
 
 
 
 
   End Sub


Danail Vasilev
Telerik team
 answered on 06 Oct 2014
1 answer
149 views
I am trying to get the HTMLCharts working on my Final Project for school. The working fine in Visual Studio's IIS Express, but when I move them to the school's webserver I get the following error;

Server Error in '/' Application.Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies. The system cannot find the file specified.

Source Error:

[No relevant source lines]
Source File: none    Line: 0

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Telerik.Web.UI' could not be loaded.

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1025
Danail Vasilev
Telerik team
 answered on 06 Oct 2014
1 answer
162 views
Hi everyone,
I have a problem with formatting negative values. 
    I have number :   1234567,892 and I need format it:   12,334,567.892  
    I have number : - 1234567,892 and I need format it: - 12,334,567.892 
But my result when I use DataFormatString "###,###,###.###":
     1234567,892    => 12,334,567.892  : Correct
   - 123,892            => - ,123,892            : Not correct   (I need -123,892)
     123,892            =>    ,123,892            : Not correct   (I need  123,892)
Have you any ideas ?
Thanks you very much !

P/s: My code
 <telerik:RadHtmlChart runat="server" ID="rcProfile" Height="380px" PlotArea-Appearance-Visible="false">                                                
                                                <PlotArea>
                                                    <Appearance>
                                                        <FillStyle BackgroundColor="White" />                                                        
                                                    </Appearance>
                                                    <Series>
                                                        <telerik:ColumnSeries DataFieldY="VAL_P" Name="Công suất" Stacked="false" ColorField="Blue"
                                                            Spacing="0" Gap="0">
                                                            <Appearance>
                                                                <FillStyle BackgroundColor="#F0AD4E" />                                                                
                                                            </Appearance>
                                                            <LabelsAppearance Visible="false">
                                                                <TextStyle Color="Red" />
                                                            </LabelsAppearance>
                                                            <LabelsAppearance DataFormatString="###,###,###,###.###"></LabelsAppearance>
                                                            <TooltipsAppearance BackgroundColor="White" DataFormatString="###,###,###,###.###" />
                                                        </telerik:ColumnSeries>
                                                    </Series>
                                                    <XAxis DataLabelsField="GIO_HTHI" >
                                                        <MajorGridLines Visible="false" Color="Blue" />
                                                        <MinorGridLines Visible="false" Color="Blue" />
                                                        <LabelsAppearance RotationAngle="75">
                                                        </LabelsAppearance>
                                                        <TitleAppearance Text="Thời gian">
                                                            <TextStyle FontFamily="Time new roman"  />
                                                        </TitleAppearance>
                                                    </XAxis>
                                                    <YAxis>
                                                        <MinorGridLines Visible="false" />
                                                        <MajorGridLines Color="WhiteSmoke" />
                                                        <TitleAppearance Text="kWh">
                                                            <TextStyle FontFamily="Time new roman" />
                                                        </TitleAppearance>
                                                    </YAxis>
                                                </PlotArea>
                                                <Legend>
                                                    <Appearance Visible="false">
                                                    </Appearance>
                                                </Legend>
                                                <ChartTitle Text="BIỂU ĐỒ PHỤ TẢI">
                                                    <Appearance>
                                                        <TextStyle Bold="true" FontFamily="Time new roman" Color="Blue" />
                                                    </Appearance>
                                                </ChartTitle>
                                            </telerik:RadHtmlChart>
Danail Vasilev
Telerik team
 answered on 06 Oct 2014
1 answer
103 views
Hi,

I am working on telerik rad grid and relatively new using it in asp.net platform.

I have a command button called 'delete' in my grid, which allows users to delete rows from the grid which internally sets a flag indicating that those rows are the deleted ones.

There is a checkbox outside the grid which allows the users to include both deleted and active rows. So when the check box is clicked, I want the "delete" command column to display as "undelete" for the deleted rows and "delete" for the active rows.

Clicking on "undelete" will set the flag as active in the database and the command text should change back to "delete".

How can I achieve this?

Appreciate your replies.
Thanks
Amy
Radoslav
Telerik team
 answered on 06 Oct 2014
3 answers
191 views
I'm new to the radchart databinding process and after spending an excessive amount of time trying to figure out why I'm not showing any return when I bind to the database I thought I'd ask the sea of experts. I'm sure this has been discussed but when I searched on databinding I only got three posts so please excuse if I am repeating something previously shown.

Attached is a screen shot of what I see currently. The XAxis labels (2008 2009 2010...) are pulled from the database and are displaying as I expected. What isn't showing are the values reflected in the rest of the table. This is pretty straightforward and I'm positive it is something exceptionally simple I'm overlooking but can anyone shed some light on what that might be? I've gotten lost in the mixed examples that came with this add-on so I'm not sure where I'm crossing signals.

Below is the code for my chart.aspx page and it's code behind. The binding taking place in the code behind file is simply binding to a data object that I've created but isn't really relevant to this issue since all it does is open,get, close the database.

Thanks in advance.

Tony


Chart.aspx:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="chart.aspx.cs" Inherits="myworkcalpassplus.chart" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="QsfSkinManager" runat="server" ShowChooser="true"  Visible="false"/>
    <telerik:RadFormDecorator ID="QsfFromDecorator" runat="server" DecoratedControls="All" EnableRoundedCorners="false" />

     <div style="width: 800px; height: 500px;">
          <telerik:RadHtmlChart runat="server" Width="800px" Height="500px" ID="RadHtmlChart1" >
               <PlotArea>
                    
                         <YAxis MaxValue="100" MinValue="0" Step="10" >
                              <TitleAppearance Text="Units"></TitleAppearance>
                         </YAxis>
                         <XAxis DataLabelsField="AcademicYear"></XAxis>
                         <Series>
                              <telerik:ColumnSeries Name="Average" DataFieldY="Average" >
                                   <TooltipsAppearance Color="White" BackgroundColor="Orange" DataFormatString="P"/>
                                  
                              </telerik:ColumnSeries>
                              <telerik:ColumnSeries Name="Top 10 Region" DataFieldY="Top10Region">
                                   <TooltipsAppearance Color="White" BackgroundColor="Orange" DataFormatString="P"/>
                              </telerik:ColumnSeries>
                              <telerik:ColumnSeries Name="Statewide" DataFieldY="Statewide">
                                   <TooltipsAppearance Color="White" BackgroundColor="Orange" DataFormatString="P"/>
                              </telerik:ColumnSeries>
                         </Series>
               </PlotArea>
               <Legend>
                    <Appearance Visible="false">
                    </Appearance>
               </Legend>
               <ChartTitle Text="STEM Dashboard">
               </ChartTitle>
          </telerik:RadHtmlChart>
     </div>
    </form>
</body>
</html>


Codebehind: 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DataAccess;

namespace myworkcalpassplus
{
    public partial class chart : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Data chartData = new Data();
                RadHtmlChart1.DataSource = chartData.GetChartData();
                RadHtmlChart1.DataBind();
            }
        }
    }
}


Mind you I was following along with several examples and that's what I ended up with expecting just to see a simple chart display.

Thanks again!










Danail Vasilev
Telerik team
 answered on 06 Oct 2014
3 answers
174 views
Hello,

I need an argent help with the following requirement:

on each Treeview node click I need to load Grid
with different columns, headers and data .



I create a grid on Click event of the TreeView,
but the generated Grid disappears on PostBack 

 

protected void CreateGrid()

        {

           
RadGrid DataGrid = new RadGrid();

           
DataGrid.ID = "DataGrid";           

           
DataGrid.ViewStateMode = System.Web.UI.ViewStateMode.Enabled;

           
DataGrid.enablea

            DataGrid.AutoGenerateColumns
= true;

           
DataGrid.MasterTableView.AutoGenerateColumns = false;

           
DataGrid.MasterTableView.ShowHeadersWhenNoRecords = true;



           
GetGridHeader(table_name, DataGrid);

           
DataGrid.DataSource = GetData(table_name);

           
DataGrid.DataBind();

           
PlaceHolder1.Controls.Add(DataGrid);



}


Please advise what is the best way to do it, and
what is the problem with my approach.

Thank you,
Vadim


















































Viktor Tachev
Telerik team
 answered on 06 Oct 2014
2 answers
186 views
Hello everyone!

I has a problem with input data for radtextbox - What happens when i input text as "</script>" on radtextbox?
Current i have a error when input data as "</script>". Control Telerik default encode for tags html as: <br/>, <html>, <h1>....???

Please help me explain when input a data not validate as "</script>".

Thanks a lot for all help!


chammua
Top achievements
Rank 1
 answered on 06 Oct 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?