Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
276 views
Hi,

I have a RadTabStrip tied to a RadMultiPage.  The RadTabStrip has CausesValidation="false" and the ontabclick event is handled.  In the event handler, I call Page.Validate() and then inspect Page.IsValid.  When the RadMultiPage control has RenderSelectedPageOnly="false", this works as expected.  When it has RenderSelectedPageOnly="true", my validator is effectively ignored and Page.IsValid is returned as true.

Example code:
    <telerik:RadScriptManager ID="rsm" runat="server"></telerik:RadScriptManager>
  
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadTabStrip1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadTabStrip1" />
                    <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" />
                    <telerik:AjaxUpdatedControl ControlID="ltResult" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>    
      
    Result: <asp:Literal ID="ltResult" runat="server" Text=""></asp:Literal>
    <br />
  
    <telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1"
            ontabclick="RadTabStrip1_TabClick" SelectedIndex="0" CausesValidation="false">
        <Tabs>
            <telerik:RadTab runat="server" Text="Root RadTab1" PageViewID="RadPageView1" Selected="True">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="Root RadTab2" PageViewID="RadPageView2">
            </telerik:RadTab>
        </Tabs>
</telerik:RadTabStrip>
    </div>
    <telerik:RadMultiPage ID="RadMultiPage1" Runat="server" SelectedIndex="0" RenderSelectedPageOnly="false">
        <telerik:RadPageView ID="RadPageView1" runat="server">        
            Tab 1 content:  <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfv_TextBox2" runat="server" ControlToValidate="TextBox2" ErrorMessage="Client Error">
                            </asp:RequiredFieldValidator>
        </telerik:RadPageView>
        <telerik:RadPageView ID="RadPageView2" runat="server">
            Tab 2 content:            
        </telerik:RadPageView>
    </telerik:RadMultiPage>
protected void RadTabStrip1_TabClick(object sender, Telerik.Web.UI.RadTabStripEventArgs e)
        {
            Page.Validate();
            if (Page.IsValid)
            {
                ltResult.Text = "page is valid";
            }
            else 
            {
                ltResult.Text = "page is not valid";
            }
        }

If you run this code and click on the second tab, the ltResult control shows "page is not valid".  This is correct as there is a requiredfieldvalidator in the RadPageView.  If you change the value of RenderSelectedPageOnly to "true", the ltResult control shows "page is valid", which is incorrect.

In reality, my page has several RadPageView controls with dynamically loaded usercontrols containing a lot of content.  I need to be able to set RenderSelectedPageOnly="true" to save on bandwidth and client processing time.  Can you tell me how to get this working with RenderSelectedPageOnly="true"?

I am using Version 2010.3.1215.40 of Telerik RadControls for ASP.NET Ajax.

Thanks,

Craig

Helen
Telerik team
 answered on 09 Aug 2012
20 answers
174 views
Hi All
I am using the custom advance form template with my scheduler,
and have added a few custom resources , i want to add required field validator's to these resources!
However i am struggling with this as the validator cannot find the control.

Can anyone give me some help with this or point me in the direction of a good way/method of validating resources please.

Many Thanks in advance

Regards

Darren
Ken
Top achievements
Rank 1
 answered on 09 Aug 2012
3 answers
133 views
Hello,

It seems that the component does not work in IE9, based on clicking around on the RadSpell demos on the site.  After a few clicks, the popup window shows up, but is blank. 

I have also had the issue on a simple web application when debugging in Visual Studio.  Seems an exception is thrown when trying to create an iframe element (if in IE).  I have attached the screenshot from VS.

Thanks,

-Chris
Rumen
Telerik team
 answered on 09 Aug 2012
1 answer
30 views
Just curious whether we have any link here that defines the platforms telerik Ajax controls support.

I am keenly interested to whether AJAX controls are compatible with all browsers. (FireFox/IE/etc).


Rumen
Telerik team
 answered on 09 Aug 2012
8 answers
201 views
I have a radgrid which is having some controls in its Edit and Insert mode.I have put some validation on those controls. we are using simple asp.net validator.In my case ,Everything is working properly untill Validator get fired.Once validator get fired,nothing is working,not even cancel button which can close Edit or insertion mode in the radgrid.In normal  asp.net web application,it is working fine.but in sharepoint it is giving problem.Is anything to do with config file . Looking for ur help.Thanks in advance



 if we remove radajaxmanager  then everything is working fine. But we need that Ajax.Please provide any solution
Tsvetoslav
Telerik team
 answered on 09 Aug 2012
4 answers
116 views
I trying to add a description "Override" when update an appointment. 

 

I'm using e.ModifiedAppointment.Description = "Override", but it doesn't work.
Here is my scripts:

 

Protected Sub MyAvailability1_AppointmentUpdate(sender As Object, e As AppointmentUpdateEventArgs) Handles RadScheduler1.AppointmentUpdate
        Dim scheduler As RadScheduler = DirectCast(sender, RadScheduler)
        If e.ModifiedAppointment.Subject = "Preference" Then
            For Each app As Appointment In scheduler.Appointments.GetAppointmentsInRange(e.ModifiedAppointment.Start, e.ModifiedAppointment.[End])

                If app.Subject = "Availability" Then
                    If app.Start > e.ModifiedAppointment.Start OrElse app.[End] < e.ModifiedAppointment.[End] Then
                        e.Cancel = True
                    End If
                End If

            Next
        End If

        If e.ModifiedAppointment.Subject = "Availability" Then
            For Each app As Appointment In scheduler.Appointments.GetAppointmentsInRange(e.ModifiedAppointment.Start, e.ModifiedAppointment.[End])

                If app.Subject = "Preference" Then
                    If app.Start < e.ModifiedAppointment.Start OrElse app.[End] > e.ModifiedAppointment.[End] Then
                        e.Cancel = True
                    End If
                End If
            Next
        End If
        e.ModifiedAppointment.Description = "Override"
    End Sub

Ivana
Telerik team
 answered on 09 Aug 2012
3 answers
64 views
Hi

I am using RadControls Q1 2007 for my web application development, I would like to know whether the Drag and Drop functionality is available with Q1 2007 Controls?

Somehow I am not getting client side events like "OnClientNodeDragging" and boolean properties like "EnableDragAndDrop", is there any way to archive this? or any other alternative?

Is is really possible to do Drag and Drop functionality in Q1 2007 Controls?

Thanks,

Rahul
Ivana
Telerik team
 answered on 09 Aug 2012
3 answers
539 views
Hi,

I'm having problem with the format in the textbox.
Today it looks like: 

<telerik:RadNumerictextBox ID="txtValor" runat="server" MinValue="0">
    <NumberFormat AllowRounding="true" DecimalDigits="2">
</telerik:RadNumerictextBox>

When I fill with the value "50,45" for example, text and value properties are as follows:
Text: 50,45
Value: 50.450000000000003
I do not understand, if I defined only two decimal places, why the 14 digits? this is a bug?
Vasil
Telerik team
 answered on 09 Aug 2012
3 answers
315 views
I would like to add print preview image to a button such that the button look and feel should be the same as print button, where can I add the required image in the existing css can some one help me
Dorababu
Top achievements
Rank 1
 answered on 09 Aug 2012
25 answers
522 views

Please forward to the team that created the control panel installers.

I donwloaded the control panel (also the control panel version of ASP.NET AJAX)  and install it on a Windows 7 64bit machine.

I keep getting the error:
---------------------------
Error
---------------------------
System.ComponentModel.Win32Exception: Access is denied

   at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)

   at System.Diagnostics.Process.Start()

   at Bootstrapper.Bootstrapper.RunFile()

   at Bootstrapper.MainForm.RunApplication()

   at Bootstrapper.MainForm.CheckPrerequisitesAndRunApplication()
---------------------------
OK  
---------------------------

Andrey
Telerik team
 answered on 09 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?