Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
170 views
I have a RadComboBox that exists in a P tag with a Label tag next to it.

When the page renders out instead of having

P
    Label
    RadComboBox
/P

I get

P
   Label
/P
Div
    RadComboBox
/Div

This is making layout incredibly difficult since my P tags are positioning everything on my page.
Chris Marisic
Top achievements
Rank 1
 answered on 29 Sep 2009
1 answer
52 views
I need to "tooltipify" 10 images on a page. Each item, each tooltip needs to display different text.

I assumed that I should use tooltipmanager and add all the items to the collection. However, from what I see, this only allows me to add the same tool tip text to each of the items instead of 10 tool tips with different messages.

Is this correct?

If so, does this mean I create a different tool tip for each of the items?

Thanks in advance
Georgi Tunev
Telerik team
 answered on 29 Sep 2009
7 answers
140 views
I need to create a menu in which only the top level contains images. But I can't seem to style it up properly. I really want to collapse the upper level (as when you set skin="") but want the drop downs styles. The biggest problem is the space around the images. Is there an easy was to handle this or am I going to have to learn skin editing?

Stephen
Brad H
Top achievements
Rank 2
 answered on 29 Sep 2009
2 answers
84 views
Is the relationship between X and Y items on a chart 1 to 1?

I have data that looks like this:

Cnt      Date               Week
1         09/23/2009     09/20/2009
1         09/24/2009     09/20/2009
4         09/25/2009     09/20/2009
11       09/28/2009     09/27/2009

I am doing a line chart and would like to have two "X" items from the data above: 9/20/2009 and 9/27/20009. The 9/20/2009 x item would have the three appropriate Y entries. Is it possible to group Y items into X items in this manner?

Thanks.
James
Top achievements
Rank 1
 answered on 29 Sep 2009
3 answers
156 views
I end up with the date and time in a textbox which is supposed to contain only the date. To reproduce this problem, the following code is handy - hit submit and the time will appear in the textboxes, and will vanish when the user clicks each textbox. I should note that this is using the latest version of RadControls as of this date, 2008.3.1314.20.

<%@ Page Language="C#" AutoEventWireup="true" Codebehind="Test1.aspx.cs" Inherits="Testing.Test1" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml">  
<head runat="server">  
   <title>Untitled Page</title> 
</head> 
<body> 
   <form id="form1" runat="server">  
      <div> 
         <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
         </telerik:RadScriptManager> 
         <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
         </telerik:RadAjaxManager> 
         <asp:TextBox ID="TextBox1" runat="server" /><br /> 
         <asp:TextBox ID="TextBox2" runat="server" /><br /> 
         <asp:TextBox ID="TextBox3" runat="server" /><br /> 
         <asp:TextBox ID="TextBox4" runat="server" /><br /> 
         <asp:TextBox ID="TextBox5" runat="server" /><br /> 
         <telerik:RadInputManager ID="RadInputManager1" runat="server">  
            <telerik:DateInputSetting Culture="English (United States)" DateFormat="MM/dd/yyyy" 
               DisplayDateFormat="MM/dd/yyyy" SelectionOnFocus="SelectAll" MinDate="1920-01-01">  
               <TargetControls> 
                  <telerik:TargetInput ControlID="TextBox1" /> 
                  <telerik:TargetInput ControlID="TextBox2" /> 
                  <telerik:TargetInput ControlID="TextBox3" /> 
                  <telerik:TargetInput ControlID="TextBox4" /> 
                  <telerik:TargetInput ControlID="TextBox5" /> 
               </TargetControls> 
            </telerik:DateInputSetting> 
         </telerik:RadInputManager> 
         <input type="button" onclick="fnPostBack();" value="Submit" /> 
         <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">  
 
            <script type="text/javascript">  
               <!--  
                  function fnPostBack() {  
                     $find("<%=RadAjaxManager1.ClientID %>").ajaxRequest("Test");  
                  }  
               //--> 
            </script> 
 
         </telerik:RadScriptBlock> 
      </div> 
   </form> 
</body> 
</html> 
 

And the code-behind:
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;  
 
namespace Testing  
{  
   public partial class Test1 : System.Web.UI.Page  
   {  
      protected void Page_Load(object sender, EventArgs e)  
      {  
         TextBox1.Text = DateTime.Now.ToString();  
         TextBox2.Text = DateTime.Now.ToString();  
         TextBox3.Text = DateTime.Now.ToString();  
         TextBox4.Text = DateTime.Now.ToString();  
         TextBox5.Text = DateTime.Now.ToString();  
      }  
   }  
}  
 
Tsvetoslav
Telerik team
 answered on 29 Sep 2009
4 answers
108 views
in the global.asax file, ive set the current culture as below

 

protected void Application_BeginRequest(object sender, EventArgs e)

 

{

 

Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-GB");

 

 

Thread.CurrentThread.CurrentCulture = new CultureInfo("en-GB");

 

}



in my .aspx page, I have a date input like this

<

 

telerik:RadDatePicker ID="RadDatePickerNewsDate" runat="server" Calendar-CultureInfo="English (United Kingdom)" MinDate="01/01/2000 00:00:00" SkinID="Vista">

 

 

</telerik:RadDatePicker>

 



in my codebehind, I set the default date like this

this

 

.RadDatePickerNewsDate.SelectedDate = DateTime.Now;

 



and the date comes out in American format.  Why is this ?   eg 09/22/2009

Daniel
Telerik team
 answered on 29 Sep 2009
3 answers
158 views
Hi,

Thank you for your support in the past.  I have an issue with autocomplete for a combo box.

I implemented autocomplete for a rad combo box.  This works fine the first time and items are pulled in as I type the employee name.  However, if I select an employee and then return to select another employee, the auto complete freezes at "uploading...".  Is there a work around for this?  What am I doing wrong?

Thank you very much.

Suresh

Here is the rad combo box declaration:

<telerik:radcombobox id="RadComboBoxEmployeeName" runat="server" AutoPostBack="true" OnItemsRequested="RadComboBoxEmployeeName_ItemsRequested" AccessibilityMode="True" AllowCustomText="True" EnableLoadOnDemand="True" Width="174px"></telerik:radcombobox>

Code behind for RadComboBoxEmployeeName:

Protected Sub RadComboBoxEmployeeName_ItemsRequested(ByVal sender As Object, ByVal e As RadComboBoxItemsRequestedEventArgs)
        'add only the companies that meet the search criterion

        Dim objPE As New ProposalEmployee
        Dim dt As DataTable
        dt = objPE.GetAllLikeEmployees(e.Text).Tables(0)

        Dim comboBox As RadComboBox = DirectCast(sender, RadComboBox)
        comboBox.Items.Clear()
        For Each row As DataRow In dt.Rows
            Dim item As New RadComboBoxItem()
            item.Text = row("EmployeeName").ToString()
            item.Value = row("EmployeeNo").ToString()
            comboBox.Items.Add(item)
        Next
    End Sub

Selected index change for RadComboBoxEmployeeName:

Protected Sub RadComboBoxEmployeeName_SelectedIndexChanged(ByVal o As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) Handles RadComboBoxEmployeeName.SelectedIndexChanged
        Try
            WriteLine("RadComboBoxEmployeeName_SelectedIndexChanged")
            Dim strEmployeeNo As String
            strEmployeeNo = RadComboBoxEmployeeName.SelectedValue
            If strEmployeeNo = "" Then
                Exit Sub
            End If
            Dim objPE As New ProposalEmployee
            Dim ds As DataSet = objPE.GetEmployee(strEmployeeNo)

            lblAssmtDate.Text = ds.Tables(0).Rows(0)("AssessmentDate")
            lblBillRate.Text = "" 'ds.Tables(0).Rows(0)("BillRate")
            lblBurdenedRate.Text = ds.Tables(0).Rows(0)("StandardBurdenRate")
            lblChangedBy.Text = ds.Tables(0).Rows(0)("ChangedUserId")
            lblChangedDate.Text = ds.Tables(0).Rows(0)("ChangedDateTime")
            'lblContractVehicle.Text = ds.Tables(0).Rows(0)("LaborSchedule")
            lblCreatedBy.Text = "" 'ds.Tables(0).Rows(0)("CreatedUserId")
            lblCreatedDate.Text = "" 'ds.Tables(0).Rows(0)("CreatedDateTime")
            lblEducation.Text = "" 'ds.Tables(0).Rows(0)("Education")
            lblEmployeeName.Text = ds.Tables(0).Rows(0)("EmployeeName")
            lblEmployeeNo.Text = ds.Tables(0).Rows(0)("EmployeeNo")
            lblExperience.Text = "" 'ds.Tables(0).Rows(0)("Experience")
            lblOriginalCC.Text = ds.Tables(0).Rows(0)("CC")
            lblProfit.Text = "" 'ds.Tables(0).Rows(0)("Profit")
            lblRefId.Text = "" 'ds.Tables(0).Rows(0)(0)
            lblTitle.Text = ds.Tables(0).Rows(0)("TitleDesc")

            txtTBDWageRate.Text = ds.Tables(0).Rows(0)("StandardCostRate")
            'drpCostCenterForEmployee.SelectedValue = ds.Tables(0).Rows(0)("AdjustedCC")
            drpTBDTitle.SelectedValue = ""  'ds.Tables(0).Rows(0)("TBDTitle")
            'drpSite.SelectedValue = ds.Tables(0).Rows(0)("Site")
            txtAnnualSalary.Text = ds.Tables(0).Rows(0)("AnnualSalary")
            'drpContractVehicle.SelectedValue = ds.Tables(0).Rows(0)("LaborSchedule")
            'drpLaborCategory.SelectedValue = ds.Tables(0).Rows(0)("LaborCategoryCode")
            txtNewNotes.Text = ""
            'txtPrevNotes.Text = ds.Tables(0).Rows(0)("Notes")
            PopulateCostCenterScheduleAndLC()

        Catch ex As Exception
            CmFunc.ErrorLog("PropoposalEmployeeDetails_Load", ex.ToString())
            lblErrorMsg1.Text = ex.Message
        End Try




Simon
Telerik team
 answered on 29 Sep 2009
3 answers
86 views

Hi

My requirement is

1.        On appointment  click – User will be redirect to new screen with more details about appointment

2.       On iExport Button Click on the Appointment- User should able to add the appointment in the outlook.

Problem: but when user click on the iExport button, scheduler show the popup to add appointment in the calendar and it also call the On Appointment Click and redirect to next screen.

 

We want to suppress the Onappoitment click event when click on the iExport.

Would you please look into this ?

Thanks in Advance.

Peter
Telerik team
 answered on 29 Sep 2009
1 answer
76 views
Hi,

Since installing the 2009.2.826.35 version, when I call get_html() the return value now includes a body tag.  This was not happening in the prior version.

Any suggestions for a fix?  This is a terrible bug and has rendered this editor completely unusable.  I need a fix very quickly.

I'm going to back us off of this version and go back to the version that works.

Thanks
Rich
Rumen
Telerik team
 answered on 29 Sep 2009
1 answer
141 views
HI,

I have a treeview populated like this

+ Parent1
     SubParentA
Child1
        Child2
     SubParentB
Child1
        Child2
+ Parent2
       ChildA
       ChildB

How do I remove the space between '+' sign and text (Parent1)
and move the 'Child' nodes to the left?
Yana
Telerik team
 answered on 29 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?