Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
297 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
83 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
48 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
36 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
246 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
183 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
279 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
6 answers
126 views
Hello,

I have a RadDatePicker control with footer that contain 2 buttons.One named "Today" and second named "OK" 
1. How can i highlight the today day on the calendar when i click the button( with java script) ?
    I do not want to toggle the calendar when i click the "Today" button, only highlight the current day on the calendar.
2. When i click on the "OK" button i want to put the selected date value  in the textbox and  toggle the calendar.
3. If i click on any date in the calendar i do not want to toggle the calendar (only the "OK" button toggle the calendar).


I need it in client side (JS).

Thank you,
Oren
Rayne
Top achievements
Rank 1
 answered on 10 Mar 2011
2 answers
110 views

Hey all, Im using the telerik radscheduler with a custom provider. In my custom provider, I have a number of custom resources that I want to expose on the advanced edit form. My question is how do I bind the controls on the form to the resources??

Any assistance is appreciated. 

Peter
Telerik team
 answered on 10 Mar 2011
4 answers
116 views
I'm loading a tools file, then custom (external) css into my editor programatically.  The Apply CSS Class dropdown properly picks up the external styles, but the Paragraph Style dropdown does not pick up the styles from the "H" tags.  How to I display the "Heading 1" text in the dropdown as the appropriate style as shown in your demo, without writing a style block to the page that contains the editor or putting the inline style in the tools file as shown in your example?

Thanks
Chuck
Rob
Top achievements
Rank 2
 answered on 10 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?