Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
70 views
Hi
Radwindow is closing when refresh the parent page.

Parent aspx page we are calling this radwindow code:

var oWnd1 = window.radopen('ABC.aspx', 'List');
oWnd1.setSize(800, 490); //set as per req
oWnd1.set_modal(true);
oWnd1.set_behaviors(4 + 32);
return false;

From parent page  we are calling radwindow. here it is showing window . when we click the F5(Refresh)  radwindow is closing automatically.

Please help us.

Please revert back to your comments.

Regards,
Karuna


Marin Bratanov
Telerik team
 answered on 25 Jun 2014
1 answer
122 views
01.protected void RadScheduler1_FormCreated(object sender, SchedulerFormCreatedEventArgs e)
02.        {
03.            if ((e.Container.Mode == SchedulerFormMode.AdvancedEdit) || (e.Container.Mode == SchedulerFormMode.AdvancedInsert))
04.            {
05.                CustomValidator validatorForDescription = new CustomValidator();
06.                RadScheduler scheduler = (RadScheduler)sender;
07.                validatorForDescription.ValidationGroup = scheduler.ValidationGroup;
08.                validatorForDescription.ControlToValidate = "Subject";
09.                validatorForDescription.ErrorMessage = "Job Title should be indicated !";
10.                validatorForDescription.ClientValidationFunction = "validationFunction";
11.                //validatorForDescription.Display = ValidatorDisplay.Dynamic;
12.                //e.Container.Controls.Add(validatorForDescription);               
13.                (e.Container.FindControl("Subject") as RadTextBox).Parent.Controls.Add(validatorForDescription);
14. 
15.                CheckBox allDayCheckbox = (CheckBox)e.Container.FindControl("AllDayEvent");
16.                allDayCheckbox.Style.Add("visibility", "hidden");
17.            }
18.        }
01.<telerik:RadScheduler runat="server" ID="RadScheduler1" TimeZoneOffset="10:00:00" OnAppointmentInsert="RadScheduler1_AppointmentInsert" OverflowBehavior="Expand" Height="100%"
02.               OnAppointmentUpdate="RadScheduler1_AppointmentUpdate" OnAppointmentDelete="RadScheduler1_AppointmentDelete"
03.               DataKeyField="ID" DataSubjectField="Subject" DataStartField="Start" DataEndField="End" OnFormCreated="RadScheduler1_FormCreated"
04.               FirstDayOfWeek="Monday" LastDayOfWeek="Sunday" TimeZoneID="AUS Eastern Standard Time" DisplayDeleteConfirmation="False" SelectedDate="2014-06-24">
05.               <ExportSettings>
06.                   <Pdf PageTopMargin="1in" PageBottomMargin="1in" PageLeftMargin="1in" PageRightMargin="1in"></Pdf>
07.               </ExportSettings>
08. 
09.               <AdvancedForm Modal="true" />
10.               <Localization AdvancedNewAppointment="Add a new job" AdvancedSubject="Job Title" AdvancedEditAppointment="Edit Job" AllDay="false" />
11.               <TimelineView UserSelectable="false" />
12.               <TimeSlotContextMenuSettings EnableDefault="true" />
13.               <AppointmentContextMenuSettings EnableDefault="true" />
14.               <Reminders Enabled="false" />
15.               <AppointmentTemplate>
16.                   <div>
17.                       <%# Eval("Subject") %>
18.                       <br />
19.                   </div>
20.               </AppointmentTemplate>
21.           </telerik:RadScheduler>

Here is my code behind and the  html side. Could anybody tell me why I cannot get a custom validator error message when I click OK on my Insert/Edit Form ?
thank you
Bozhidar
Telerik team
 answered on 25 Jun 2014
1 answer
79 views
I am trying to access web mail demo application from the following link but it's not working. Please anyone guide me how can I access?

http://demos.telerik.com/aspnet-ajax/webmail/


Vessy
Telerik team
 answered on 25 Jun 2014
3 answers
153 views
Hi

I have a telerik rad schedular in my page, which is inside a panel, and I have set width of schedular to 100%, but when I resize the browser, the width is not changing.

how can I create a schedular with 100% width?

thanks
Bozhidar
Telerik team
 answered on 25 Jun 2014
9 answers
843 views
Hi,

I am using RadComboBox control with checkbox.
On "RadComboBox2_ItemsRequested" event, I need to set the checkbox for specific items in the combobox.

Can somebody guide me how this can be achieved. I tried many different ways, but was unable to set the checkbox from server side on this event.

Thanks
duraid wadie
Top achievements
Rank 1
 answered on 25 Jun 2014
2 answers
99 views
Hi there,

I have tried the approach of binding scheduler control via web service and I do use the sample that what was provided by Telerik. Basically, copy-paste and change the class of DbProvider which is called from the webservice class by GetAppointment method.
It is taking considerably more time than expected. I did debug the code, and did trace the web service all by the browser tool, and the result doesn't really make me happy. 
Any experience about this topic ? Any advise ?

Thank you very much
Bozhidar
Telerik team
 answered on 25 Jun 2014
2 answers
181 views
Hi,
    First i'm sorry for my bad english, I'm not really good. But I will try to explain my problem for you can understand.

I want export my RadGrid in a Excel file (Biff). In my RadGrid I don't use the orignal CommandItem, I have add a personnal RadToolBar where I have add my Export button. When I click of my Button, I call a JS method (onPanelBarItemClicked) who calls the Click Event of my btnExport (this button isn't visible)

function onPanelBarItemClicked(sender, args) {
    if (args.get_item().get_commandName() == "ExportToExcel") {
        if (!alertDirtyNavigation()) {
            return false;
            }
         $find("<%=btnExport.ClientID%>").click();
        }
    }
 
{...}
<div style="display: none">
    <telerik:RadButton ID="btnExport" runat="server" AutoPostBack="true" CausesValidation="false" ButtonType="StandardButton" Target="_self"></telerik:RadButton>
</div>
 
{...}
<CommandItemTemplate>
            <div>
                <telerik:RadToolBar ID="RadToolBarGridEdit" runat="server" Width="100%" Height="25px" OnClientButtonClicked="onPanelBarItemClicked">
                    <Items>
 <telerik:RadToolBarButton Text="<% $Resources:General, ExportButtonText %>" Value="ExportButton" CommandName="ExportToExcel" AccessKey="E" ImageUrl="~/Images/16X16/export.png" ImagePosition="Right" PostBack="false"></telerik:RadToolBarButton>
                    </Items>
                </telerik:RadToolBar>
            </div>
        </CommandItemTemplate>

The code of btnExport.Click.

Private Sub btnExport_Click(sender As Object, e As EventArgs) Handles btnExport.Click
        GridFunction.ExportGridToExcel(Me.RadGridDepartement)
End Sub

With this method, the XLS file is generated and i can download the file. But, I don't have LoadingPanel for show that application working.



If in my JS method I add the method for show the LoadingPanel. The loadingPanel appears and I can donwload my file. But my problem is that the loadingPanel never disappears. (LoadingPanelNeverDisappears.png)
function onPanelBarItemClicked(sender, args) {
    if (args.get_item().get_commandName() == "ExportToExcel") {
        if (!alertDirtyNavigation()) {
            return false;
            }
         showMainLoadingPanel("<%=RadGridDepartement.ClientID%>"); 
         $find("<%=btnExport.ClientID%>").click();
        }
    }

For can resolve this problem. I have added AjaxSettings in the RadAjaxManagerProxy. But i have a new  and big problem. After the XLS generation, I can't download my file. And in my RadGrid, my action column has disappeared, the width of my Data Column are too large and the PagerStyle has disappeared. (GridBug.png)
<telerik:AjaxSetting AjaxControlID="btnExport">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="btnExport" />  
                <telerik:AjaxUpdatedControl ControlID="RadGridDepartement" />
            </UpdatedControls>
        </telerik:AjaxSetting>

Do you have a solution ? I have search in forum and with google. But the solution isn't really relevant in my situation. 

We have : 
 - MasterPage 
 - BaseUserControl (all page Inherits) 
 - Page.


Thank you so much.
Mathieu B.
MathieuB
Top achievements
Rank 1
 answered on 25 Jun 2014
2 answers
114 views
Have a couple of RadWindows on a product I developed a couple of years ago.  No code has changed only updated to the latest Telerik to add some other functionality, and now the RadWindows do not autosize, the native radwindow close doesn't close and when attempt to close them via a button, I am now getting the following error:

0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'stopTransition'

The following is code that creates the RadWindow server side, and then adds it to RadWindowManager.  This code has not changed.

HTML:
<telerik:RadWindowManager ID="rwmViewPackage" runat="server" Animation="Fade"
EnableShadow="True" KeepInScreenBounds="True" Modal="True" Skin="Metro" Behaviors="Close"
VisibleOnPageLoad="True" VisibleStatusbar="False" DestroyOnClose="True"
EnableViewState="false" AutoSize="True" >
</telerik:RadWindowManager>

VB.NET:
Dim rwViewPackage As New Telerik.Web.UI.RadWindow
rwViewPackage.NavigateUrl = "~/vpAdditions/Comments.aspx"
rwViewPackage.Title = "Comments for "
rwViewPackage.Title = rwViewPackage.Title & tbManufacturer.Text & " " & tbName.Text
rwViewPackage.ID = "rwViewPackage"
rwViewPackage.Animation = Telerik.Web.UI.WindowAnimation.Fade
rwViewPackage.EnableViewState = False
rwViewPackage.EnableShadow = True
rwViewPackage.DestroyOnClose = True
rwViewPackage.VisibleOnPageLoad = True
rwViewPackage.KeepInScreenBounds = True
rwViewPackage.Modal = True
rwViewPackage.Skin = "Default"
rwViewPackage.IconUrl = "../Graphics/Package/PreviousComments.png"
rwViewPackage.AutoSize = True
rwmViewPackage.Windows.Add(rwViewPackage)

The Comments.aspx contains the following code to close:
HTML:
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
<script type="text/javascript">
function CloseAndRebind() {
GetRadWindow().BrowserWindow.refreshGrid();
setTimeout(function () {
GetRadWindow().close();
}, 0);
}
function GetRadWindow() {
var oWindow = null;
if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog
else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; //IE (and Moz as well)
return oWindow;
}
</script>
</telerik:RadCodeBlock>

VB.NET:
ClientScript.RegisterStartupScript(Page.GetType(), "mykey", "CloseAndRebind();", True)

Thoughts?




Marin Bratanov
Telerik team
 answered on 25 Jun 2014
3 answers
124 views
I know that you can set AutoStart to False using the Properties in the Media Manager, I am wondering if there is anyway to have this automatically default to False instead of True.
Ianko
Telerik team
 answered on 25 Jun 2014
1 answer
925 views
Hi,

I have a Hierarchical Grid. The master one has a data source tied with a stored procedure.

I have created the nested/hierarchical data with another data source tied with a stored procedure.

Both stored procedures have a common fields which I did a relation.   The master view data is displaying correctly.  No issues here. But, when I clicked on expand of master grid, I don't get the child items. No child records to display is the message I see.  But, it has data in database and see when I individually run the stored procedures.

I followed this video but wasn't successful.  http://tv.telerik.com/watch/radcontrols-for-aspnet-ajax/radgrid-using-the-designer-to-create-a-hierarchical-grid

I am not sure what I did wrong.  Can anyone please give me an example to bind data sources using stored procedures?


Thank you.
Radoslav
Telerik team
 answered on 25 Jun 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
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?