Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
571 views
Hi,

   I m using a Rad Menu with Version 2013.2.611.35, I use this control on an aspx page with menu items and need to load an user Control dynamically  based on the Menu item selected. The NavigateUrl property is being assigned with the control's path with a removable string
" # "
just like

  radMenuItem.NavigateUrl="controls/users/userlist.ascx#"

i extract the actual URL from the property by removing "#"  (its used to stay back in  same page with out navigating)

.aspx Page
 
<asp:Content ID="cntMenu" ContentPlaceHolderID="menuContentPlaceHolder" runat="Server">
    <telerik:RadMenu ID="TemplateRadMenu" runat="server" Skin="Silk" EnableRoundedCorners="true"
        EnableShadows="true" Flow="Horizontal">
        <Items>           
        </Items>
    </telerik:RadMenu>
     
</asp:Content>
<asp:Content ID="cntPages" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<asp:PlaceHolder ID="phMain" runat="server"></asp:PlaceHolder>
   
</asp:Content>

i load the placeholder with the respective user control selected every time when a menu item is being clicked on by handling the MenuItem Click Event. This works fine for me in all Versions of IE(8-10) on IIS V 6.0.

But on IIS 7.0 and above only in IE 10 i came across an issue "The request filtering module is configured to deny the file extension
the requst is blocked since the extension is of type .ascx hence
i have set to true in the applicationHost config file found on the path %WinDir%system32/inetsrv/config/ for allowing the .ascx file extension like below

                    <add fileExtension=".ascx" allowed="True" />

but then i get the error "The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map" and stops me from processing further.

Does any one faced the same issue? Solution is eagerly awaited

 
mohan sanjeevi kumar
Top achievements
Rank 1
 asked on 30 Aug 2013
1 answer
56 views
Is it possible to use cursor up/down keys to select child menu items?

We know access keys are available for selection but cannot get cursor keys to work when running the following demo:

http://demos.telerik.com/aspnet-ajax/menu/examples/functionality/keyboardsupport/defaultcs.aspx

Thanks in advance....Bob Baldwin
Trabon
Kate
Telerik team
 answered on 30 Aug 2013
3 answers
187 views
Anyone have an example to drag from Listbox to Radgrid?  I can not even get any of the Rowdrop, transferring, dropping etc... to fire?

 

 

<telerik:RadListBox ID="lstPlansMissing" runat="server" AllowAutomaticUpdates="True" AutoPostBack="True" DataTextField="ippComponentDesc" DataValueField="ippComponentID" Font-Size="Small" Height="380px" Skin="Metro" Style="top: 0px; left: 0px; width: 252px; height: 400px;" Width="100%" AllowTransfer="True" AllowTransferOnDoubleClick="True" AutoPostBackOnTransfer="True" EnableDragAndDrop="True">

 

 

 

</telerik:RadListBox>

 



Do I have to enable something on the grid side?  I just want to be able to drag from Listbox to Radgrid.  Don't even need to go the other way just one.  The visual is there when I drag and drop but I can't seem to find a place to catch the code to see which item was selected and dropped.  Do I do that in the grid dropped sub?

Thanks doing this in VB.
Nencho
Telerik team
 answered on 30 Aug 2013
1 answer
366 views
We were given a website to edit that has ComponentArt controls.  The ComponentArt license has expired and we use Telerik controls anyway.  I'd like to change the ComponentArt controls to Telerik.  Is there an easy (or easier) way to do this besides rewriting most of the code?

For example, here's a menu in the code.  How would I change this to use a Telerik menu without just deleting the old code and writing new code?

<ComponentArt:Menu id="Menu1" runat="server" ClientScriptLocation="~/client_scripts/componentart_webui_client/"
    DefaultGroupItemSpacing="1" CollapseTransition="Fade" ExpandTransition="Fade" EnableViewState="false"
    ImagesBaseUrl="images/" ExpandDelay="100" DefaultDisabledItemLookId="DisabledItemLook" DefaultItemLookID="DefaultItemLook"
    DefaultGroupCssClass="MenuGroup" CssClass="TopGroup" Orientation="Horizontal">
    <ItemLooks>
    <ComponentArt:ItemLook LookId="TopItemLook" CssClass="TopMenuItem" ExpandedCssClass="TopMenuItemExpanded"
            HoverCssClass="TopMenuItemHover" LabelPaddingLeft="15" LabelPaddingRight="15" LabelPaddingTop="0" LabelPaddingBottom="0" />
    <ComponentArt:ItemLook LookID="DefaultItemLook" CssClass="MenuItem" HoverCssClass="MenuItemHover" LabelPaddingLeft="5"
        LabelPaddingRight="5" LabelPaddingTop="3" LabelPaddingBottom="3" />
    <ComponentArt:ItemLook LookID="DisabledItemLook" CssClass="DisabledMenuItem" HoverCssClass="DisabledMenuItemHover"
        LabelPaddingLeft="15" LabelPaddingRight="10" LabelPaddingTop="3" LabelPaddingBottom="3" />
    <ComponentArt:ItemLook LookID="BreakItem" ImageUrl="break.gif" CssClass="MenuBreak" ImageHeight="1" ImageWidth="100%" />
    </ItemLooks>
</ComponentArt:Menu>
Kate
Telerik team
 answered on 30 Aug 2013
1 answer
84 views
Hi,

breaking my head on this one.
I've implemented a scheduler and used the ajax tooltip wich displays a ascx with my custom information, just like in the demo http://demos.telerik.com/aspnet-ajax/scheduler/examples/radtooltip/defaultvb.aspx?#qsf-demo-source
I also added a Ical export button in my appointment template. All works fine.

The appointments need to be editable with rightclick, so I set my tooltipmanager to ShowEvent="OnClick".
But when I clcik the ical button, the export starts, but also the tooltip is shown.
The same when i click the delete button.

I tried excluding in code behind in the AppointmentCreated, clientside  with OnClientBeforeShow, but no luck.
So: what's the right way to exclude the ical export and delete button from triggering the tooltip?

thx!
Plamen
Telerik team
 answered on 30 Aug 2013
7 answers
288 views
Hi,
I am using the attachment feature in a radGrid and it is working but I have no idea on where the attchment get saved and how I can define the folder path to save the files. I do not like them into the database but in a dedicated directory.



Felice
Top achievements
Rank 1
 answered on 30 Aug 2013
2 answers
93 views
I have a situation where I need to be able to modify the text alignment for all the cells in a specific column from left-aligned to right-aligned.  For reasons which are too complicated to go into here, is there a way that I can do this with client-side code?  If the properties to do this are not exposed in the client-side api, is there a css setting that I could modify to do the same thing?  If I had to go the css route I could use jQuery to modify the css at runtime.

Thanks,
Scott
Scott
Top achievements
Rank 1
 answered on 30 Aug 2013
1 answer
116 views
    
Hi,
    I am using the user control on aspx page in sharepoint project .On  user control i have taken radgrid.Paging,filtering of Radgrid is working fine but 'Drag a column header and drop it here to group by that column' is giving the 'Server error '/' in application . I have also tried to resolve this using NeedDatasorce event .Please resolve this. 
    Thanks in advance..


   testControl.ascx

 
<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="testControl.ascx.cs" Inherits="CSOM_RetrieveItemsInAList.ControlTemplates.testControl" %>
<%@ Register Assembly="Telerik.Web.UI, Version=2013.2.717.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
 
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
 
 
 
<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True"
    AllowSorting="True"
CellSpacing="0" GridLines="None" AllowFilteringByColumn="True"
    ShowGroupPanel="True" Skin="Outlook" PageSize="50"
    AutoGenerateColumns="False" onneeddatasource="RadGrid1_NeedDataSource">
<GroupingSettings RetainGroupFootersVisibility="True"
ShowUnGroupButton="false" />
<GroupingSettings RetainGroupFootersVisibility="True"></GroupingSettings>
 
<ClientSettings Selecting-AllowRowSelect="true" AllowDragToGroup="True" EnablePostBackOnRowClick="true" >
<Selecting AllowRowSelect="True" UseClientSelectColumnOnly="True"></Selecting>
 
 
</ClientSettings>
 
 
 
 
<MasterTableView CommandItemDisplay="Top" >
<CommandItemSettings ShowExportToExcelButton="True" ShowExportToWordButton="True"
        ShowExportToPdfButton="True" ShowExportToCsvButton="True"
        showaddnewrecordbutton="False"></CommandItemSettings>
 
    <Columns>
    <telerik:GridTemplateColumn >
            <ItemTemplate>
         
              <asp:LinkButton ID="linkbtnViewDetail" runat="server" OnClick="linkbtnViewDetail_Click"  CausesValidation="false" AutoPostBack="True">View Details</asp:LinkButton>
 
        </ItemTemplate>
        </telerik:GridTemplateColumn>
        <telerik:GridTemplateColumn FilterControlAltText="EmpName"
            UniqueName="EmpName" DataField="EmpName" HeaderText="EmpName">
            <ItemTemplate>
         
            <asp:Label ID="lblempName" runat="server" Text='<%#Eval("EmpName") %>'></asp:Label>
 
        </ItemTemplate>
        </telerik:GridTemplateColumn>
        <telerik:GridTemplateColumn DataField="Flag"
            FilterControlAltText="Filter Flag column" HeaderText="Flag"
            UniqueName="Flag" Visible="False">
            <ItemTemplate>
           
            <asp:Label ID="lblflag" runat="server" Text='<%#Eval("Flag") %>'></asp:Label>
 
        </ItemTemplate>
        </telerik:GridTemplateColumn>
        <telerik:GridTemplateColumn DataField="Employee_x0020_ID"
            FilterControlAltText="Employee_x0020_ID" HeaderText="Employee ID"
            UniqueName="EmployeeID">
            <ItemTemplate>
          
            <asp:Label ID="lblEmpID" runat="server" Text='<%#Eval("Employee_x0020_ID") %>'></asp:Label>
 
        </ItemTemplate>
        </telerik:GridTemplateColumn>
 
        <telerik:GridTemplateColumn DataField="ID"
            FilterControlAltText="ID" HeaderText="ID" UniqueName="ID" Visible="False">
            <ItemTemplate>
           
            <asp:Label ID="lblitemID" runat="server" Text='<%#Eval("ID") %>'></asp:Label>
 
        </ItemTemplate>
        </telerik:GridTemplateColumn>
 
        <telerik:GridTemplateColumn DataField="LeaveRequestID"
            FilterControlAltText="LeaveRequestID" HeaderText="LeaveRequestID"
            UniqueName="LeaveRequestID" Visible="False">
            <ItemTemplate>
            
            <asp:Label ID="LblLeaveReqId" runat="server" Text='<%#Eval("LeaveRequestID") %>'></asp:Label>
 
        </ItemTemplate>
        </telerik:GridTemplateColumn>
 
        <telerik:GridTemplateColumn DataField="WeekNumber"
            FilterControlAltText="Filter WeekNumber column" HeaderText="WeekNumber"
            UniqueName="WeekNumber" Visible="False">
            <ItemTemplate>
            <asp:Label ID="lblWeekNo" runat="server" Text='<%#Eval("WeekNumber") %>'></asp:Label>
        </ItemTemplate>
        </telerik:GridTemplateColumn>
 
        <telerik:GridTemplateColumn DataField="Status"
            FilterControlAltText="Filter Status column" HeaderText="Status"
            UniqueName="Status">
            <ItemTemplate>
            <asp:Label ID="ll12" runat="server" Text='<%#Eval("Status") %>'  ></asp:Label>
        </ItemTemplate>
        </telerik:GridTemplateColumn>
 
        <telerik:GridTemplateColumn DataField="Title"
            FilterControlAltText="Filter Subject column" HeaderText="Subject"
            UniqueName="Subject">
            <ItemTemplate>
            <asp:Label ID="ll8" runat="server" Text='<%#Eval("Title") %>'></asp:Label>
        </ItemTemplate>
        </telerik:GridTemplateColumn>
 
    </Columns>
 
</MasterTableView>
<PagerStyle Mode="NextPrevNumericAndAdvanced"></PagerStyle>
</telerik:RadGrid>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
</telerik:RadAjaxManager>
using System;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Data;
using Microsoft.SharePoint;
 
namespace CSOM_RetrieveItemsInAList.ControlTemplates
{
    public partial class testControl : UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
          bindGrid();
        }
                                                                       
 
      public void bindGrid()
        {
            SPSite site = new SPSite("http://pasha-pc:42916");
            SPWeb web;
            DataTable dttask = new DataTable();
            DataTable dtNewtask = new DataTable();
             
            web = site.OpenWeb();
            SPList list = web.Lists["Tasks1"];
           
 
 
            dttask = list.Items.GetDataTable();
 
           RadGrid1.DataSource = dttask;
           }
              protected void linkbtnViewDetail_Click(object sender, EventArgs e)
                            {

                             }
           }
 
 
              }
        
 
        
           
        
    

Maria Ilieva
Telerik team
 answered on 30 Aug 2013
8 answers
179 views
Dear Telerik,

is there a automatic spellcheck in editor?

Thank you
Sebastian
Telerik team
 answered on 30 Aug 2013
3 answers
99 views
I have a master page that has a notification control. I want to update the notification as needed during all callbacks. Is there a way to do this without having to add the control to every ajaxsetting. I use a proxy on the content pages and add ajaxsettings programmatically so I would also have to create a reference to the notification control from the master page to add it to the ajacsettings. I have over a hundred ajax calls throughout the site. I basically want to use the notification to show messages for all actions/activity on the site.

Thanks
Maria Ilieva
Telerik team
 answered on 30 Aug 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?