Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
57 views
Hi,
I am trying to replicate this demo to have a starting point for the feature I would like to implement in my project.
I am experiencing a weird  little problem that I am not able to solve. Please look at the attached picture, there is an overlapping on the top side of the rotating items on the external frame.
I have copied 100% code, style sheet and pictures from the demo. I tried to touchup the css but I am not coming right.
Could you please advice about which property I should tune-up to solve this issue?

Thanks a lot for supporting,
Felice
Felice
Top achievements
Rank 1
 answered on 01 Mar 2014
3 answers
156 views
Hi,

I have just updated to the 2014.1.225 release of the UI for ASP.Net Ajax and when I try to run my app it gives an error saying the skins I am using are not defined.

I have the latest .Net 4.5 dll's in the bin directory, and the references point to them being the 2014.1 release but still I get skin not recognised.

This is happening in both VS2012 and VS2013

David Penny
Pavlina
Telerik team
 answered on 28 Feb 2014
1 answer
52 views
Hi,

I am opening a page to add some document data through a window, and i need to popup the alert "Are you sure want to leave this page?" when ever the user close this window or moves the cursor away from the window or clicks anywhere else other than window. Can you please help me how to show this alert message?
1.This window opens up by clicking the sub menu items from the menu items list. 
2. I want to show this alert only when i click the Add menu item -> Submenu items
3.I should not show the alert when i click Replace or any other menu items in that menu list.
4. Onemore thing this page already has the below Alert function and it is working fine when I am opening the same page in different location in a normal way but not in window mode.
This is the Javascript Function for the Alert
 
function windowOnBeforeUnload() {
 
        if (window.event)
            window.event.returnValue = 'You will lose any unsaved changes!'; // IE
        else
            return 'You will lose any unsaved changes!'; // FX
    }
 
This is the RadMenu HTML code
<table class="takeActionTableContainer" cellpadding="1" cellspacing="0" style="margin: 0 auto;">
    <tr>
        <td style="vertical-align:top; text-align:center; width:50%">
            <telerik:RadMenu ID="RadMenuLibrary" runat="server" EnableRoundedCorners="true" EnableShadows="true" Skin="Default" EnableTextHTMLEncoding="true" Width="100%"
                style="z-index:10; position: relative; margin: 0; text-align:center;" DefaultClickToOpen="False" CollapseDelay="200" ExpandDelay="200" OnClientItemClicked="OnTakeActionItemClicked" OnClientItemClosed="windowOnBeforeUnload" OnClientMouseOut="windowOnBeforeUnload" >
                <ExpandAnimation Type="None" Duration="200" />
                <CollapseAnimation Type="None" Duration="200" />
                <Items>
                    <telerik:RadMenuItem runat="server" Text="LIBRARY" PostBack="false" Width="100%"></telerik:RadMenuItem>
                </Items>
            </telerik:RadMenu>
        </td>
        <td style="vertical-align:top; text-align:center; width:50%">
            <telerik:RadMenu ID="RadMenuCollaborator" runat="server" EnableRoundedCorners="true" EnableShadows="true" Skin="Default" EnableTextHTMLEncoding="true" Width="100%"
                style="z-index:10; position: relative; margin: 0; text-align:center;" DefaultClickToOpen="False" CollapseDelay="200" ExpandDelay="200" OnClientItemClicked="OnTakeActionItemClicked" >     
                <ExpandAnimation Type="None" Duration="200" />
                <CollapseAnimation Type="None" Duration="200" />
                 <Items>
                    <telerik:RadMenuItem runat="server" Text="COLLABORATOR" PostBack="false" Width="100%"></telerik:RadMenuItem>
                </Items>
            </telerik:RadMenu>
        </td>
    </tr>

I have called the alert function in OnClientItemClicked but i dont want this alert to be displayed when other menu items are clicked.

Thanks
Joselina
Joselina
Top achievements
Rank 1
 answered on 28 Feb 2014
2 answers
74 views
Hi, 
I have a radgrid which displays fine in all the browsers except IE. The columns are shrinked and there is a column of empty white space at the end of the grid. If I remove Usestaticheader property from client settings it works fine but then I  have to scroll to reach pagination. Any way where I could access both property in the grid?

<telerik:RadGrid ID="RadGrid1" runat="server" 
            GridLines="None" 
            EnableLinqExpressions="false"
            AllowFilteringByColumn="True" 
            AllowPaging="True" 
            AllowSorting="True" 
            AutoGenerateColumns="true"
            Visible="true" 
            Width="100%"
            CellPadding="0" 
            GroupingEnabled="false"
            Skin="Default" 
            AllowAutomaticUpdates="false" 
            ShowHeader="true" 
            EnableHeaderContextMenu="true" 
            ShowFooter="true" OnNeedDataSource="RadGrid1_NeedDataSource"
            OnDeleteCommand="RadGrid1_DeleteCommand" 
            OnItemCommand="RadGrid1_ItemCommand"
            OnDataBound="RadGrid1_DataBound"
            OnItemDataBound="RadGrid1_ItemDataBound"
            OnUpdateCommand="RadGrid1_UpdateCommand">
            
            <GroupingSettings CaseSensitive="false" />
            <AlternatingItemStyle Font-Bold="false" Font-Italic="false" Font-Overline="false"
                Font-Strikeout="false" Font-Underline="false" Wrap="True" />
            <ClientSettings>
                <%-- <Selecting AllowRowSelect="true" UseClientSelectColumnOnly="true" EnableDragToSelectRows="false" /> --%>
                <Scrolling AllowScroll="true" UseStaticHeaders="true"/>  <%-- UseStaticHeaders="true" SaveScrollPosition="true" /> --%>
                <Resizing AllowResizeToFit="true" />
            </ClientSettings>    
            <MasterTableView AutoGenerateColumns="false" CommandItemDisplay="Top" PageSize="25" Font-Size="Small" 
                DataKeyNames="EventID, EventName, totalAvail" AllowFilteringByColumn="true" TableLayout="Fixed">
                <RowIndicatorColumn>
                    <HeaderStyle Width="20px"></HeaderStyle>
                </RowIndicatorColumn>
                <ExpandCollapseColumn>
                    <HeaderStyle Width="20px"></HeaderStyle>
                </ExpandCollapseColumn>
                <Columns>
                    <telerik:GridBoundColumn Display="false" DataField="eventID" DataType="System.Int32" HeaderText="Event ID" HeaderStyle-Width="10%" 
                      ShowFilterIcon="false" CurrentFilterFunction="Contains" AutoPostBackOnFilter="true" AllowFiltering="true" UniqueName="eventID">
                    </telerik:GridBoundColumn>
 </MasterTableView>
           
        </telerik:RadGrid>
vvvv
Top achievements
Rank 1
 answered on 28 Feb 2014
2 answers
444 views
I have run into a situation where the Radwindow is not showing as a modal window.  I have given it all the properties, even tried setting with javascript but no joy, it does not show up as a modal window and I can click on stuff in the background.  Is there something I am missing.  Using Q3 controls with IE9.  I am also using a master page but it has always worked before inside a master page.  totally lost at this point as to why its not working.

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
    <link href="../Styles/Styles.css" rel="stylesheet" />
 
    <script type="text/javascript">
        function GetWindow(Token) {
            var radDash = $find("<%= radWindow.ClientID%>");
            if (Token == 0) {
                radDash.setUrl("Request.aspx?Type=" + 0);
            }
            else if (Token > 0) {
                radDash.setUrl("Request.aspx?Type=" + Token);
            }
 
            radDash.set_modal(true);
            radDash.show();
        }
    </script>
 
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="BodyContent" Runat="Server">
    <telerik:RadGrid ID="myRadGrid" runat="server" AutoGenerateColumns="false" Skin="Web20" Font-Size="10" OnNeedDataSource="myRadGrid_NeedDataSource">
        <MasterTableView runat="server" DataKeyNames="intRequestId" CommandItemDisplay="Top">
            <HeaderStyle HorizontalAlign="Center" />
            <ItemStyle HorizontalAlign="Center" />
            <AlternatingItemStyle HorizontalAlign="Center" BorderColor="#404040" />
            <CommandItemStyle HorizontalAlign="Left" Height="25px" VerticalAlign="Middle" />
            <CommandItemTemplate>
                <a href="#" id="Request" onclick="GetWindow(0);return false;">Request Token</a>
            </CommandItemTemplate>
            <Columns>
                <telerik:GridBoundColumn DataField="Name" HeaderText="NAME" />
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>
    <telerik:RadWindowManager ID="radWindow" runat="server" CenterIfModal="true" Width="800px" Height="450px" Modal="true" ShowContentDuringLoad="false" Skin="Web20" Behaviors="Close" VisibleStatusbar="false">
    </telerik:RadWindowManager>
</asp:Content>




Kevin
Top achievements
Rank 1
 answered on 28 Feb 2014
1 answer
87 views
Just so it may help someone else with the same issue, since upgrading to Q3 2013 I've noticed that our menus that are created dynamically (in this case via a web service) are missing menu separators.  It seems an extra class name, rmImageOnly, for separators is getting added even though I'm not using images for the separators:

<div class="rmSlide" style="left: 0px; top: 22px; width: 151px; height: 361px; overflow: hidden;">
    <
ul class="rmVertical rmGroup rmLevel1" style="left: 0px; top: -361px; display: block; visibility: visible;">

        <li class="rmItem rmSeparator">

             <a class="rmLink rmImageOnly" style="width: 151px;" href="#">
                <
span class="rmText"></span>
            </
a>

        </li>

    </ul>
</
div>

By default, the embedded Telerik css sets the display: none; property for this class, therefore all my separators were hidden.  I used the following code to fix the issue:

 

/* Added to fix hidden separators on the Radmenu ver. Q3 2013 */

.RadMenu .rmRootGroup a.rmImageOnly span.rmText

{

     display: block !important;

}

A side note is that this does not seem to happen with the radMenus that are created without using a webservice.  Telerik, this seems like a bug to me.  Hope this helps anyone else with the same issue!

Stephen
Top achievements
Rank 1
 answered on 28 Feb 2014
2 answers
101 views
Using version 2012.3.1308.40

Anyone know why the RadGrid filter menu option items are not selectable? Let say I have 3 items in the filter
  1. NoFilter
  2. Contains
  3. StartsWith
  4. EndsWith

On page load the NoFilter is selected. If I select Contains, nothing happen, Nofilter is still selected. Any help would be great.

Bryian
Top achievements
Rank 1
 answered on 28 Feb 2014
1 answer
240 views
The project I’m working on is revamping an existing web portal.
Migration from the old Infragistics controls to Telerik is part of the revamp.

Would you recommend to keep the old Visual studio project and dump in the
new controls or starting a new VS project altogether?

Thanks in advance
Simone Duca
Danail Vasilev
Telerik team
 answered on 28 Feb 2014
6 answers
58 views
Greetings everyone!

I am working on an application in which I'm using a TimelineView to show 5 total days, each timeslot is one hour in length:

TimelineView-NumberOfSlots="120" 
TimelineView-TimeLabelSpan="24" 
TimelineView-SlotDuration="01:00:00"
TimelineView-StartTime="00:00:00"

Now, let's say I have an appointment on each of those 5 days, for 2 hours each, starting at 8:00 am and ending at 10:00 am. In theory, they should appear in the same place for each day. Unfortunately, this is what I'm seeing:

http://i.imgur.com/38tomBD.jpg

The first appointment on Monday is current, but subsequent days shows "slippage". (FYI, the database insert is there for illustrative purposes and the grayed out timeslots are the client's non-working hours.) The application also has a "zoomed in" view that only shows a single day -- it looks good:

http://i.imgur.com/QNVWIDv.jpg

Has anyone else ran across this, and if so, is there a solution?

Much thanks!
Ryan


Nencho
Telerik team
 answered on 28 Feb 2014
2 answers
73 views
Hi All,

Can anyone please tell me if there are any "best practices" for optimizing a RadGrid in a SharePoint web-part?  It is entirely in C#, and I would like to improve its performance.

It is editable and reads/writes to a SQL database.

Thanks,
Mark
Mark
Top achievements
Rank 1
 answered on 28 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?