Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
285 views
Hello,

I'm using the RadTabStrip and RadMultiPage combo with the multipage having the RenderSelectedPageOnly property set to true.  In the current page, the page has a JavaScript method that is the client validation function for a CustomValidator control.  For some reason, when this property is true, that function can't be found.  But with this property as false, the page works as expected; the client validation function runs when the form is being submitted.  The JS function is in the content of the RadPageView that's displayed.  It looks something like this:

<tel:RadPageView runat="server">
.. form ..
<asp:CustomValidator runat="server" .. ClientValidationFunction="cv_Val" />

<tel:RadScriptBlock runat="server">
<script type="text/javascript">
function cv_Val(sender, e) {
//Function for client validation
}
</script>
</tel:RadScriptBlock>
</tel:RadPageView>

With RenderSelectedPageOnly to true, it says cv_Val does not exist.  Why is that?  What would be causing the error?

Thanks.
Dimitar Terziev
Telerik team
 answered on 14 Feb 2011
1 answer
40 views
Hi,

In my application I open a pop-up window on click of a button.

the window is declared as below:
<telerik:RadWindow ID="RadWindowDialog" runat="server" Title="Test" DestroyOnClose="false"
        VisibleTitlebar="false" ReloadOnShow="true" ShowContentDuringLoad="false" OnClientClose="OnClientClose"
        Width="525px" Height="575px" Modal="true">
    </telerik:RadWindow>


The code that i use to open the window:
function ShowEditForm(id, btn, act) {
                var oWnd = $find("<%=RadWindowDialog.ClientID%>");
                oWnd.setUrl("Contact.aspx?Contact=" + id + "&Button=" + btn + "&Act=" + act);
                oWnd.show();
  
  
                return false;
            }
  
function OnClientClose(args) {
                var ajaxManager = $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>");
                var arg = args.argument
                if (arg) {
                    ajaxManager.ajaxRequest("Rebind");
                }
                else {
                }
            }


I have several windows on my page that behave differently, so I find the window by the window ID. 

On my pop-up page I have  an update and a cancel button.
When the user clicks update I close the window and refresh a grid on the parent page in my clientclose event.

If the user cancels out of the pop-up window and click the button to open the pop-up again everything works fine, howvere if the user clicks the update button and then clcik the button on the parent page to go back to the pop-up the window takes really long to load.

Is there something I am doing wrong here. Any thoughts will be appreciated.

Thanks!

Georgi Tunev
Telerik team
 answered on 14 Feb 2011
12 answers
139 views
Hi,
 Can i resize an appointment from both sides?
Veronica
Telerik team
 answered on 14 Feb 2011
1 answer
114 views
I have created a simple searchbox that utilizes RadAjaxManager and RadScriptManager.

When a user enters certain search criterias and clicks the search button, the code behind will perform some checks, and if necessary show a popup with a question using RadWindow (with RadWindowManager).

The RadWindow consists of text that I need to load from the database.
I've tried both setting the text in code-behond by using the RadWindow.ContentContainer.FindControl("myLabel") and setting the text property, and by using <%# GetTextProperty %> in the template itself.

But both lead to this error shown in Internet Explorer 8 (with and without compatibility view enabled):

Line: 6
Error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
Details: Error parsing near '  <label><font size='.

If I remove my RadAjaxManagerProxy from the page, no error is given, and RadWindow loads just fine.

In FireFox 3.6 it works just fine with and without Ajax enabled.

Here's a snippet of the RadWindow-declaration:
<telerik:RadWindow runat="server" ID="rwPPRTQuestion" Modal="true" KeepInScreenBounds="true" Width="250px"
        VisibleTitlebar="false" Behaviors="None" InitialBehaviors="None" VisibleStatusbar="false" >
        <ContentTemplate>      
            <div id="frontpagepop">
                <label><asp:Literal runat="server" ID="litRTInfo" Text='<%# InfoChooseRT %>'></asp:Literal></label>
                <br />
                <label><asp:Literal runat="server" ID="litRTQuestion" Text='<%# QuestionChooseRT %>'></asp:Literal></label>               
                <asp:RadioButtonList runat="server" ID="rblRTYesNo" RepeatDirection="Horizontal">
                    <asp:ListItem Text="<%$ Resources: EPiServer, content.booking.common.yes %>" Value="1"></asp:ListItem>
                    <asp:ListItem Text="<%$ Resources: EPiServer, content.booking.common.no %>" Value="0" Selected="True"></asp:ListItem>
                </asp:RadioButtonList>
                <div class="buttons" runat="server" id="div1">
                    <div class="buttonpop">   
                        <asp:LinkButton runat="server" ID="LinkButton1" OnClick="lbContinue_Click"><asp:Literal ID="Literal1" runat="server" Text="<%$ Resources: EPiServer, content.booking.continue %>"></asp:Literal> »</asp:LinkButton>
                    </div>
                </div>     
            </div>
        </ContentTemplate>
    </telerik:RadWindow>


Does anyone have any ideas what could be causing this?

Disabling Ajax is an option, but the customer will not be very happy with it...

Btw, I'm using v2009.3.1314.35 of Telerik
(since this is a part of a large solution, upgrading the Telerik components to the latest version is a big task)
Georgi Tunev
Telerik team
 answered on 14 Feb 2011
4 answers
216 views
I'm going to create a custom provider since I'm going to have multiple schedules available based on the current GroupID that is logged in. I'd like to create the structure to hold the Scheduler information in my existing SQL Express database. Is there a document somewhere on the site that lays out the table structure that Scheduler needs? Tables/Columns Types, etc...Thanks.
Peter
Telerik team
 answered on 14 Feb 2011
1 answer
82 views
Hi,
How can I set the legend font family and font size?  I have tried:

.RadForm_Office2007.rfdFieldset table.rfdRoundedWrapper_fieldset legend,
.RadForm_Office2007.rfdFieldset fieldset.rfdFieldset legend,
.RadForm_Office2007.rfdFieldset table.rfdRoundedWrapper_fieldset fieldset,
.RadForm_Office2007.rfdFieldset fieldset.rfdFieldset
 { font-size:25px;}

to no avail.  Also, is it possible to make the fieldset border straight instead of rounded through css?

Thank you,
David
Georgi Tunev
Telerik team
 answered on 14 Feb 2011
1 answer
62 views
Hi all,

      In my project I need to handle some client side event ,but when I add some code to my .ascx the event isen't detected by intellesense or compilator....!!!!

It's possible to handle a recising event in the server side code !!!!!!!!!!!!!!

Veronica
Telerik team
 answered on 14 Feb 2011
1 answer
72 views
I am trying to highlight the menu item upon clicking and make it highlighted till the next menu item is clicked.
But this doesnot seem to be working.

As per the following link:
http://www.telerik.com/help/aspnet-ajax/menu_appearancecssclassofitems.html

i did this:
<telerik:RadMenu ID="RadMenu1" runat="server" OnItemClick="RadMenu1_ItemClick"><br>  
 </
telerik:RadMenu>

protected void Page_Load(object sender, EventArgs e)  
 {         
 if (!IsPostBack)           
   {                
     displayLinks();
    }                
   }
 private void displayLinks()<br
 {
    RadMenuItem menuItem = new RadMenuItem();
     menuItem.SelectedCssClass = "rmSelected";
     menuItem.Text = "Test";
     menuItem.NavigateUrl =  "www.google.com";
     RadMenu1.Items.Add(menuItem);
  }
Kate
Telerik team
 answered on 14 Feb 2011
1 answer
192 views
Hi

In  our  project  we are dymanically generating menu using radpanel. but we are not able to open new tab by using   right click option .
Right click option working only when we click left  to text.but if click on the text or right to the text it is working as static image .

In IE7, right-click - 'Open a new tab' is working anywhere in the RadMenu Control. But in IE8, it is not working on the text. It works only in the left side of the menu (Please see the screenshot attached)

Help us how to achieve this

Thanks
Raj
Kate
Telerik team
 answered on 14 Feb 2011
1 answer
127 views
hello everyone
 how can i get an element id(in this case a div tag) inside a NodeTemplate.
my aproach doesnt work , what should i do?

<
telerik:RadTreeView runat="server" ID="RadTreeView1" Skin="Vista">
    <NodeTemplate>
            
<div runat="server" onclick="ExpandDiv('<%=div_expand.CliendID %>')">
                <div runat="server" id="div_expand">
                </div>
            
</div>
    </NodeTemplate>        
    <
Nodes>
            ..... from database
    </Nodes>
</telerik:RadTreeView>

in js:
function ExpandDiv(id) {
    var div = document.getElementById(id);
}

 

Princy
Top achievements
Rank 2
 answered on 14 Feb 2011
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?