Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
497 views
I am using Rad-Scheduler and Rad Menu (v Q4 2008), and I want my Scheduler Advanced (insert/edit) form to be on TOP of RadMenu.
I tried to set the Z-Index in the same manner as
http://www.telerik.com/support/kb/aspnet-ajax/window/show-radwindow-above-radmenu.aspx
or
http://www.telerik.com/community/forums/dotnetnuke/module-development/radmenu-z-index-with-radscheduler.aspx
I am using skin "Hay" for both of the Rad Controls.
Kindly guide me towards the solution.

Thanks
Sajid
Helen
Telerik team
 answered on 03 Aug 2010
1 answer
84 views
Hello every one,

        my page is using frames and i have two grids with in a frame (occupies 80% height and 100% width of the page). i used two panes with in a splitter, to place grids in each pane. Also splitbar between two panes.

Now my requirement is to,                
                - set the height of splitter according to the height of the frame, so that no vertical scroll bar is visible on page.
                - resize splitter and panes accordingly when split bar is dragged upwards and downwards (height of page may be increased).

just after splitter load, when splitter height is set to height of frame:
    - when split bar is dragged upwards, first pane height must be decreased with drag and splitter height must remain same
    - when splitbar is dragged downwards, height of first pane must be increased and second pane height
            - to be decreased if height of first pane is less than its initial height (upto initial height of splitter)
            - if height of first pane exceeds its initial height, second pane initial height to be maintained and splitter height to be increased accordingly (so that splitter height exceeds its initial height and page height is also increased)

all the above things working fine. problem occurs when dragging upwards (when the splitter height is greater than its initial height) so that the splitter height would be less than its initial height. i was not able to set the height of splitter at this event.

i am giving you java script i used for this. Please help me in the issue. 

at splitter load event.
- i am setting size of splitter according to frame
- getting initial height of splitter and top pane  and assigning the value to hidden fields ( when splitter loads for first time)
- getting height of splitter and panes and assigning the value to hidden fields  ( each time the splitter is loaded)

java script function for 'OnClientResized' event of first pane:

function

 

OnPane1Resized()

 

{

 

 

 

var FrameHeight = document.getElementById("<%= hdnFrameHeight.ClientID %>").value;

 

 

 

var splitter = $find("<%= RadSplitter1.ClientID %>");

 

 

var topPane = splitter.getPaneById("<%= RadPane1.ClientID %>");

 

 

var btmPane = splitter.getPaneById("<%= RadPane2.ClientID %>");

 

 

 

var sptrHeight = splitter.get_height();

 

 

var topPaneHeight = topPane.get_height();

 

 

var btmPaneHeight = btmPane.get_height();            // i am setting paneOldHeight to hidden fields on splitter 'load' event

 

 

 

var topPaneOldHeight = parseFloat(document.getElementById("<%= hdnTopPaneOldHeight.ClientID %>").value);

 

 

var btmPaneOldHeight = parseFloat(document.getElementById("<%= hdnBtmPaneOldHeight.ClientID %>").value);

 

 

var topPaneNewHeight = topPaneHeight;

 

document.getElementById(

"<%= hdnTopPaneOldHeight.ClientID %>").value = topPaneNewHeight;

 

 

var HeightDiff = topPaneNewHeight - topPaneOldHeight;

 

 

var resizeSptr = sptrHeight + HeightDiff ;

 

 

var resizeBtmPane = btmPaneHeight + HeightDiff ;         // i am setting initialHeight to hidden fields when splitter loads for the first time

 

var initSptrHeight = parseFloat(document.getElementById("<%= hdnInitSptrHeight.ClientID %>").value) ;

 

 

var initTopPaneHt = parseFloat(document.getElementById("<%= hdnInitTopPaneHeight.ClientID %>").value );

 

 

 

var OldSptrHt = topPaneOldHeight + btmPaneOldHeight ;

 

 

var SpaceHeight = initSptrHeight - OldSptrHt ;

 

 

 

// var btmPaneHeight1 = 0.35 * initSptrHeight;

 

 

 

 

if(HeightDiff > 0)

 

{

 

 

if (topPaneHeight > initTopPaneHt)

 

{

 

if(SpaceHeight >= 1)

 

{

 

var b = (resizeSptr - SpaceHeight);

 

 

var c = (resizeBtmPane - SpaceHeight);

 

splitter._setSize(

null,b);

 

btmPane._setSize(

null,c);

 

topPane._setSize(

null,topPaneHeight);

 

}

 

else

 

{

splitter._setSize(

null,resizeSptr);

 

btmPane._setSize(

null,resizeBtmPane);

 

topPane._setSize(

null,topPaneHeight);

 

}

}

 

else

 

{

 

}

 

 

}

 

else if(HeightDiff < 0)

 

{

 

if (topPaneHeight < initTopPaneHt)

 

{

 

var bpHeight = initSptrHeight - topPaneHeight ;

 

 

var Diff = sptrHeight - initSptrHeight ;

 

 

if (Diff > 1)                      // this is not working. as a final try i have set to initial size which can be seen below. even this is not working

 

{

splitter._setSize(

null,initSptrHeight);

 

topPane._setSize(null,initTopPaneHt);

 

else

 

{

splitter._setSize(

null,initSptrHeight);

 

}

 

}

 

else

 

{

splitter._setSize(

null,resizeSptr);

 

btmPane._setSize(

null,resizeBtmPane);

 

topPane._setSize(

null,topPaneHeight);

 

}

 

}

 

 

}

Dobromir
Telerik team
 answered on 03 Aug 2010
5 answers
331 views
Hello.
Sample code TestPage.aspx:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TestPage.aspx.cs" Inherits="TelerikDynamicUserControlJsApp.testPage" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <div style="display:none">
            <rad:RadScriptManager runat="server" EnablePageMethods="true">
                <Scripts>
                    <%--Needed for JavaScript IntelliSense in VS2010--%>
                    <%--For VS2008 replace RadScriptManager with ScriptManager--%>
                    <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
                    <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
                    <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
                </Scripts>
            </rad:RadScriptManager>
            <rad:RadAjaxManager runat="server">
                <AjaxSettings>
                    <rad:AjaxSetting AjaxControlID="TestButton">
                        <UpdatedControls>
                            <rad:AjaxUpdatedControl ControlID="TestPlaceHolder" />
                        </UpdatedControls>
                    </rad:AjaxSetting>
                </AjaxSettings>
            </rad:RadAjaxManager>
        </div>
        <div>
            <asp:Button ID="TestButton" runat="server" Text="Test" Width="60" OnClick="TestButton_OnClick" />
            <asp:PlaceHolder ID="TestPlaceHolder" runat="server"/>   
        </div>
    </form>
</body>
</html>

protected void TestButton_OnClick(object sender, EventArgs e)
{
   TestPlaceHolder.Controls.Add(LoadControl("TestUserControl.ascx"));
}

Sample code TestUserControl.ascx:
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="TestUserControl.ascx.cs" Inherits="TelerikDynamicUserControlJsApp.TestUserControl" %>
 
<rad:RadScriptBlock>
    <script language="text/javascript">
        function GridCreated() {
            alert("<%= Grid.ClientID %>");
        }
    </script>
</rad:RadScriptBlock>
 
<div style="display:none">
    <rad:RadAjaxManagerProxy runat="server">
        <AjaxSettings>
            <rad:AjaxSetting AjaxControlID="Grid">
                <UpdatedControls>
                    <rad:AjaxUpdatedControl ControlID="Grid"/>
                </UpdatedControls>
            </rad:AjaxSetting>
        </AjaxSettings>
    </rad:RadAjaxManagerProxy>
</div>
 
<rad:RadGrid ID="Grid" runat="server" AllowSorting="true">
    <ClientSettings>
        <ClientEvents OnGridCreated="GridCreated" />
    </ClientSettings>
</rad:RadGrid>

public class TestData
{
    public string TestField { get; set; }
}
 
protected void Page_Load(object sender, EventArgs e)
{
    Grid.DataSource = new TestData[] { new TestData { TestField = "Test" } };
}

Code throws "Sys.WebForms.PageRequestManagerServerErrorException: Please, see whether wrapping the code block, generating the exception, within RadCodeBlock resolves the error". I need create usercontrol in ajaxrequest, usercontrol has javascriptcode with server code(<%%>). How resolve this error?
Mira
Telerik team
 answered on 03 Aug 2010
3 answers
370 views
I'm trying to use an <AppointmentTemplate> to display data for my scheduler.  I have my DataSubjectField="ClassName" and a "ClassName" column defined in the System.Data.DataTable that I'm using as my DataSource.

But the scheduler is ignoring my DataSubjectField setting and giving me this error:  DataBinding: 'Telerik.Web.UI.Appointment' does not contain a property with the name 'ClassName'.

Is there some kind of "UseMyNames='True'" setting that I also need?

Here's my scheduler:

<telerik:RadScheduler ID="schPlanner" 
    AllowEdit="false" 
    AllowInsert="false" 
    DataEndField="End" 
    DataKeyField="SessionId" 
    DataRecurrenceField="" 
    DataRecurrenceParentKeyField="" 
    DataStartField="Start" 
    DataSubjectField="ClassName" 
    DayEndTime="22:00:00" 
    DayStartTime="06:00:00" 
    Height="100%" 
    RowHeight="21px" 
    runat="server" 
    SelectedView="WeekView" 
    ShowAllDayRow="false" 
    ShowFooter="false" 
    ShowHeader="false" 
    Skin="Web20" 
    Width="100%" 
    WorkDayEndTime="22:00:00" 
    WorkDayStartTime="06:00:00"   
    > 
    <WeekView ColumnHeaderDateFormat="dddd" /> 
    <AppointmentTemplate> 
        <div class="rsCustomAppointmentContainer">  
            <h2> 
                <%#Eval("ClassName")%> 
            </h2> 
            <div> 
            </div> 
        </div> 
    </AppointmentTemplate> 
</telerik:RadScheduler> 
 
T. Tsonev
Telerik team
 answered on 03 Aug 2010
5 answers
284 views

Hi,

 

We having problem with RadHtmlField in the Sharepoint Page Layout.

If we add the below field to the page layout and try to open this page, I get the Popup(NTLM) until I get 401 unauthorized .

 

This is the field that cause the error.

<telerik:RadHtmlField FieldName="DTACSTContent" runat="server" ID="STContent" DisplayWidth="400px" DisplayHeight="600px" ToolsFile="/_wpresources/RadEditorSharePoint/5.4.1.0__1f131a624888eeed/Resources/ScriptToolToolsFile.xml" ConfigFile="/_wpresources/RadEditorSharePoint/5.4.1.0__1f131a624888eeed/Resources/ScriptToolConfigFile.xml">

</telerik:RadHtmlField>

 Do you have any suggestion to solve this 401 issues?

Thanks,
Thanakon

Stanimir
Telerik team
 answered on 03 Aug 2010
1 answer
122 views
I have a grid setup to use Virtual Scrolling as well as having a GridClientSelectColumn.  What I would like to do is be able to select X records from Page 1.  Then scroll to page 3 and select Y more records.  On a postback I want RadGrid1.SelectedItems.Count to be X + Y. Right now it is only showing Y records.  Is this possible?
Radoslav
Telerik team
 answered on 03 Aug 2010
1 answer
89 views
hi,

-------------------------

 var editor =  $find("<%= RecurrenceEditor1.ClientID %>");;

    var rrule = editor.get_recurrenceRule();

   alert (rrule );
 // alert ( '<%=RecurrenceEditor1.RecurrenceRuleText %>');
-------------------------------------------------------------------
In javascript I need this string
// Need of rrule in string like DTSTART:20100708T000000Z  DTEND:20100724T000000Z  RRULE:FREQ=MONTHLY;INTERVAL=1;BYSETPOS=1;BYDAY=MO,TU,WE,TH,FR,SA,SU 

or
When I send the rrule in webservice,
it should deserialize like string  DTSTART:20100708T000000Z  DTEND:20100724T000000Z  RRULE:FREQ=MONTHLY;INTERVAL=1;BYSETPOS=1;BYDAY=MO,TU,WE,TH,FR,SA,SU 

hurry please
kind regards
I.Arockiasamy
T. Tsonev
Telerik team
 answered on 03 Aug 2010
1 answer
194 views
I'm running into a strange issue with FireFox and the way it's rendering the Vista skin for a RadDock TitleBarTemplate.  See screenshots below. 

I have a page with a RadDockLayout and 5 individual RadDockZones and RadDocks.  Inside of the zones I have a TitleBarTemplate defined with some labels/buttons/hyperlinks, etc., and then I'm using a user control to display to actual contents of the dock inside the ContentTemplate as displayed below.  

4 of the docks have a user control which has a RadListView, and the other dock has a user control with a RadGrid inside of it.  The dock with the RadGrid is rendering perfectly in both IE and FireFox but the other 4 docks (with ListViews) are not.  The titlebar template is displaying this weird squiggly curtain-looking thing.  I checked it out both in IE developer tools and Firebug and I'm sure it has to do with the embedded image HorizontalSprite.gif.  That sprite shows three different versions of the same header.  IE is using the squared version but FF is using the middle image.  How do I make FF display the same image as IE??


Markup Example:
<telerik:RadDockZone ID="RadDockZoneInbox" runat="server" Width="99%"
BorderStyle="None" EnableEmbeddedBaseStylesheet="true" EnableAjaxSkinRendering="true">
    <telerik:RadDock ID="RadDockInbox" runat="server" 
    width="99%" DefaultCommands="None"  EnableAjaxSkinRendering="true"
    DockMode="Docked" Skin="Vista" EnableDrag="False" Index="0" Tag="">
        <TitlebarTemplate>
            <asp:Label ID="lblInbox" font-bold="true" font-size="Large" runat="server" meta:resourcekey="lblInbox"></asp:Label>
            <asp:ImageButton runat="server" ID="btnUploadTransactions" style="position: absolute; margin: 1px; padding: 0; right: 10px;" OnClientClick="javascript: openWinPostLogin('/../TransactionPages/TransactionUpload.aspx', 'Modal', '.70', '.58');" />
            <asp:ImageButton runat="server" ID="btnDownloadTransactions" style="position: absolute; margin: 1px; padding: 0; right: 170px;" OnClientClick="DownloadTransactions();"/>
        </TitlebarTemplate>
        <ContentTemplate>
            <UC5:InboxWidget ID="InboxWidget1" runat="server"/>
        </ContentTemplate>
    </telerik:RadDock>
</telerik:RadDockZone>





Bozhidar
Telerik team
 answered on 03 Aug 2010
1 answer
62 views
What's the max number of appointments I can send back?  All my views are working, but the MonthView which I assume is because there's too many trying to be send back?

The error is GENERIC "There was an error processing the request. "
T. Tsonev
Telerik team
 answered on 03 Aug 2010
1 answer
162 views
Hi,

I have a grid with three levels, with first and second level showing an Expand/Collapse column. I present data in the expanded form and I want to hide those columns so that user cannot collapse records. I tried to hide them by removing <ExpandCollapseColumn> and from setting  <ExpandCollapseColumn Visible=False>, but Expand/Collapse column is still there.

Any ideas how to hide it?

Thank you,
Andreja
Shinu
Top achievements
Rank 2
 answered on 03 Aug 2010
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?