Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
53 views
Hi,

I'm using dynamically created RadDockZones and RadDocks to represent data.
Everything is dynamically created during the Page_Init event.
Whenever a Dock is dragged to a different DockZone, I want to save its new position (DockZone) in the database.
I'm using the DockPositionChanged event for this.

However, when a Dock is dragged to another DockZone, triggering the DockPositionChanged event, the Page_Init event is fired BEFORE the DockPositionChanged event.
This means that while the new position (DockZone) of the Dock is correctly saved in the database, it's not shown until a refresh of the page.

Is there a way to deal with this without having to go throught the trouble of loading/saving the state?

Cheers,
CJ
Slav
Telerik team
 answered on 09 Nov 2012
1 answer
72 views
I am trying to use the AsyncUpload in an MVC application. Added the control to a view and all the client side validations worked fine. I am not able to figure out how to get my FileUploaded event handler triggered on file upload.

I added the following Action to one of the controllers, managed to get the submitted file through the form collection.
public ActionResult UploadFileToServer(FormCollection form)


I am recieving something like the following as part of the form["RadAsyncUpload1_ClientState"] member.

{'isEnabled':'true','uploadedFiles':[{"fileInfo":{"FileName":"New Text
Document.jpg","ContentType":"image/jpeg","ContentLength":7,"Index":0},"metaData":"/wEFsQF7IlRlbXBGaWxlTmFtZSI6Im5rMW10MGQxLjFxZSIsIkFzeW5jVXBsb2FkVHlwZU5hbWUiOiJUZWxlcmlrLldlYi5VSS5VcGxvYWRlZEZpbGVJbmZvLCBUZWxlcmlrLldlYi5VSSwgVmVyc2lvbj0yMDEyLjMuMTAxNi40MCwgQ3VsdHVyZT1uZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj0xMjFmYWU3ODE2NWJhM2Q0In2cjHHKucOwL9XHbTwMx7hNK3SkzeOs2R2WtBZJyOqw3w=="}]}
This seems like json representation of the FileUploadedEventArgs. Can someone let me know how to create the FileUploadedEventArgs type object with this, so that I can process the file contents?

Let me know if there is any other supported way of dealing with this control in MVC applications.
Peter Filipov
Telerik team
 answered on 09 Nov 2012
1 answer
70 views
I am using the grid export to excel functionality.
i have removed the filters, sorting,and paging before exporting.
But whenever it exports it exports in web or html files that will ope in excel file but it is not the excel file format like xls.
how can we export it to excel format rather than web format.
so that it won't warn before opening it from excel,
right now it always warns before opening from excel and my client gets confused if it is harmful to open.

Is there a way we can make the export to excel to export the grid into a pure .xls excel file format..
Kostadin
Telerik team
 answered on 09 Nov 2012
2 answers
137 views
Hi there
  I am using the RadMultiPage with set of PageViews for a wizard functionality. It works fine before i introduce the RadAjaxPanel around that. After i do so, i see it is not working only in Firefox. IE seems to be fine navigation the wizard. For Firefox, it fires the event in serverside while i click the next/back button in each pageView but the next page is not selected.

I also tried the fix for Firefox from this solution - http://www.telerik.com/help/aspnet-ajax/ajaxviewstatefirefox.html but no luck

Details
DNN Website
Telerik Q1 2010 controls

Here is my ASCX snippet.
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="SiteConfigWizard.ascx.cs" 
    Inherits="SiteConfigWizard" %> 
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
<telerik:RadAjaxLoadingPanel ID="LoadingPanel1" runat="server" Transparency="30" IsSticky="false"  
    BackgroundPosition="Center">  
    <asp:Image ID="image1" runat="server" AlternateText="Loading..." ImageUrl="~/images/Loading1.gif" /> 
</telerik:RadAjaxLoadingPanel> 
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="LoadingPanel1" > 
    <telerik:RadMultiPage ID="radSiteConfigPages" SelectedIndex="0" runat="server"
        <telerik:RadPageView ID="pgHome" runat="server"
            <fieldset class="fs_standard"
                <h3> 
                    <asp:Label ID="lblHead_Home" runat="server" Text="Create a new site"></asp:Label></h3
                <class="blurb"
                    <asp:Label ID="lblSubHead_Home" runat="server" Text="Provide the basic settings for creating a new site."></asp:Label></p
                <table class="tbl_form"
                    <tr> 
                        <td> 
                            <label> 
                                Site Name *</label> 
                        </td> 
                        <td class="td_input_text"
                            <asp:TextBox ID="txtSiteName" runat="server" Font-Size="Medium" Font-Bold="true"></asp:TextBox> 
                            <asp:RequiredFieldValidator ID="rfvSiteName" runat="server" ControlToValidate="txtSiteName" 
                                Text="*" ErrorMessage="Site name is required."></asp:RequiredFieldValidator> 
                        </td> 
                        <td> 
                            <telerik:RadToolTip ID="rttSiteName" ShowEvent="OnClick" HideEvent="LeaveTargetAndToolTip" 
                                Sticky="true" ShowDelay="50" runat="server" TargetControlID="txtSiteName" RelativeTo="Element" 
                                Animation="None" Position="MiddleRight"
                                The alias name of the site used for uniquely identifying it. This name should be 
                                unique.</telerik:RadToolTip> 
                        </td> 
                    </tr> 
                    <tr> 
                        <td> 
                            <label> 
                                Site Alias Name *</label> 
                        </td> 
                        <td class="td_input_text"
                            <asp:TextBox ID="txtSiteAlias" runat="server" Font-Size="Medium" Font-Bold="true"></asp:TextBox> 
                            <asp:RequiredFieldValidator ID="rfvSiteAlias" runat="server" ControlToValidate="txtSiteAlias" 
                                Text="*" ErrorMessage="Site Alias is required."></asp:RequiredFieldValidator> 
                        </td> 
                        <td> 
                            <telerik:RadToolTip ID="rttSiteAlias" ShowEvent="OnClick" HideEvent="LeaveTargetAndToolTip" 
                                Sticky="true" ShowDelay="50" runat="server" TargetControlID="txtSiteAlias" RelativeTo="Element" 
                                Animation="None" Position="MiddleRight"
                                The alias name of the site used for uniquely identifying it. This name should be 
                                unique.</telerik:RadToolTip> 
                        </td> 
                    </tr> 
                    <tr valign="top"
                        <td> 
                            <label> 
                                Website Type *</label> 
                        </td> 
                        <td> 
                            <asp:RadioButtonList ID="rblWebSiteType" runat="server" RepeatDirection="Horizontal"
                            </asp:RadioButtonList> 
                            <asp:RequiredFieldValidator ID="rfvSiteType" runat="server" ControlToValidate="rblWebSiteType" 
                                Text="*" ErrorMessage="Site Type is required."></asp:RequiredFieldValidator> 
                        </td> 
                        <td> 
                            <telerik:RadToolTip ID="rttSiteType" ShowEvent="OnClick" HideEvent="LeaveTargetAndToolTip" 
                                Sticky="true" ShowDelay="50" runat="server" TargetControlID="rblWebSiteType" 
                                RelativeTo="Element" Animation="None" Position="MiddleRight"
                                The type of the site. For promotional site, select Promotion, otherwise select Website.</telerik:RadToolTip> 
                        </td> 
                    </tr> 
                    <tr> 
                        <td> 
                        </td> 
                        <td colspan="2"
                            <div class="cta"
                                <asp:LinkButton ID="lbtNextPage_Home" CssClass="button" runat="server" OnClick="lbtNextPage_Home_Click"><span>Next &gt;</span></asp:LinkButton> 
                                <div class="clear"
                                </div> 
                            </div> 
                        </td> 
                    </tr> 
                    <%-- <tr> 
                    <td> 
                        Website Default Timezone 
                    </td> 
                    <td> 
                        <asp:DropDownList ID="drpTimeZones" runat="server"
                        </asp:DropDownList> 
                    </td> 
                </tr>--%> 
                </table> 
            </fieldset> 
        </telerik:RadPageView> 
        <telerik:RadPageView ID="pgImport" runat="server"
            <fieldset class="fs_standard"
                <h3> 
                    <asp:Label ID="lblHead_Import" runat="server" Text="Import Existing Website settings"></asp:Label></h3
                <class="blurb"
                    <asp:Label ID="lblSubHead_Import" runat="server" Text="You can select an existing website to get all its information automatically imported to your new site."></asp:Label></p
                <p> 
                    Would you like to import settings? 
                    <asp:RadioButtonList ID="rbtImportSettings" runat="server" AutoPostBack="true" OnSelectedIndexChanged="rbtImportSettings_SelectedIndexChanged"
                        <asp:ListItem Text="Yes, Show me existing website" Value="1"></asp:ListItem> 
                        <asp:ListItem Text="No Thanks! Let me create it from scratch." Value="2" Selected="True"></asp:ListItem> 
                    </asp:RadioButtonList> 
                </p> 
                <div id="divExistingPromo" runat="server" visible="false" style="padding-bottom: 28px;"
                    Select any existing Website to import it's settings: &nbsp; 
                    <telerik:RadComboBox ID="rcbExistingWeb" runat="server" Skin="Web20" Text="Select One..." 
                        ExpandAnimation-Type="OutBack" CollapseAnimation-Type="InBack" Width="150px" 
                        DropDownWidth="150px"
                    </telerik:RadComboBox> 
                    <telerik:RadToolTip ID="rttExistingPromo" ShowEvent="OnClick" HideEvent="LeaveTargetAndToolTip" 
                        Sticky="true" ShowDelay="50" runat="server" TargetControlID="rcbExistingWeb" 
                        RelativeTo="Element" Animation="None" Position="MiddleRight"
                        These are the previous promotion available. Select any of them to import all those 
                        settings.</telerik:RadToolTip> 
                </div> 
                <div class="cta"
                    <asp:LinkButton ID="lbtPrevPage_Import" runat="server" CssClass="button_soft" OnClick="lbtPrevPage_Import_Click"><span>&lt; Back</span></asp:LinkButton> 
                    <asp:LinkButton ID="lbtNextPage_Import" runat="server" CssClass="button" OnClick="lbtNextPage_Import_Click"><span>Next &gt;</span></asp:LinkButton> 
                    <div class="clear"
                    </div> 
                </div> 
            </fieldset> 
        </telerik:RadPageView> 
        <telerik:RadPageView ID="pgTemplates" runat="server"
            <fieldset class="fs_standard"
                <h3> 
                    <asp:Label ID="lblHead_Templates" runat="server" Text="Website template"></asp:Label></h3
                <class="blurb"
                    <asp:Label ID="lblSubHead_Templates" runat="server" Text="Templates provides the skin and other apperance for your site. Select one of the 
                    available template."></asp:Label></p
                <fieldset> 
                    <h4> 
                        Available Templates</h4> 
                    <telerik:RadListBox ID="lstTemplates" Width="200" Height="200" SelectionMode="Single" 
                        AutoPostBack="true" Skin="Web20" runat="server"
                    </telerik:RadListBox> 
                    <div class="snapshots"
                        <<asp:Image ID="imgTemplate" runat="server" /> 
                        <img src="/Portals/0/snapshot_blue.gif" width="200" height="150" alt="Default Blue" 
                            class="snapshot" /> 
                        <img src="/Portals/0/snapshot_brown.gif" width="200" height="150" alt="Default Brown" 
                            class="snapshot" /> 
                        <img src="/Portals/0/snapshot_green.gif" width="200" height="150" alt="Default Green" 
                            class="snapshot" /> 
                    </div> 
                </fieldset> 
                <div class="cta"
                    <asp:LinkButton ID="lbtPrevPage_Template" runat="server" CssClass="button_soft" OnClick="lbtPrevPage_Template_Click"><span>&lt; Back</span></asp:LinkButton> 
                    <asp:LinkButton ID="lbtNextPage_Template" runat="server" CssClass="button" OnClick="lbtNextPage_Template_Click"><span>Next &gt;</span></asp:LinkButton> 
                    <div class="clear"
                    </div> 
                </div> 
            </fieldset> 
        </telerik:RadPageView> 
        <telerik:RadPageView ID="pgPromo" runat="server"
            <fieldset class="fs_standard"
                <h3> 
                    <asp:Label ID="lblHead_Promo" runat="server" Text="You've selected Promotion"></asp:Label></h3
                <class="blurb"
                    <asp:Label ID="lblSubHead_Promo" runat="server" Text="Let's know more about this Promotion."></asp:Label></p
                <fieldset> 
                    <h4> 
                        Promotion Type</h4> 
                    <p> 
                        Select a type that best suits this promotion.</p> 
                    <telerik:RadComboBox ID="rcbPromoType" runat="server" Skin="Web20" ExpandAnimation-Type="OutBack" 
                        CollapseAnimation-Type="InBack" Width="250px" DropDownWidth="250px"
                    </telerik:RadComboBox> 
                    <telerik:RadToolTip ID="rttPromoType" ShowEvent="OnClick" HideEvent="LeaveTargetAndToolTip" 
                        Sticky="true" ShowDelay="50" runat="server" TargetControlID="rcbPromoType" RelativeTo="Element" 
                        Animation="None" Position="MiddleRight"
                        Select your promotion type.</telerik:RadToolTip> 
                </fieldset> 
                <fieldset> 
                    <h4> 
                        Duration <small>(optional)</small></h4
                    <table class="tbl_form"
                        <tr> 
                            <td> 
                                <label> 
                                    Promotion Start Date</label> 
                            </td> 
                            <td> 
                                <telerik:RadDateTimePicker ID="calStartDate" runat="server" Calendar-DayNameFormat="Short" 
                                    DateInput-DisplayDateFormat="M/d/yyyy hh:mm tt" DateInput-EmptyMessage="Pick a date"
                                </telerik:RadDateTimePicker> 
                            </td> 
                        </tr> 
                        <tr> 
                            <td> 
                                <label> 
                                    Promotion End Date</label> 
                            </td> 
                            <td> 
                                <telerik:RadDateTimePicker ID="calEndDate" runat="server" Calendar-DayNameFormat="Short" 
                                    DateInput-DisplayDateFormat="M/d/yyyy hh:mm tt" DateInput-EmptyMessage="Pick a date"
                                </telerik:RadDateTimePicker> 
                            </td> 
                        </tr> 
                    </table> 
                </fieldset> 
                <div class="cta"
                    <asp:LinkButton ID="lbtPrevPage_Promo" runat="server" CssClass="button_soft" OnClick="lbtPrevPage_Promo_Click"><span>&lt; Back</span></asp:LinkButton> 
                    <asp:LinkButton ID="lbtNextPage_Promo" runat="server" CssClass="button" OnClick="lbtNextPage_Promo_Click"><span>Next &gt;</span></asp:LinkButton> 
                    <div class="clear"
                    </div> 
                </div> 
            </fieldset> 
        </telerik:RadPageView> 
        <telerik:RadPageView ID="pgFinish1" runat="server"
            <fieldset class="fs_standard"
                <h3> 
                    <asp:Label ID="lblHead_Finish1" runat="server" Text="ALL SET"></asp:Label></h3
                <class="blurb"
                    <asp:Label ID="lblSubHead_Finish1" runat="server" Text="We now have the basic information needed to create the new Promotion."></asp:Label></p
                <div class="cta"
                    <asp:LinkButton ID="lbtPrevPage_Finish1" runat="server" CssClass="button_soft" OnClick="lbtPrevPage_Finish1_Click"><span>Back</span></asp:LinkButton> 
                    <asp:LinkButton ID="lbtCreateSite_Finish1" runat="server" CssClass="button" OnClick="lbtCreateSite_Finish1_Click"><span>Create Site</span></asp:LinkButton> 
                    <div class="clear"
                    </div> 
                </div> 
            </fieldset> 
        </telerik:RadPageView> 
        <telerik:RadPageView ID="pgFinish2" runat="server"
            <fieldset class="fs_standard"
                <h3> 
                    <asp:Label ID="lblHead_Finish2" runat="server" Text="Site Created Successfully"></asp:Label></h3
                <class="blurb"
                    <asp:Label ID="lblSubHead_Finish2" runat="server" Text="Your new site was created successfully. Please go through the below information for accessing the new site."></asp:Label></p
                <div id="divSiteDetails" runat="server" visible="false"
                    <fieldset> 
                        <h4> 
                            Your Site Name</h4> 
                        <class="confirm_site"
                            <asp:Label ID="lblSiteName" runat="server" Text="Snackonomics"></asp:Label></p
                        <h4> 
                            Your Site Path</h4> 
                        <class="confirm_url"
                            <id="ancSitePath" runat="server" target="_blank" href="#"></a> 
                        </p> 
                        <input type="hidden" runat="server" id="hidPromoId" value="0" /> 
                        <input type="hidden" runat="server" id="hidWebsiteId" value="0" /> 
                    </fieldset> 
                </div> 
                <%--<p> 
                You can now choose to either finish the wizard now, Or click continue to furnish 
                more details that are required to make it work functionally</p>--%> 
                <p> 
                    You can now choose to finish the wizard and get into the detailed setting of promotion. 
                    Otherwise, you can take a first look at the promotion.</p> 
                <div class="cta"
                    <asp:LinkButton ID="lbtFinish2" runat="server" CssClass="button_soft" OnClick="lbtFinish2_Click"><span>Finish</span></asp:LinkButton> 
                    <id="ancSitePath2" runat="server" target="_blank" href="#" class="button"><span>Preview 
                        site</span></a
                    <div class="clear"
                    </div> 
                </div> 
            </fieldset> 
        </telerik:RadPageView> 
    </telerik:RadMultiPage> 
</telerik:RadAjaxPanel> 
Vikash
Top achievements
Rank 1
 answered on 09 Nov 2012
1 answer
125 views
I Use custom Skins and disable all Skins using  the web.config. The problem is that RadTabStrip and Radwindows do not render properly.  Please see images. If I change   <add key="Telerik.EnableEmbeddedBaseStylesheet" value="false" />  to   <add key="Telerik.EnableEmbeddedBaseStylesheet" value="true" /> everything start working. I use SharePoint 2010 as host and IE8. IE has limited of css files (31 css) and I try to use custom skins to minimize the css files so if I disable the base stylesheet I will be fine. So I will have only my custom skins which are 3 css.

Tha RadTabstrip show the list of tabs as regular ul and li. and the radwindows show all the images around the box.

Web.Config
    <!-- Disables the embedded scripts and skins for all RadControls -->
    <add key="Telerik.EnableEmbeddedSkins" value="false" />
    <add key="Telerik.EnableEmbeddedBaseStylesheet" value="false" />
    <add key="Telerik.EnableEmbeddedScripts" value="true" />
 
Kate
Telerik team
 answered on 09 Nov 2012
1 answer
313 views
Hello,
I'm working with type HtmlChart columns.
I'm assigning the title of the chart from code-behind.
Something like:
MyRadHtml.ChartTitle.Text = "Percentage of progress ...";
I need to insert into the title a line break.
Can you help?
Thank you.
Marin Bratanov
Telerik team
 answered on 09 Nov 2012
1 answer
68 views
Hello, i'm looking for the a way to replace the "Default2006" skin in my Asp.Net program

"<td><telerik:RadDatePicker ID="calMaturityDate" runat="server" Skin="Default2006"></telerik:RadDatePicker></td>"

and downloaded and pasted in a Skins directory into my Visual Studio with the "Default2006" skin directory, but it doesn't seem to be picking it up and i also tried the "Skin=Default" but the "Default" skin doesn't present the fine lines around the grid and so on

thanks very much for any suggestions on how to fix this or any alternative approaches?

bk

 

Bozhidar
Telerik team
 answered on 09 Nov 2012
8 answers
119 views
Hi there,

I want to be able to call some server side methods when an appointment is moved, resized or deleted, but I do not want a postback to occur.  So I can capture the client side move event via OnClientAppointmentResizeEnd, OnClientAppointmentMoveEnd and OnClientAppointmentDeleting, but what I then want to do is cancel the postback that would happen.  I do not want to cancel the client side changes though, so args.set_cancel(true) will not do what I am after.

Is there a way to do what I'm trying to do?

Thanks for your help.

Matthew
Plamen
Telerik team
 answered on 09 Nov 2012
3 answers
146 views
Hi
I am working with RadControlsForAspNetAjaxControlPanel_2012_2_91
and SQLServer 2008 R2.I found the expand recurrence rule demo posted
and i am using it to expand the recurrence rule of appointments.I am using
a windows service that collects the appointments for "execution" every minute.  
In case of an appointment execution failure i need to try to execute again
this appointment as long as there is no other appoinment that is bound to the same resource.
I am trying to get the latest instance from a task for a group but i can't.
e.g This is by Scheduler table containing two recurring appoinments
DTSTART:20121101T103000Z  DTEND:20121101T110000Z  RRULE:FREQ=HOURLY;COUNT=3;INTERVAL=1  for resource 7
DTSTART:20121101T110000Z  DTEND:20121101T113000Z  RRULE:FREQ=HOURLY;COUNT=5;INTERVAL=1 for resource 7
DTSTART:20121101T133000Z  DTEND:20121101T133500Z  RRULE:FREQ=HOURLY;COUNT=2;INTERVAL=1  for resource 8

I use the sql max function for start date but displays me the third instance from the first rule and the fifth instance from the second rule and the second instance from the third rule
Is there any other way to get the latest instance from all instances for a specific resource and for every resource???
(the fifth from second rule and the second from the third rule only)
  

Plamen
Telerik team
 answered on 09 Nov 2012
1 answer
90 views
Hello,

It appears that deploying RadControlsSP.wsp now makes some changes to web.config automatically?  Specifically I believe I am seeing an http handler automatically being registered.  Can you confirm this?

Also, if this is true, is there any way to stop this from happening?  We have deployments running the old version of this package, which did not automatically add the handler, so we created a powershell script that added it ourselves.  But now when deploying the updated RadControlsSP.wsp package we are left with duplicate handler entries.  A manual fix is possible, but do automated deployments to numerous environments, and manually fixing this issue on every web server in a SharePoint farm upon each deployment would be incredibly tedious.

Thank you,

Chris
Dobromir
Telerik team
 answered on 09 Nov 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?