Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
141 views
Hello,

I am having problems getting the value selected from the combo box. I assume the code would be the same as a regular asp:DropDownList?
I get the error: Value of type 'String' cannot be converted to 'Telerik.Web.UI.RadComboBox'

 <telerik:RadComboBox ID="Title" runat="server"  
                                     ToolTip="Please enter your title" Skin="WebBlue" Text="Title"  
                                   > 
                                     <Items> 
                                         <telerik:RadComboBoxItem runat="server" Text="Mr" Value="Mr" /> 
                                         <telerik:RadComboBoxItem runat="server" Text="Mrs" Value="Mrs" /> 
                                         <telerik:RadComboBoxItem runat="server" Text="Miss" Value="Miss" /> 
                                         <telerik:RadComboBoxItem runat="server" Text="Ms" Value="Ms" /> 
                                         <telerik:RadComboBoxItem runat="server" Text="Dr" Value="Dr" ToolTip="Please give your title" /> 
                                         <telerik:RadComboBoxItem runat="server" Text="Prof" Value="Prof" /> 
                                     </Items> 
                                     <CollapseAnimation Duration="200" Type="OutQuint" /> 
                                 </telerik:RadComboBox> 

Imports System.Net.Mail 
Imports System.Net 
 
Partial Class fastquote_Default 
    Inherits System.Web.UI.Page 
 
    Protected Sub SendEmail_Click(ByVal sender As ObjectByVal e As System.Web.UI.ImageClickEventArgs) 
        ' !!! UPDATE THIS VALUE TO YOUR EMAIL ADDRESS  
        Const ToAddress As String = "me@gmail.com" 
        Dim mm As New MailMessage() 
        ' (2) Assign the MailMessage's properties  
        mm.Subject = "GetAQuote" 
        mm.IsBodyHtml = True 
        mm.Body = ("" & (HttpUtility.HtmlEncode(Title.SelectedItem.Value) & "")) 
        Dim smtp As New SmtpClient() 
        ' (4) Send the MailMessage (will use the Web.config settings)  
        smtp.Send(mm) 
        
    End Sub 
     
    
 
 
End Class 
Brent
Top achievements
Rank 1
 asked on 07 Feb 2009
2 answers
141 views
'ChartSeries' is ambiguous in the namespace 'Telerik.Charting'. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\adminappv3\94260fb8\310281c1\App_Web_krs998vr.16.vb 200 

Interesting as I was working from home, same code copied/pasted onto work system and receive
the error message listed above. Below are the register for the items?

<%

@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

 

<%

@ Register TagPrefix="telerik" Namespace="Telerik.Charting" Assembly="Telerik.Web.UI" %>

This is actually taken from an example as am just starting to work with the Charting stuff, had it
working at home and thought with a few changes to the datasource would be fine.

Any idea's would be helpful, starting to thing about the differences on the physical systems now?

Thanks!

 

James
Top achievements
Rank 1
 answered on 06 Feb 2009
2 answers
48 views
Hello,

We just put in place the editor in one of our production portals. Unfortunately, for every instance of the control we have on the page, it seems to make an additional page requests to the server. For instance, if we place 4 editor controls on the page, the page calls the "Page_Load" event 4 additional times. This behavior affects the logic we current have in place. Is there a way to prevent this from happening?

I've searched through the knowledge base and the forums posts and didnt find a clear answer to this issue. Below is control markup we are currently implementing.

<telerik:RadEditor ID="CompanyOverviewRadEditor" runat="server"
 ToolsFile="~/AdminResources/Editor/JobOpenings.xml" 
 ContentAreaCssFile='<%# string.Format("/Resources/{0}/EditorStyles.css", CurrentWebsite.Id) %>' 
 DocumentManager-ViewPaths='<%# new string[] {string.Format("/Resources/{0}/FileRepository/", CurrentWebsite.Id)} %>' 
 DocumentManager-UploadPaths='<%# new string[] {string.Format("/Resources{0}/FileRepository/", CurrentWebsite.Id)} %>' 
 DocumentManager-DeletePaths='<%# new string[] {string.Format("/Resources{0}/FileRepository/", CurrentWebsite.Id)} %>' 
 ImageManager-ViewPaths='<%# new string[] {string.Format("/Resources/{0}/FileRepository/", CurrentWebsite.Id)} %>' 
 ImageManager-UploadPaths='<%# new string[] {string.Format("/Resources/{0}/FileRepository/", CurrentWebsite.Id)} %>' 
 ImageManager-DeletePaths='<%# new string[] {string.Format("/Resources{0}FileRepository/", CurrentWebsite.Id)} %>' 
 Height="250px" 
 Content='<%# Bind("CompanyOverview") %>'
 <CssFiles> 
   <telerik:EditorCssFile Value="" /> 
 </CssFiles>                  
</telerik:RadEditor> 


Thanks.
Eddy
Top achievements
Rank 1
 answered on 06 Feb 2009
3 answers
147 views
I am trying to do conditional formatting with a date field and having issues. I can get it to work by using a text field.

Protected

Sub RadGrid1_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.WebControls.GridItemEventArgs)

 

 

If (TypeOf e.Item Is Telerik.WebControls.GridDataItem) Then

 

 

Dim dataitem As Telerik.WebControls.GridDataItem = e.Item

 

 

If (dataitem("Name").Text) = "Test" Then

 

dataitem(

"Name").ForeColor = System.Drawing.Color.Red

 

 

End If

 

 

End If

 

 

End Sub

 



I would like to capture a date field from the grid and check to see if it is over 10 days from the current date. I then want to change the color of the field to Red. I would like to make the entire row be red, but not sure what to use (ItemCreated, ItemInserted...)
Joey
Top achievements
Rank 1
 answered on 06 Feb 2009
0 answers
54 views
I'm using the TreeView from the 2007 Q1 release. How do I show the selected node?

Also, can I expand only the selected node, and not the others?
e
Top achievements
Rank 2
 asked on 06 Feb 2009
3 answers
142 views
For RadDatePicker once i use the EnableEmbeddedSkins="false" and ImagesPath="~/App_Themes/Default/Gray/Calendar".  I don't see the triangle error icon inside the input box and the input box is not highlighted in red like before.  Where are those images?
Jomey
Top achievements
Rank 1
 answered on 06 Feb 2009
5 answers
294 views
Hi,

I've recently installed RadEditor on our MOSS 2007 server as described in the installation guide. The RadEditor webpart and the list integration works great, but I got problems integrating the editor within the pages templates of publishing sites like "ArticleLeft.aspx". Of course I follwed the instruction of the installation guide (http://www.telerik.com/help/moss/editor/using%20radeditor%20in%20web%20content%20management%20scenario.html)
but it didn't work for me.

When I enter into the editor mode of a page and click onto the area of the page content, no editor appears. In IE the normal MOSS editor apperas even if you just move the mouse over the page content area. What am I doing wrong?

I hope someone could give me some adives or tips.

Best regards,
Florian

Nauman
Top achievements
Rank 1
 answered on 06 Feb 2009
8 answers
387 views
Hi,

Is there are simple way with RadComboBox to set the width of the combo to the pixel size of the width of the longest item currently in the dropdown?  This would apply to both the combobox itself and the dropdown.

Thanks,
Pieter
Top achievements
Rank 1
 answered on 06 Feb 2009
3 answers
293 views
Hi,

              I'm using RadCombo in my application. I'm setting Width property for the Combobox. Now, when I bind the values in the ComboBox, some of the text in the Combo get Wrap. So, when I select a value inside the RadCombo, only the first line got selected. that makes us confusion. Is there any property available in RadCombo to select both the line???

I shouldn't use DropDownwidth, NoWrap, Width Property for that control. It affects my UI.

Thanks in advance,
Prabhu.K
Simon
Telerik team
 answered on 06 Feb 2009
1 answer
204 views
I have a site that logs you into other sites and i am using radmenu to display the interface..

Recently I added the favicons from the website it logs you into... they are wreaking havoc with the link part of the control...in IE7.
(its always ie7)

goto uconnectit.com

create an account and then go to edit sites.. add a site (myspace is a good candidate) then your site will be inside a radmenu with its favicon in front of the name. if you are using ie, you have to click on the space to the right of the text for it to allow the link to work.

This doesnt pose a problem in firefox...

thanks,

jeff
Kamen Bundev
Telerik team
 answered on 06 Feb 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?