Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
163 views
hello there:

I Replace standard asp.net buttons for radbuttons on my website and some focus client scripts stopped working due button type has changed. Dou you know how to set focus on Image type Radbuttons. Because I'm using some radcomboboxes linked to autocomplete text property and I set up a script focusing a button on the RadComboBox client events  "onclientdropdownclosing" and "onclientdropdownclosed".

this is my current focus client event used on RadcomboBoxes:

 function setFocusTobtnBuscaCliente() {
                   document.Form1.btnBuscaCliente.focus();
               }


Thanks in advance for any help provided!!!
Shinu
Top achievements
Rank 2
 answered on 08 Mar 2011
4 answers
40 views
Hi Telerik,

We've just upgraded to RadEditor version 5.8.6.0 on our development server and are using MOSS 2007 and IE8.

The issue that we are experiencing is that when wanting to apply a css class (from the Apply CSS Class dropdown box) to selected text, which could be one word for instance, the style applies to the entire paragraph rather than to the selected word.

We've set up our custom class styles by using an external CssEditor.css file which we point to in the ConfigFile.xml file using the "CssFiles" property.
We've also referenced the classes in the ToolsFile.xml, so that only the required classes appear in the drop-down.

RadEditor version 5.8.0.0 didn't have this problem, but version 5.8.6.0 does. I've also noticed it does this on the online demo version that you have on your site.
For example, go to http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx, highlight a word in one of the paragraphs, then click on the Apply CSS Class dropdown and select .redText. Notice how the entire paragraph turns red, not just the word. Is this normal behaviour now for RadEditor? If so, how do we get RadEditor to apply styles to selected text only?

Thanks,
Claudz
claudz
Top achievements
Rank 1
 answered on 08 Mar 2011
2 answers
228 views
Hi,

I have a link buttin in radlistview  itemtemplate. on click on link buttom i,m loading another list.it is happening fine but spin wheel is not showing when i click on the link button. please suggest what is going wrong.

      <telerik:RadListView ID="lvLaborHoursSummary" runat="server" DataKeyNames="ID" >
                                <LayoutTemplate>
                                    <div>
                                        <table id="chart1" border="0" cellspacing="0" style="width: 100%;">
                                            <thead>
                                                <tr>
                                                    <td colspan="8" align="center">
                                                        <b>Labor Hours by Site</b>
                                                    </td>
                                                </tr>
                                         </thead>
                                            <tbody>
                                                <tr id="itemPlaceholder" runat="server">
                                                    <td>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                </LayoutTemplate>
                                <ItemTemplate>
                                    <tr>
                                        <td>
                                            <asp:Label ID="Label1" runat="server" Text='<%# Eval("ID") %>'></asp:Label>
                                        </td>
                                        <td>
                                            <asp:LinkButton ID="lnkDescription" runat="server" Text='<%# Eval("Description") %>'
                                                CommandName="ShowSummaryByEmployee"></asp:LinkButton>
                                        </td>
                                    </tr>
                                </ItemTemplate>
*********************************************************************************************
       How to find lnkDescription button on page load event to set ajax settings
        ajaxManager.AjaxSettings.AddAjaxSetting(lnkDescription, pnlLaborHoursSummary, RadAjaxLoadingPanelLaborHoursSummary);


Thanks
~Ravi
Ravi Kumar
Top achievements
Rank 1
 answered on 08 Mar 2011
0 answers
50 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
63 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
95 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
96 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
141 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
60 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
88 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?