Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
641 views

Good morning,

I started a new ASPX web site application, and chose to use the responsive theme.

What I am trying to do, is only show the nav menu once I am logged in (with session variable, or other suggestion).

I tried using some <% if session[varisset] %> code within the master page, but I get "code blocks are not supported in this content.

I am also trying to code the masterpage.master to have an on load() that would redirect to login.aspx if not authenticated as well, but obviously not to continually redirect there if the web page is already at login.aspx.

could anyone help me out with this? or point me in the right direction?

Let me know if you require more info.

Nencho
Telerik team
 answered on 28 Jun 2016
5 answers
254 views

Good Afternoon,

I have a problem when i register in ajax manager a radgrid  with radcombobox edit template. The grid is inside to radwindow.

When i register the grid, the radcombobox stop works, not expand, but if i remove the ajax register in radajaxmanager all works fine but obviously the page made postback.

I appreciate the help in this issue. 

<telerik:RadGrid RenderMode="Lightweight" ID="GridProfesiones" CssClass="gridTable"  GridLines="None" AutoGenerateColumns="false" AllowSorting="false" runat="server" ShowStatusBar="true" OnNeedDataSource="GridProfesiones_NeedDataSource"
                               OnInsertCommand="GridProfesiones_InsertCommand" OnDeleteCommand="GridProfesiones_DeleteCommand">
                               <HeaderStyle CssClass="gridHead" />                               
                               <MasterTableView DataKeyNames="Cod" CommandItemDisplay="Bottom" NoMasterRecordsText="No registra profesiones" EditMode="InPlace"
                                   ItemStyle-CssClass="gridRow" AlternatingItemStyle-CssClass="gridRow">
                                   <Columns>
                                       <telerik:GridTemplateColumn UniqueName="DescripcionProfesion" HeaderText="Descripción" HeaderStyle-Font-Size="12px">
                                           <ItemTemplate>
                                               <%# Eval("Descripcion") %>
                                           </ItemTemplate>
                                           <EditItemTemplate>
                                               <telerik:RadComboBox runat="server" EmptyMessage="Debe seleccionar un nivel educativo" ID="cmbDescripcion"  Width="100%" OnDataBinding="cmbDescripcion_DataBinding" Filter="Contains"/>                                               
                                               <asp:RequiredFieldValidator ID="fvProfesion" runat="server" ControlToValidate="cmbDescripcion" Display="Dynamic" ForeColor="Red"
                                                   ErrorMessage="El campo es requerido" ValidationGroup="validationProf"></asp:RequiredFieldValidator>                                           
                                           </EditItemTemplate>
                                       </telerik:GridTemplateColumn>
                                       <telerik:GridEditCommandColumn UniqueName="Command" HeaderText="" HeaderStyle-Width="80px" UpdateText="Confirmar" CancelText="Cancelar" EditText="Modificar" HeaderStyle-Font-Size="12px">
                                       </telerik:GridEditCommandColumn>
                                       <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" Text="Eliminar" UniqueName="EliminarC" ConfirmDialogType="RadWindow"
                                           Resizable="false" ConfirmText="¿Eliminar Profesión?" HeaderText="Eliminar" HeaderStyle-Width="30px" HeaderStyle-Font-Size="12px">
                                       </telerik:GridButtonColumn>
                                   </Columns>
                                   <CommandItemTemplate>
                                       <div class="CommandLeft">
                                           <telerik:RadButton ID="btnAdd" Text="Agregar" CommandName="InitInsert" runat="server" Icon-PrimaryIconCssClass="rbAdd" />
                                       </div>
                                   </CommandItemTemplate>
                               </MasterTableView>
                           <ValidationSettings CommandsToValidate="PerformInsert,Update" EnableValidation="true" ValidationGroup="validationProf"/>
                           </telerik:RadGrid>

Maria Ilieva
Telerik team
 answered on 28 Jun 2016
1 answer
160 views

I have a master page in my project that has NO ajax associated with it at all.  I want to display a loading panel on a content page but can't seem to get this to work correctly.  the below code is what I'm trying to use.  I got this example online.  it works with a blank web page when I drop a script manager on it. I think the issue is that the script manager is on the master page not the content page.

 

any help would be appreciated

 

<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="WebForm1.aspx.vb" Inherits="MySite.WebForm1" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<style type="text/css">

.MyAjaxLoadingPanel
{
background:#fff url(images/InProcessWithText.gif) center center no-repeat;
}

</style>

<telerik:RadAjaxLoadingPanel
ID="RadAjaxLoadingPanel1"
runat="server"
CssClass="MyAjaxLoadingPanel"
Transparency="10" Skin="Default" />

    <telerik:RadAjaxManager
ID="RadAjaxManager1"
runat="server"
DefaultLoadingPanelID="RadAjaxLoadingPanel1" >
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="Button1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="Panel1" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>

<h1>Center Image in a RadAjaxLoadingPanel Using Background</h1>

<p>This is the recommended and easier way to center an image inside a RadAjaxLoadingPanel.</p>

<p>
<asp:Button
ID="Button1"
runat="server"
Text="Make an Ajax request"
OnClick="Button1_Click" />
</p>

<asp:Panel
ID="Panel1"
runat="server"
Width="700px"
Height="400px"
BorderColor="#666"
BorderWidth="1px">
    <br />
    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
    <br />
    <br />
    <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
    <br />
    <br />
    <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
</asp:Panel>
    </asp:Content>

Eyup
Telerik team
 answered on 28 Jun 2016
1 answer
119 views

Sometimes, when click on image icon on editor, it does not open perfectly.

It shows some green and white weird lines on page.

Also same for the table wizard.

On click of table properties option, it opens a table wizard pop up which shows green and white combinations of lines.

Both the pop up opening perfectly with other browser (Chrome,Firefox). Even working with Internet Explorer 10.

This problem is faced for Internet Explorer 11 only.

Need to fix this problem with Internet Explorer 11 also as our project is configured with Internet Explorer only.

Kindly help me ASAP.

Marin Bratanov
Telerik team
 answered on 28 Jun 2016
2 answers
342 views

Hi,

I have a RadIconTile with Shape=Wide - how do you centre the title text to the vertical middle of the box?

Al
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 28 Jun 2016
1 answer
99 views

Hello Team,

Telerik Date control display nothing when the date entered as 01/01/1900, Please let me know if we have any workaround for this issue?

Telerik control version : 2012.2.607.40

Thank you.

Viktor Tachev
Telerik team
 answered on 28 Jun 2016
2 answers
73 views

I'd like to change the behavior of the Editor from using strong,em tags and instead using b,i.  This is to make our website easier to listen to when using a screen reader.

When I tried removing the ConvertTags content filter, it does not seem to do anything anymore... compared to what all the articles talk about.

I've tested this on your demo site too:  http://demos.telerik.com/aspnet-ajax/editor/examples/builtincontentfilters/defaultcs.aspx

I am using Chrome 51.0.2704.103.

 

Stanimir
Telerik team
 answered on 28 Jun 2016
8 answers
398 views
Dear Telerik,
       I am having radgrid, which has the feature of StaticHeader and scrolling. When i click the edit button the Edit PopUp window shows.
My issue is when i try to scroll up and down the controls inside the EditPop window the grid contents also scrolls as the default static header scrolling scrolls.
Is there any way to control the scrolling of background grid when i scroll the EditPopup window

-Thanks
Eyup
Telerik team
 answered on 28 Jun 2016
1 answer
123 views

There seems to be a styling bug when you have a RadEditor on the same page as a RadMenu.  If you set the RadEditor RenderMode to LightWeight (using Metro skin in my tests) the RadMenu styles get all messed up.  

We noticed this a release or so ago - but just now had enough time to test it.  Seems if you set the RadEditor back to Classic RenderMode the RadMenu system return to normal...

Stanimir
Telerik team
 answered on 28 Jun 2016
2 answers
106 views

Is there a way to have references to css files and indicate which media type they are for?

Example:
site.css - used for viewing in the browser

print.css - used if/when a user tries to print the page

<telerik:RadStyleSheetManager runat="server" id="radStyles" EnableHandlerDetection="True" EnableStyleSheetCombine="True" OutputCompression="AutoDetect">
    <StyleSheets>
        <telerik:StyleSheetReference Path="~/site.css"/>
        <telerik:StyleSheetReference Path="~/print.css"/>
    </StyleSheets>
</telerik:RadStyleSheetManager>

If I did this, print.css overrides.  I understand I can play with orders, but I need a way to work with different media types - if possible.

Mike
Top achievements
Rank 1
 answered on 27 Jun 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?