Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
64 views
hi,



In editor I am trying to write some content. In that some words are
place on right hand side using tab key (i.e 4 time  ).

At design time it display properly but when I print that document the
right hand side words goes to  the next line or some time it comes in
middle of the page.

how I can solve this alignment problem??
Please check attachment images
"after print" : image after print content of editor on a4 page.
"Before print" : image at time of design in editor.


thank you.
Ianko
Telerik team
 answered on 18 Feb 2014
1 answer
131 views
Hi,

I have a MasterPage that opens a RADWindow in Model Window. Then when the user click on a new button in the RadWindow, it opens another RadWindow on top with no problem. However I can not set the skin of the 2nd RADWindow.

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 az well)
    return oWindow;
}
function NewStatus() {
    var oManager = GetRadWindow().get_windowManager();
    setTimeout(function () {
        var winId = "Win" + Math.random().toString();
        var winPage = "AddStatus.aspx" + winId;
        var oNew = oManager.open("", "Window2");
        oNew.setUrl(winPage);
        oNew.SetSize(750, 550);
        oNew.set_visibleStatusbar(false);
        oNew.set_title("Status Screen");
        oNew.Skin = "Forest";
        oNew.set_keepInScreenBounds(true);
        oNew.set_enableShadow(true);
        oNew.set_destroyOnClose(true);
        oNew.set_animation(Telerik.Web.UI.WindowAnimation.Slide);
        oNew.set_initialBehaviors(Telerik.Web.UI.WindowBehaviors.None);
        oNew.set_behaviors(Telerik.Web.UI.WindowBehaviors.Close);
        oNew.add_close(OnClientCloseHandler);
        oNew.setActive(true);
        oNew.set_modal(true);
        oNew.Show();
    }, 0);
}

Am I missing something? What is the correct way of getting the result needed ? 
Shinu
Top achievements
Rank 2
 answered on 18 Feb 2014
3 answers
738 views
I have a simple radgrid that has one GridColumnGroup that displays above 4 bound columns.
------------------------------
<ColumnGroups>
<telerik:GridColumnGroup HeaderText="Reporting Period" Name="ReportingPeriod"/>
</ColumnGroups>

<telerik:GridBoundColumn DataField="Numerator" HeaderText="Numerator" UniqueName="Numerator"  ColumnGroupName="ReportingPeriod" />

That is all, there is no "grouping", etc. It is purely for display.

Is there a way to  change the HeaderText of the GridColumnGroup dynamically? I cannot seem to be able to access it on itemdatabound, or any other way. I want to change the text to a "value", but there is no way to reference it? (to the reporting period dates dynamically)
Any help would be appreciated.
Thanks


Princy
Top achievements
Rank 2
 answered on 18 Feb 2014
1 answer
132 views
Hi,

I am having a rad grid in my parent page. I am trying to access that from the usercontrol which is inside that page. But it is always giving nothing. Please help me out.
The code i am using inside my usercontrol is

Dim radGrid as RadGrid=CType(Page.findControl("radGrid_ID"),RadGrid)

Please reply soon
Shinu
Top achievements
Rank 2
 answered on 18 Feb 2014
6 answers
561 views
I thought this would be straight forward, but doesnt look like and i have been trying for a while now. 

I have a usercontrol on a web page. The web page also has a Telerik RadGrid. On the usercontrol, i am submitting some information and on success, i need to access the RadGrid from the usercontrol and rebind the RadGrid.

I have been trying the following code in UserControl, but i get 'Nothing'

Parent.Page.FindControl("RadGrid_Numbers")


Can someone please help? I am not sure what i am missing here.
first
Top achievements
Rank 1
 answered on 18 Feb 2014
2 answers
88 views
Hi,
    I am kinda stuck with multiple timeslot selection, like that of outlook. Although it highlights all the selected timeslot but then I am not able to find out the date selected.

Since I am using my own UserControl I disabled Insert/Edit/Delete of Radscheduler, so FormCreated wont' be fired.
I am using RadAjaxManager for server side event. In my Client event  
OnClientTimeSlotContextMenuItemClicked="OnClientTimeSlotContextMenuItemClicked"

 
function OnClientTimeSlotContextMenuItemClicked(sender, eventArgs) {<br><br>                var menuItem = eventArgs.get_item();<br>                var timeSlot = eventArgs.get_slot();<br>                if (menuItem != null) {<br>                    var selectedMenuItem = menuItem._properties._data.value;<br>                    if (selectedMenuItem == "createTimesheet") {<br><br><br>                    } else if (selectedMenuItem == "createTodo") {<br><br>                    } else if (selectedMenuItem == "AllDay") {<br>                        var radWindow = $find("<%=rWindowAppointmentInsert.ClientID %>");<br>                        radWindow.show();<br>                        var startDate = new Date(timeSlot._startTime);<br>                        var duration = timeSlot.get_durationInMinutes();<br>                        var arg = "Type=AllDay,Start=" + timeSlot._startTime.toDateString() + " " + startDate.getHours() + ":" + startDate.getMinutes();<br>                        arg += ",Duration=" + duration;<br>                        $find("<%=rAjaxMgrScheduler.ClientID %>").ajaxRequest(arg);<br>                        return false;<br>                    } else if (selectedMenuItem == "Insert") {<br>                        var radWindow = $find("<%=rWindowAppointmentInsert.ClientID %>");<br>                        radWindow.show();<br>                        var startDate = new Date(timeSlot._startTime);<br>                        var duration = timeSlot.get_durationInMinutes();<br>                        var arg = "Type=Insert,Start=" + timeSlot._startTime.toDateString() + " " + startDate.getHours() + ":" + startDate.getMinutes();<br>                        arg += ",Duration=" + duration;<br>                        $find("<%=rAjaxMgrScheduler.ClientID %>").ajaxRequest(arg);<br>                        return false;<br>                    } else { <br>                    <br>                    }<br>                }<br>                return false;<br>            }
I cannot find how to get start and end date.

Thank you



Lakpa
Top achievements
Rank 1
 answered on 17 Feb 2014
8 answers
225 views
I'm using OLAP connection to pivot grid. i have noticed that when i use AllowVerticalScroll="True"  with configuration panel enabled it doesn't fit to text size of cells when there are less columns, takes more space and unnecessary horizontal scrolling is  taken. but it works fine when used without the configuration panel. I have attached an image of the mentioned. 

Pivot grid code :

<telerik:RadPivotGrid ID="rpgDashboard" Width="100%" Height="480px" runat="server"
             AllowPaging="True"  EnableZoneContextMenu="True" AllowFiltering="True"
             EnableConfigurationPanel="True" OnNeedDataSource="rpgDashboard_NeedDataSource"
             OnCellDataBound="rpgDashboard_CellDataBound"
             OnPivotGridCellExporting="rpgDashboard_PivotGridCellExporting"
             OnPivotGridCreated="OnResponseEnd"
             ConfigurationPanel-DeferLayoutUpdateCheckBox-CssClass="PivotGridCheckBox"   
             OnPreRender="rpgDashboard_PreRender" AllowSorting="False"
             EnableEmbeddedSkins="True"
             OnPivotGridBiffExporting="rpgDashboard_PivotGridBiffExporting" >
             <PagerStyle Mode="NextPrevNumericAndAdvanced" AlwaysVisible="true" >
             </PagerStyle>
             <ClientSettings EnableFieldsDragDrop="True">
                   <ClientEvents OnPivotGridCreated="hideElements"></ClientEvents>
                   <Scrolling AllowVerticalScroll="True"></Scrolling>
             </ClientSettings>
             <ConfigurationPanelSettings Position="Left" LayoutType="Stacked"
              DefaultDeferedLayoutUpdate="True"
              EnableDragDrop="False" nableFieldsContextMenu="True"  
              EnableOlapTreeViewLoadOnDemand="False">
             </ConfigurationPanelSettings>
 </telerik:RadPivotGrid>


in addition having row field only added it it doesn't show vertical scroll even though there  are more records than the view port. 
Pavlina
Telerik team
 answered on 17 Feb 2014
1 answer
85 views

Hi friends,,,

I have override CSS in my page.aspx
as below

////////////////.aspx//////////////

      .RadWindow .rwTitlebarControls TD A
        {
            display: none;
            background: none;
            background-image: url(../App_Themes/Default/Images/headerrow-bg.gif) !important;
        }

        .RadWindow TABLE .rwTitlebar
        {
            padding-top: 0px;
            margin-top: 0px;
            font-size: 15px;
            color: white;
            background: none;
            background-image: url(../App_Themes/Default/Images/headerrow-bg.gif) !important;
        }

        .RadWindow .rwControlButtons
        {
            background: none;
            background-image: url(../App_Themes/Default/Images/headerrow-bg.gif) !important;
        }

      

        .RadWindow .rwBodyRight
        {
            display: none;
        }

        .RadWindow .rwBodyLeft
        {
            display: none;
        }

        .RadWindow .rwTopLeft
        {
            display: none;
        }

        .RadWindow .rwTopRight
        {
            display: none;
        }

        .RadWindow .rwTopResize
        {
           
            display: none;
        }

        .RadWindow .rwFooterLeft
        {
            display: none;
          
        }

        .RadWindow .rwFooterRight
        {
            display: none;
        }

        .RadWindow .rwFooterCenter
        {
          
            display: none;
        }

     

        .RadWindow .rwFooterRow
        {
            display: none;
        }

        .RadWindow .rwDialogText
        {
            text-align: left;
            font-family: Calibri;
        }

        .RadWindow .rwDialogInput
        {
            font-family: Verdana,Arial,sans-serif;
            font-weight: normal;
        }

        .RadWindow .rwTable
        {
            border: 1px solid;
        }

        .RadWindow TABLE.rwTable
        {
            border: 1px thin;
        }

        .RadWindow_Default .rwTable .rwTitlebarControls EM
        {
            color: white;
            font-family: Verdana,Arial,sans-serif;
        }

        .RadWindow .rwTitleRow EM
        {
            padding-left: 10px;
        }


//////////End//////////////

You can see css applied in "CSSWithImage.png" that works fine


but issue occured when i click on "refresh button" or  "back button"


override css not working you can see in "CSSWithoutImage.png"

if any one has any idea about it then please help me
Vessy
Telerik team
 answered on 17 Feb 2014
1 answer
28 views

Hi friends,,,

I have override CSS in my page.aspx
as below

////////////////.aspx//////////////

      .RadWindow .rwTitlebarControls TD A
        {
            display: none;
            background: none;
            background-image: url(../App_Themes/Default/Images/headerrow-bg.gif) !important;
        }

        .RadWindow TABLE .rwTitlebar
        {
            padding-top: 0px;
            margin-top: 0px;
            font-size: 15px;
            color: white;
            background: none;
            background-image: url(../App_Themes/Default/Images/headerrow-bg.gif) !important;
        }

        .RadWindow .rwControlButtons
        {
            background: none;
            background-image: url(../App_Themes/Default/Images/headerrow-bg.gif) !important;
        }

      

        .RadWindow .rwBodyRight
        {
            display: none;
        }

        .RadWindow .rwBodyLeft
        {
            display: none;
        }

        .RadWindow .rwTopLeft
        {
            display: none;
        }

        .RadWindow .rwTopRight
        {
            display: none;
        }

        .RadWindow .rwTopResize
        {
           
            display: none;
        }

        .RadWindow .rwFooterLeft
        {
            display: none;
          
        }

        .RadWindow .rwFooterRight
        {
            display: none;
        }

        .RadWindow .rwFooterCenter
        {
          
            display: none;
        }

     

        .RadWindow .rwFooterRow
        {
            display: none;
        }

        .RadWindow .rwDialogText
        {
            text-align: left;
            font-family: Calibri;
        }

        .RadWindow .rwDialogInput
        {
            font-family: Verdana,Arial,sans-serif;
            font-weight: normal;
        }

        .RadWindow .rwTable
        {
            border: 1px solid;
        }

        .RadWindow TABLE.rwTable
        {
            border: 1px thin;
        }

        .RadWindow_Default .rwTable .rwTitlebarControls EM
        {
            color: white;
            font-family: Verdana,Arial,sans-serif;
        }

        .RadWindow .rwTitleRow EM
        {
            padding-left: 10px;
        }


//////////End//////////////

You can see css applied in "CSSWithImage.png" that works fine


but issue occured when i click on "refresh button" or  "back button"


override css not working you can see in "CSSWithoutImage.png"

if any one has any idea about it then please help me
Vessy
Telerik team
 answered on 17 Feb 2014
1 answer
89 views

Hi friends,,,

I have override CSS in my page.aspx
as below

////////////////.aspx//////////////

      .RadWindow .rwTitlebarControls TD A
        {
            display: none;
            background: none;
            background-image: url(../App_Themes/Default/Images/headerrow-bg.gif) !important;
        }

        .RadWindow TABLE .rwTitlebar
        {
            padding-top: 0px;
            margin-top: 0px;
            font-size: 15px;
            color: white;
            background: none;
            background-image: url(../App_Themes/Default/Images/headerrow-bg.gif) !important;
        }

        .RadWindow .rwControlButtons
        {
            background: none;
            background-image: url(../App_Themes/Default/Images/headerrow-bg.gif) !important;
        }

      

        .RadWindow .rwBodyRight
        {
            display: none;
        }

        .RadWindow .rwBodyLeft
        {
            display: none;
        }

        .RadWindow .rwTopLeft
        {
            display: none;
        }

        .RadWindow .rwTopRight
        {
            display: none;
        }

        .RadWindow .rwTopResize
        {
           
            display: none;
        }

        .RadWindow .rwFooterLeft
        {
            display: none;
          
        }

        .RadWindow .rwFooterRight
        {
            display: none;
        }

        .RadWindow .rwFooterCenter
        {
          
            display: none;
        }

     

        .RadWindow .rwFooterRow
        {
            display: none;
        }

        .RadWindow .rwDialogText
        {
            text-align: left;
            font-family: Calibri;
        }

        .RadWindow .rwDialogInput
        {
            font-family: Verdana,Arial,sans-serif;
            font-weight: normal;
        }

        .RadWindow .rwTable
        {
            border: 1px solid;
        }

        .RadWindow TABLE.rwTable
        {
            border: 1px thin;
        }

        .RadWindow_Default .rwTable .rwTitlebarControls EM
        {
            color: white;
            font-family: Verdana,Arial,sans-serif;
        }

        .RadWindow .rwTitleRow EM
        {
            padding-left: 10px;
        }


//////////End//////////////

You can see CSS applied in "CssWithImage.png"  that works fine


but issue occurred when i click on "refresh button" or  "back button"


override CSS not working you can see in "CSSWithoutImage.png"

if any one has any idea about it then please help me

Vessy
Telerik team
 answered on 17 Feb 2014
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?