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

I am new to ASP.Net Ajax and Telerik component.
I made a page that use Telerik Ajax Manager, Ajax Panel that contains a form for user to enter user name and password for login.

When user click submit, the Ajax Panel will do a postback, and only reload the Ajax Panel's content to check if is correct user name and password.

The problem is, there should be an exception throw during the checking user name and password process during the postback. (Because for some reason, the data table missing a field and it throw exception).
When I do that in internet explorer, the page just post back normally (with the form that let user enter user name and password) and not login.
But when I do it in Visual Studio, the exception will throw in during the postback.

So is there a way I can handle if there is any exception throw during Ajax postback on any page globally and redirect to an error page?
Or display error on the page?
I tried to use try catch then Response.Write to print out the error but it doesn't work well....

Any example would be a great help.

Thanks in advance.
Maria Ilieva
Telerik team
 answered on 10 Mar 2011
4 answers
138 views
Hello, I must have been living under a rock and did not know about such an awesome creation.
I looked everywhere. Is this still available for SharePoint 2007?
I have read from older posts on the web that it is free.
Please forgive if I am mistaken.

Thank you in advance.
Emilia
Telerik team
 answered on 10 Mar 2011
5 answers
192 views
How can I get the word count at the server side?

If there is no way of getting it at the server side then how can I do it at the client side ?

thanks,
yaniv
Rumen
Telerik team
 answered on 10 Mar 2011
1 answer
324 views
Hello,
My main issue is when I have inside RadWindowManager --> RadWindow --> ContentTemplate an RadAjaxPanel...
When I use it the first time, the page is posting back... I don't want to have the PostBack..
The second time and up, I don't have post back and the LoadingPanel is showing.
I  have had to add a code on the Search Button (inside the ajax panel) to show window on load, since my window is a search box that will search inside content..


I will show you my main template of the page:
The rad Window:
<telerik:RadWindowManager ID="rWinManager" runat="server">
    <Windows>
        <telerik:RadWindow ID="rWinResult" runat="server" OnClientActivate="WindowOnClientActivate" Width="350" Behaviors="Close">
            <ContentTemplate>
                <!--This is the main content that needs to work only with ajax.-->
            </ContentTemplate>
        </telerik:RadWindow>
    </Windows>
</telerik:RadWindowManager>


My update panel that works fine outside the RadWindow:
<asp:UpdatePanel ID="MyUpdatePanel" runat="server" UpdateMode="Always">
    <ContentTemplate>
        <!--poting in a table will make the controls aligned.. it was not.-->
        <table>
        <tr>
            <td><telerik:RadTextBox ID="TxtSearch" runat="server" Width="200"></telerik:RadTextBox></td>
            <td>
                <telerik:RadButton ID="BtnSearch" runat="server" OnClick="BtnSearch_Click">
                    <Icon PrimaryIconCssClass="rbSearch" />
                </telerik:RadButton>
            </td>
            <td>
                <asp:UpdateProgress ID="MyUpdateProgress" runat="server" AssociatedUpdatePanelID="MyUpdatePanel">
                    <ProgressTemplate>
                        <span style="color:Gray;font-size:10px;">
                            Loading...
                        </span>
                    </ProgressTemplate>
                </asp:UpdateProgress>
            </td>
        </tr>
        </table>
        <telerik:RadTreeView ID="rtvResult" runat="server" DataFieldID="Key" DataValueField="Key" DataTextField="DisplayValue"></telerik:RadTreeView>
    </ContentTemplate>
</asp:UpdatePanel>

Now when I place the UpdatePanel (the second code snip), inside the Window manager, I am getting error.
Cannot unregister UpdatePanel with ID 'MyUpdatePanel' since it was not registered with the ScriptManager. This might occur if the UpdatePanel was removed from the control tree and later added again, which is not supported.
Parameter name: updatePanel

I hope I was clear with my question... Let me know if you need more code or if you have more questions.

Thank you for your help.
Isaac
Emerald One
Svetlina Anati
Telerik team
 answered on 10 Mar 2011
3 answers
97 views
I want to change RadDialogOpener's ViewPaths(Or UploadPaths) property by client javascript code, how can i do? When i user ajax code change the ViewPaths value, but it can't work?

public static void ShowDocumentDialog(RadDialogOpener rdo, string sFolders, string sExts, string sClientCallbackFunction, int iMaxUploadFileSize)
{
    string[] aFolder = sFolders.Split(',');
 
    FileManagerDialogParameters documentManagerParameters = new FileManagerDialogParameters();
    documentManagerParameters.ViewPaths = aFolder;
    documentManagerParameters.UploadPaths = aFolder;
    documentManagerParameters.DeletePaths = aFolder;
    documentManagerParameters.MaxUploadFileSize = iMaxUploadFileSize;
 
    if (!string.IsNullOrEmpty(sExts))
        documentManagerParameters.SearchPatterns = sExts.Split(',');  //{ "*.doc", "*.docx", "*.pdf", "*.xls", "*.xlsx", "*.ppt", "*.pptx", "*.zip", "*.rar", "*.txt" };
 
    DialogDefinition documentManager = new DialogDefinition(typeof(DocumentManagerDialog), documentManagerParameters);
    documentManager.ClientCallbackFunction = sClientCallbackFunction;
    documentManager.Width = Unit.Pixel(694);
    documentManager.Height = Unit.Pixel(440);
 
    // Remove it if exist
    if (rdo.DialogDefinitions.ContainsKey("DocumentManager"))
        rdo.DialogDefinitions.Remove("DocumentManager");
 
    rdo.DialogDefinitions.Add("DocumentManager", documentManager);
}


thanks
Rumen
Telerik team
 answered on 10 Mar 2011
1 answer
91 views
I have a textbox within a repeater...
<rad:RadNumericTextBox ID="radNumQty" runat="server" CssClass="txtbox" Width="40px" IncrementSettings-Step="1" MinValue="1" MaxValue="9999999" MaxLength="7" NumberFormat-DecimalDigits="0" ClientEvents-OnValueChanging="clientUpsellChanges">
</rad:RadNumericTextBox>

In my clientUpsellChanges function, I change its' class if there is an error.
if (intQtyError != 0) {
// Toggle css on field with error
var radQtyBox = $find(arrExtraItemFields[0]);
radQtyBox.TextBoxElement.className = "txtboxerror";
}

This all works fine, but I'm finding that the error class gets removed as soon as you mouseover the box. Why is this? How do I prevent it?
Tsvetina
Telerik team
 answered on 10 Mar 2011
2 answers
43 views
Add a question at the time to stretch or move the reserve to which the user has the option
to cancel the action before it happens confirmation.

that event and as I would.

thanks for your help

ALBERT
Top achievements
Rank 1
 answered on 10 Mar 2011
6 answers
273 views

Hi all,

I downloaded Sales Dashboard Demo and I'm not being able to run it on my local machine.

When I first tried to run it, it was referencing all assemblies in \ReferencesTRIAL\Telerik OpenAccess :
Telerik.OpenAccess35.Extensions.dll
Teleril.OpenAccess.dll
Teleril.OpenAccess.Web.dll

I got this error: Could not load file or assembly 'Telerik.OpenAccess.Config, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342' or one of its dependencies. The system cannot find the file specified.

As a second step, I installed the lastest OpenAccess version (not trial) on my local machine, which installed Telerik.OpenAccess and Telerik.OpenAccess.Config in the GAC. I just replaced the three old assemblies and also added the missing Telerik.OpenAccess.Config, version 2010.3.1125.1
Please see the attached screen shot to see the Project Properties Page.

When I tried to run the project again I got this error: Could not load file or assembly 'Telerik.OpenAccess, Version=2010.3.1110.3, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342' or one of its dependencies. The system cannot find the file specified.

I searched everywhere in the project and I can't find 2010.3.1110.3!

I need help to put this demo running on my machine.

I'm using VS2010 Ultimate and .NET4.

Thank you,

Nuno Senica

Nuno
Top achievements
Rank 1
 answered on 10 Mar 2011
14 answers
195 views
Hi,

I would like to display alerts/warnings in the scheduler pane as done by the control itself (such as the "Are you sure you want to delete this appointment?"). 

I want this so that after I validate the user's input I can display warnings, mostly server-side but some client side.

Thanks,
Daryl
Alan
Top achievements
Rank 1
 answered on 10 Mar 2011
4 answers
304 views
Good day!

I'm creating an application in which the multiple RadScheduler are created from code-behind. How do I add a custom context menu when a user right clicks an appointment or timeslot? I'm using Q1 2010 version.

Thanks.
Thomas
Top achievements
Rank 1
 answered on 10 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?