Hi,
We are getting a problem of loss of data from bound template controls of scheduler in AdvancedInsertTemplate and
AdvancedEditTemplate. It occurs when we cancel server side AppointmentInsert or AppointmentUpdate event for the purpose of
confirmation from the user. We are using 2008.2.1001.35 version and providing the datasource in code behind at run time.
Thanks
| Protected Sub RadAjaxManager1_AjaxRequest(ByVal sender As Object, ByVal e As Telerik.Web.UI.AjaxRequestEventArgs) Handles RadAjaxManager1.AjaxRequest |
| Dim RadComboBoxName As RadComboBox = Nothing |
| For Each myItem As GridDataItem In RadGridPpoCodes.EditItems |
| RadComboBoxName = TryCast(myItem.EditFormItem.FindControl("RadComboBoxName"), RadComboBox) |
| If Not RadComboBoxName IS Nothing Then |
| RadComboBoxName.DataBind() |
| End If |
| Next |
| End Sub |
| <telerik:RadMenu ID="RadMenu1" runat="server" DataSourceID="dsBranch" |
| DataTextField="Branch_Name" Flow="Vertical" Skin="Forest"> |
| <ItemTemplate> |
| <a href="#" onclick="openRadWindow('<%# DataBinder.Eval(Container.DataItem, "Branch_ID") %>'); return false;"><%# DataBinder.Eval(Container.DataItem, "Branch_Name") %></a> |
| </ItemTemplate> |
| </telerik:RadMenu> |
- Resize based on WindowContent
- Disable Scrollbars
I'm trying to display a RadWindow that when it loads will resize based on the size of the content inside the RadWindow iframe.
After it has been resized to fit the content I would like to disable the scrollbars for that iframe.
Below is a sample of the javascript I've got so far but am having trouble disabling the scrollbars
function GetSelectedWindow()
{
var oManager = GetRadWindowManager();
return oManager.getActiveWindow();
}
function
ChangeSize()
{
var oWindow = GetSelectedWindow();
var width = oWindow._iframe.contentWindow.document.body.scrollWidth;
var height = oWindow._iframe.contentWindow.document.body.scrollHeight;
oWindow._iframe.style.overflow = 'hidden'; //doesn't work
Window._iframe.scrolling = 'no'; //doesn't work
oWindow._enablePageScrolling(false); //doesn't work
oWindow.setSize(width, height);
}