Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
574 views

I am using RadControls for ASP.NET Ajax Q2 2010 NET 35  (2010.2.826.35)
I have set the radNumericTextbox ReadOnlyStyle as

<telerik:RadNumericTextBox ID="RadNumericTextBox1" Runat="server" 
      DataType="System.Int32"  MaxValue="5000" MinValue="0" 
      SelectionOnFocus="None" Skin="Sunset" Width="50px" Enabled="false">
       <DisabledStyle BackColor="#EEEEEE" />
       <ReadOnlyStyle BackColor="#EEEEEE" />
       <EnabledStyle HorizontalAlign="Center" />
      <NumberFormat DecimalDigits="0" />
</telerik:RadNumericTextBox>

When I  set the enable to true and readOnly to false on client side  as

function EnableRadNumericTextBox1(enable) {
    var RadNumericTextBox1= $("div #divReqPositions [id$='RadNumericTextBox1']")[0].control;
       
    if (enable) {
        RadNumericTextBox1.enable();
        RadNumericTextBox1._textBoxElement.readOnly = false;
    }
    else {
        RadNumericTextBox1.clear();
        RadNumericTextBox1.disable();
    }

If the rad control has value and I need to change the style to enabling style (Enable= true,ReadOnly= false)  on client side by using the javascript function above the background of the control (RadNumeric control) stay gray untill I move the mouse over the control.


any help would be appreciated.
Sam
Top achievements
Rank 1
 answered on 07 Mar 2011
10 answers
268 views
I have been building a Content Management System which will be used for several of my clients, and I have been hoping to use RadEditor However, I have run into a really tough issue. For some of these clients, the majority of content this CMS system will be managing will be email content. RadEditor generates XHTML-compliant code which is great... if you're displaying content in a browser. However, Email clients don't always like XHTML code at this point and the content is often broken. For instance, images that have style declarations which specify their width/height will not be displayed properly in Outlook and other email clients. Images need to have their width/height attributes set in order to function correctly in email clients. I found a thread which discusses this exact problem at:

http://www.telerik.com/community/forums/aspnet-ajax/editor/remove-style-attribute-from-img.aspx

The solution provided (that of creating a custom filter) appears to have some issues. First off, when you insert an image from ImageManager, the custom filter works to rewrite the tag using attributes instead of style, however, the width/height it specifies is the width/height of the physical image, not the width/height specified in the Properties tab of the Image Manager. So, I can insert an image that has w/h of 300x200 and its attriubtes will be set correctly using the filter, but if I wanted to set the w/h to 600x400 in the Image Properties Dialog and/or tab in the Image Manager, the filter won't do this.

Apparently, the Image Properties dialog and Image Manager Properties Tab operate only on the style attribute of the img tag. This makes sense, sine you're tying to create and manipulate XHTML-compiant code, but of course, isn't particularly helpful in this scenario.

The solution above is also a bit problematic because I believe this style vs attributes issue applies to other types of elements, besides the img tag. Even if it were possible to overcome the properties issue I noted above, it would likely be very difficult to create an exhasutive filter that handles any and all tags and their attributes that are affected by this.

Anyhow, I'm hoping someone out there has created some sort of system that allows them to create content using Rad Editor that will work in email clients. Or, I'm hoping Telerik can provide a more workable and robust solution than the one in the link above. If not, I'm afraid I will have to forego using RadEdtior in my CMS system, which would be sad since I think the control is excellent otherwise.
Rumen
Telerik team
 answered on 07 Mar 2011
2 answers
102 views
Hi.
My problem is that i can't edit RadComboboxDropDow's without affect to the RadCombobox's size.
Which element in Css should i edit to take affect to RadComboboxDropDow only.
Is there any ways to do? Please let me know.

In additon, it's very great if you can give a figure that show a skin with exactly every element edited.

Thanks and regard.
Trần
Top achievements
Rank 1
 answered on 07 Mar 2011
1 answer
88 views
I'm using the Ajax radcontrol develop website. all is working well. but when I using the gogrid CDN, I got the Javascript error.  ‘Sys' undefined, 'Telerik' undefined. all ajax control are not working. lost all skins.

I try to find out what's problem, but I can't. could anyone help me on this?  Thank you very much.
Mira
Telerik team
 answered on 07 Mar 2011
1 answer
106 views
Hello,

I have a grid that I have Ajaxified in my page by setting the grid as self-updating in my AjaxManager control.  That is, the settings look like this:

<telerik:AjaxSetting AjaxControlID="rgdMyGrid">
    <UpdatedControls>
        <telerik:AjaxUpdatedControl ControlID="rgdMyGrid" />
    </UpdatedControls>
</telerik:AjaxSetting>

This has worked to Ajaxify the regular grid functions of filtering and sorting just fine.  What I would like to do is have the usercontrol that I load for row-editing be Ajaxified, as well.  I have several radcombo boxes that I would like to update one another in the form.

Does the edit form fall within the radgrid's AjaxManager settings already (so that i shouldn't have to put in new settings for those controls?)

So far, the only way I can get these edit form combo boxes to update one another is to set them for autopostback=true.  I have functions defined in the code-behind to handle the onselectedindexchanged events.  I assumed that these would be used by the Ajax functionality if it worked (which it so far hasn't).

Do I need to autopostback for controls inside my usercontrol edit form?  Should I be Ajaxifying them differently?

Mike
Mira
Telerik team
 answered on 07 Mar 2011
1 answer
40 views
I am styling the Telerik menu using only CSS (no skins).  It is working fine and the results are good, except...I would like to visually separate cascading groups.

I have attached a small screen capture of the current menu with the "Buy" menu selected, and the detail "Search..." item selected.  The items to the right (Search by City, Search by Zip Code, etc.) are items under "Search...".

I would like to visually separate the lower level group (Search by City, Search by Zip Code, etc.) from the second level (Search..., Buying a Home, etc.) with a small (say 3 or 4 pixel) gap where the RED line is drawn on the graphic.

I should probably add that I am NOT setting the width of the items, I am letting the width "float" automatically based on the text contents.

Can you tell me how I can do this using CSS?

Thank you in advance for the assistance!

Lynn
Kate
Telerik team
 answered on 07 Mar 2011
2 answers
57 views
Let's say I have the following classes:

Public Class AddressBook
      Public Property OwnerName As String
    Public Property Friends As IList(Of Contact)
    Public Property Family As IList(Of Contact)
    Public Property Colleagues As IList(Of Contact)
 
End Class
 
Public Class Contact
    Public Property Address As Address
    Public Property Name As String
    Public Property Phone As String
    Public Property DateOfBirth As Date
    Public ReadOnly Property Age As Integer
        Get
            Return Math.Floor((Date.Now - DateOfBirth).Days / 365)
        End Get
    End Property
End Class
 
Public Class Address
    Public Property StreetNumber As Integer
    Public Property StreetName As String
    Public Property ZipCode As String
End Class

Is it possible to Databind the grid to the AdressBook and have the detail tables assigned automatically to properties like Friends, Family and Colleagues ? And then Adress to contact ?

Is it doable declaratively from the aspx file ?
Martin
Top achievements
Rank 1
 answered on 07 Mar 2011
3 answers
84 views
2010.3.1304.20  IE8

In "Design" mode is fine, but in in "HTML" mode something strange goes on with below:
Height of the control not in line with data displayed and scroll bars come up.   Most of the data after first line is hidden.

<telerik:RadEditor ID="txtExplain" AutoResizeHeight="true" BorderStyle="None" BorderWidth="0px" EditModes="HTML"
                    ToolsFile="~/Resources/EmptyTools.xml" Width="720px" Height=”30px” style="height:auto" StripFormattingOptions="All"  runat="server">
</telerik:RadEditor>
Rumen
Telerik team
 answered on 07 Mar 2011
1 answer
69 views
Hello, 

I used Rad Controls (Q1 2010) for Ajax in VS 2008.

I upgraded my VS to 2010 and i don't see any more the controls, what should i do to 

be able to use them again?

Regards, 

Avner
Kiara
Top achievements
Rank 1
 answered on 07 Mar 2011
1 answer
139 views
I am trying to ajaxify a Grid so that certain elements will only cause limited updates and other elements will cause the whole grid to update. For example I my edit form template contains a user control and a second Grid, I am able to enable Ajax for the sub-grid with an Ajax Manager Proxy placed within the edit template and I am able to enable Ajax for certain input panels within the user control in the same way.  I am running into problems attempting to enable ajax for the Grid itself.  

If I just add the main grid to my AjaxManager, the grid is ajaxified, but now all my internal ajaxified controls cause the whole Grid to update which is an issue because it is clearing out the status of my AsynUploader.  So instead I was attempting to enable ajax on the particular controls within the grid which should cause the whole grid to update on an item by item basis.  This is where I am running into problems.

For example I am attempting to enable ajax for the submit button which sits inside my edit form by adding this ajax setting entry to the proxy ajax manager of the edit template:

<telerik:AjaxSetting AjaxControlID="editSubmitLnk">
        <UpdatedControls>
         <telerik:AjaxUpdatedControl ControlID="resourceGrid" />
</UpdatedControls>
</telerik:AjaxSetting>

This does cause the button to make an ajax request as it should, I can see the event the button triggers firing properly when the button is pressed, the problem is that it does not cause the main grid (resourceGrid) to update as it should.
Mira
Telerik team
 answered on 07 Mar 2011
Narrow your results
Selected tags
Tags
+124 more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?