Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
65 views
Hi,

I was wondering if it is at all possible for the items in the legend box to be placed horizontally instead of vertically. That is, instead of having a box that lists the names of the series one above the other like this

Series 1
Series 2
Series 3

to have one that lists them on the same line one next to the other like this

Series 1 | Series 2 | Series 3

Thanks in advance for the help!

Found the answer to my question:

http://www.telerik.com/community/forums/aspnet-ajax/chart/how-to-make-a-horizontal-chart-legend.aspx

<Legend>
 <Appearence overflow="Row"></Appearence>
</Legend>


Boyan
Top achievements
Rank 1
 asked on 07 Mar 2011
0 answers
74 views
Hi there,
We had RadComboBox with Web method populating data and we found out that auto complete feature didn't work in IE9. After installing new Q3 2010 version of RadControls the issue seams to be fixed.
Oksana
Top achievements
Rank 1
 asked on 07 Mar 2011
1 answer
124 views
Hello,

I have a GridView that I am converting to radGrid, but I'm having trouble with some of the syntax. 

Can someone 'translate' these below 2 lines for me (to the correct syntax for a radGrid)?...  I currently have this code in the ItemCreated event where it dynamically adds a new row to the grid...

GridView oGridView = (GridView)sender;
GridViewRow oGridViewRow = new GridViewRow(0, 0, DataControlRowType.Header, DataControlRowState.Insert);

Thanks!
Matt
Mathew
Top achievements
Rank 1
 answered on 07 Mar 2011
4 answers
117 views
Hi,

I am using a radgrid on my page. I was getting "Invalid postback or callback argument." error when I click on the filter because I was binding the datasource of the grid in page_load event. So i bind Radgrid to the datasource in Radgrig1_NeedDataSource event. Evrything is working fine there is no error but my filter stopped working. nothing happens when i click on the filter. Can any one please help?

RMS
rms
Top achievements
Rank 1
 answered on 07 Mar 2011
3 answers
158 views
I have a radwindow that has both Required Field Validators and A Custom Validator.  The required field validators fire and are handled correctly.  The custom validator also fires, but the result is ignored.  I have the following relevant code:
In the calling page:

 

Javascript to open the RadWindow
function
launchEditProjectType(projecttypeid) {

 

var URL = "wfrmAddProjectType.aspx?projecttypeid=" + projecttypeid

window.radopen(URL,

"AddProjectType");

 

 

 

return false;  

}

 

 

<telerik:RadWindowManager ID="winMgr" runat="server" Modal="True" Skin="Web20" Left="" NavigateUrl="" EnableEmbeddedScripts="true" KeepInScreenBounds="true" Height="550px" Width="610px" Behaviors="Move,Maximize,Close">

 

 

 

<Windows>

 

 

 

 

<telerik:RadWindow runat="server" ID="editActivity" VisibleStatusbar="False" Skin="Web20" ReloadOnShow="True" Modal="true" Behaviors="Move,Maximize,Close" />

 

 

 

<telerik:RadWindow runat="server" ID="editProjectType" Height="700px" Width="740px" Behaviors="Close" VisibleStatusbar="False" Skin="Web20" ReloadOnShow="true" Modal="true">

 

 

</telerik:RadWindow>

 

 

</Windows>

 

 

 

</telerik:RadWindowManager>

In the rad window:

<asp:TextBox ID="txtDescription" runat="server" Font-Names="Arial" Font-Size="12px" MaxLength="40" Width="256px" CausesValidation="true"></asp:TextBox 

 

 

<asp:CustomValidator ID="cv2" ControlToValidate="txtDescription" runat="server" Display="Dynamic" OnServerValidate="ValidateProjectType" Font-Bold="true" Font-Names="Arial" Font-Size="20px"

 

 

 

ErrorMessage="CPE Year must be unique" SetFocusOnError="true">*</asp:CustomValidator>

 

 

 

<asp:RequiredFieldValidator ID="rfv0" runat="server" ControlToValidate="txtDescription"

 

 

ErrorMessage="Description" Font-Names="Arial" Font-Size="12px">*</asp:RequiredFieldValidator>

in the .vb codebehind 


Public
Sub ValidateProjectType(ByVal sender As Object, ByVal args As ServerValidateEventArgs)

 

Dim a As Boolean = True

 

 

 

 

If args.Value() <> "" Then

 

 

Dim data As New AdminData

 

 

a =

Not data.isDuplicateProjectType(Me.txtDescription.Text, Me.lblProjectTypeID.Text)

 

 

 

Else

 

a =

False  

 

 

End If

 

 

 

args.IsValid = False

 

 

 

 

 

End Sub

If all validation works, it will try to save.  As you can see, I set the custom validator to always fail, yet it tries to save every time.  If I don't run this code in a rad window, but in a browser on its own, the validation is fine.

Any  thoughts?

 

 

 

 

GP
Top achievements
Rank 1
 answered on 07 Mar 2011
4 answers
74 views
We are using RadEditor for MOSS version 5.3.2.0. Our users have entered an href link which includes a numeric query parameter. Here is the stored html code:

<div class="right-align"><a href="/services/hospitals/overview/defaultview.aspx?id=739"><img alt="Luton and Dunstable Hospital profile" src="/aboutNHSChoices/professionals/healthandcareprofessionals/your-pages/PublishingImages/luton.jpg" /></a></div>
<div class="right-align"></div>

In display mode, the query parameter seems to be corrupted. This is the html displayed by the browser:

<div class="right-align">
<a href="/services/hospitals/overview/defaultview.aspx?id=" 739??="" jQuery1298991157800="83">
<img alt="Luton and Dunstable Hospital profile" src="/aboutNHSChoices/professionals/healthandcareprofessionals/your-pages/PublishingImages/luton.jpg" complete="complete"/>

This output is from IE8 but I have tried to display this page in Firefox and Google Chrome with similar results. I have tried downloading version 5.8.6.0 and installing this on a test server but this did not seem to fix the problem. Can you please help?

Jon
Top achievements
Rank 1
 answered on 07 Mar 2011
0 answers
105 views
Greetings all,

I'm new to using telerik radcontrols, and I was having difficulty understanding how appointments are added or edited using the dialog box within the scheduler.

I have the AllowInsert property set to "true", which makes a dialog box appear with the Save, Cancel and Option buttons. I can enter text in the textbox, or hit options, which opens a separate box, but in either case, the changes I make are not saved.  However, the delete function works fine...

Here's the html:

<telerik:RadScheduler ID="rsMyCalendar" AllowDelete="true" AllowEdit="true" AllowInsert="true"
                DataSourceID="sdsMyCalendar" DataKeyField="EventID" DataSubjectField="Subject"
                DataStartField="StartDate" DataEndField="EndDate" DataDescriptionField="Description"
                DisplayDeleteConfirmation="true" EnableDescriptionField="true" EnableDatePicker="true"
                DayView-DayStartTime="08:00:00" DayView-DayEndTime="17:00:00" WorkDayStartTime="08:00:00"
                WorkDayEndTime="17:00:00" runat="server" StartEditingInAdvancedForm="true" OnAppointmentClick="OnAppointmentClick1"
                OverflowBehavior="Expand" SelectedView="MonthView" Skin="Windows7" EnableEmbeddedSkins="true"
                OnAppointmentDelete="rsMyCalendar_AppointmentDelete">
                <MonthView GroupingDirection="Vertical" />
                <AppointmentTemplate>
                    <%# Eval("Subject") %>
                </AppointmentTemplate>
            </telerik:RadScheduler>

Here's the code behind:
protected void OnAppointmentClick1(object sender, SchedulerEventArgs e)
        {
            int id = (int)e.Appointment.ID;
            Response.Redirect("event.aspx?id=" + id);
        }


        protected void rsMyCalendar_AppointmentDelete(object sender, SchedulerCancelEventArgs e)
        {
            Events E = new Events();

            E.EventID = (int)e.Appointment.ID;

            EventsDAL.Delete(ref E);
        }

        protected void rsMyCalendar_AppointmentCreated(object sender, AppointmentCreatedEventArgs e)
        {
            Events E = new Events();

            E.EventID = (int)e.Appointment.ID;

            EventsDAL.Insert(ref E);
        }

What am I missing here?

Thanks for the help,

Jack
Jack
Top achievements
Rank 1
 asked on 07 Mar 2011
4 answers
122 views

I try to check spelling text at several radtexteditors before data is saved, and I don't want to user to click "spell" button.  Instead, I put it at link button

 

 

OnClientClick

 

="StartCheck()"

and a javescript:

 

 

 

function StartCheck() {

 

 

 

 

var spell = $find('<%=FormViewComment.FindControl("RadSpell10").ClientID %>');

 

 

spell.startSpellCheck();

 

 

 

return false

 

 

 

 

 

 

 

}

which is inside a RadCodeBlock.

Spelling control is like this:

 

 

 

 

<telerik:RadSpell ID="RadSpell10" Runat="server" Skin="Vista" ControlsToCheck='<%# new string[3] {FormViewComment.FindControl("RadTextBoxOpportunities").ClientID, FormViewComment.FindControl("RadTextBoxSummary").ClientID, FormViewComment.FindControl("RadTextBoxSummary").ClientID}%>'

 

 

 

 

IsClientID="true" SupportedLanguages="en-US,English" ButtonType="none" />

All three textbox are inside a FormView Control, and it is inside an asp customer control.

When I click the link button to fire spell check, spell check dialog box does show up, but it pompup a "complete spelling check" message although some text is not spelled correctly, and give me some wired client script error which I don't understand.  Please let me know what mistake I made.

Thanks

 

Rumen
Telerik team
 answered on 07 Mar 2011
4 answers
629 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
348 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?